/*
 * SzarvasNet — Cassiopeia child-template presentation layer
 * Parent: cassiopeia | Child: cassiopeia_szarvasnet
 */

:root {
  --szn-navy-950: #11172d;
  --szn-navy-900: #1a2146;
  --szn-navy-800: #252e58;
  --szn-green-600: #72852f;
  --szn-green-500: #859537;
  --szn-green-100: #eef2df;
  --szn-ink: #202638;
  --szn-muted: #626b7c;
  --szn-surface: #ffffff;
  --szn-surface-soft: #f5f7fa;
  --szn-border: #dce1e8;
  --szn-focus: #f5b942;
  --szn-radius-sm: 0.45rem;
  --szn-radius: 0.8rem;
  --szn-shadow-sm: 0 0.2rem 0.8rem rgb(17 23 45 / 8%);
  --szn-shadow: 0 0.65rem 1.8rem rgb(17 23 45 / 12%);
  --szn-content: 76rem;
  --cassiopeia-color-primary: var(--szn-navy-900);
  --cassiopeia-color-link: #304f8a;
  --cassiopeia-color-hover: #52651f;
  --cassiopeia-font-family-body: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --cassiopeia-font-family-headings: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.site {
  color: var(--szn-ink);
  background: var(--szn-surface-soft);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 0.2rem solid var(--szn-focus);
  outline-offset: 0.2rem;
  border-radius: 0.15rem;
}

::selection {
  color: #fff;
  background: var(--szn-navy-800);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--szn-navy-950);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

/* Branded header and identity */
.container-header {
  position: relative;
  z-index: 10;
  color: #fff;
  background:
    radial-gradient(circle at 88% -30%, rgb(133 149 55 / 34%), transparent 38%),
    linear-gradient(125deg, var(--szn-navy-950), var(--szn-navy-800));
  box-shadow: 0 0.3rem 1.2rem rgb(17 23 45 / 18%);
}

.container-header::after {
  position: absolute;
  inset: auto 0 0;
  height: 0.25rem;
  content: "";
  background: linear-gradient(90deg, var(--szn-green-500), #a8b65c 45%, transparent 85%);
}

.container-header .grid-child {
  width: min(100% - 2rem, var(--szn-content));
  margin-inline: auto;
}

.container-header .navbar-brand {
  padding-block: clamp(1rem, 3vw, 1.75rem);
}

.container-header .brand-logo {
  display: block;
  width: min(100%, 37.95rem);
  aspect-ratio: 607 / 61;
  background: url("../images/szarvasnet-logo.png") left center / contain no-repeat;
}

.container-header .brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
}

.container-header .site-description {
  max-width: 48rem;
  margin-top: 0.55rem;
  color: rgb(255 255 255 / 82%);
  font-size: 0.96rem;
}

/* Primary navigation */
.container-header .container-nav {
  gap: 1rem;
  padding-block: 0.35rem 0.65rem;
}

.container-header .mod-menu {
  gap: 0.15rem;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button,
.container-header .navbar-toggler {
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  color: #fff;
  border-radius: var(--szn-radius-sm);
  font-weight: 650;
  text-decoration: none;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus-visible,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  color: #fff;
  background: rgb(255 255 255 / 13%);
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  box-shadow: inset 0 -0.2rem 0 var(--szn-green-500);
}

.container-header .mod-menu__sub {
  min-width: 15rem;
  padding: 0.45rem;
  color: var(--szn-ink);
  background: #fff;
  border: 1px solid var(--szn-border);
  border-radius: var(--szn-radius-sm);
  box-shadow: var(--szn-shadow);
}

.container-header .mod-menu__sub a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--szn-navy-900);
  border-radius: 0.3rem;
  text-decoration: none;
}

.container-header .mod-menu__sub a:hover,
.container-header .mod-menu__sub a:focus-visible {
  background: var(--szn-green-100);
}

/* Page grid and core content */
.site-grid {
  width: min(100% - 2rem, var(--szn-content));
  margin-inline: auto;
  padding-block: clamp(1rem, 3vw, 2.25rem);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.container-component {
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: var(--szn-surface);
  border: 1px solid var(--szn-border);
  border-radius: var(--szn-radius);
  box-shadow: var(--szn-shadow-sm);
}

.container-component > main > :first-child,
.container-component > main > :first-child > :first-child {
  margin-top: 0;
}

.page-header {
  margin-bottom: 1.35rem;
  padding-bottom: 0.8rem;
  border-bottom: 0.15rem solid var(--szn-green-500);
}

.item-title a {
  color: var(--szn-navy-900);
}

.article-info {
  gap: 0.25rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--szn-muted) !important;
  font-size: 0.9rem;
}

/* Breadcrumbs */
.mod-breadcrumbs__wrapper {
  margin-bottom: 1.15rem;
  color: var(--szn-muted);
  background: var(--szn-surface-soft);
  border: 1px solid var(--szn-border);
  border-radius: var(--szn-radius-sm);
}

.mod-breadcrumbs {
  margin: 0;
  font-size: 0.9rem;
}

/* Modules, cards, sidebars and legacy module suffixes */
.card,
.container-sidebar-left > *,
.container-sidebar-right > *,
.container-main-top > *,
.container-main-bottom > *,
.container-bottom-a > *,
.container-bottom-b > * {
  overflow: hidden;
  background: var(--szn-surface);
  border: 1px solid var(--szn-border);
  border-radius: var(--szn-radius);
  box-shadow: var(--szn-shadow-sm);
}

.card + .card,
.container-sidebar-left > * + *,
.container-sidebar-right > * + * {
  margin-top: 1rem;
}

.card-header {
  padding: 0.8rem 1rem;
  color: var(--szn-navy-900);
  background: linear-gradient(90deg, var(--szn-green-100), #fff 78%);
  border: 0;
  border-left: 0.28rem solid var(--szn-green-500);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.card-body {
  min-width: 0;
  padding: 1rem;
}

.container-sidebar-left,
.container-sidebar-right {
  min-width: 0;
}

.container-sidebar-left img,
.container-sidebar-right img,
.card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.bannergroup,
.banneritem,
.bannerfooter {
  max-width: 100%;
}

.bannerfooter {
  margin-top: 0.75rem;
  color: var(--szn-muted);
  font-size: 0.9rem;
}

.container-main-top,
.container-main-bottom,
.container-bottom-a,
.container-bottom-b {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  min-width: 0;
}

.container-component > .container-main-top,
.container-component > .container-main-bottom {
  margin-block: 1rem;
}

.container-bottom-a,
.container-bottom-b {
  grid-column: 1 / -1;
}

/* Content safety: images, embeds and legacy layout tables */
.container-component img,
.mod-custom img {
  max-width: 100%;
  height: auto;
}

.container-component iframe,
.mod-custom iframe,
.card iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: clamp(16rem, 48vw, 30rem);
  margin-inline: auto;
  border: 0;
}

iframe[src*="youtube.com"],
iframe[src*="youtube-nocookie.com"],
iframe[src*="youtu.be"] {
  height: auto !important;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

iframe[src*="google.com/maps"] {
  min-height: clamp(20rem, 52vw, 28rem);
}

img#stream {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--szn-navy-950);
}

.container-component table {
  max-width: 100%;
  border-color: var(--szn-border);
}

.container-component th,
.container-component td {
  padding: 0.55rem 0.7rem;
  vertical-align: top;
}

.container-component th {
  color: var(--szn-navy-900);
  background: var(--szn-green-100);
}

/* Forms and controls */
input:not([type="checkbox"], [type="radio"]),
select,
textarea,
.btn {
  min-height: 2.75rem;
  border-radius: var(--szn-radius-sm);
}

.btn-primary {
  color: #fff;
  background: var(--szn-navy-900);
  border-color: var(--szn-navy-900);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--szn-navy-800);
  border-color: var(--szn-navy-800);
}

/* Footer */
.container-footer {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  color: rgb(255 255 255 / 82%);
  background: var(--szn-navy-950);
  border-top: 0.25rem solid var(--szn-green-500);
}

.container-footer .grid-child {
  width: min(100% - 2rem, var(--szn-content));
  margin-inline: auto;
  padding-block: 1.5rem;
}

.container-footer a {
  color: #fff;
}

@media (max-width: 991.98px) {
  .site-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .container-component,
  .container-sidebar-left,
  .container-sidebar-right {
    grid-column: 1;
  }

  .container-sidebar-left,
  .container-sidebar-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .container-sidebar-left > * + *,
  .container-sidebar-right > * + * {
    margin-top: 0;
  }
}

@media (max-width: 767.98px) {
  .container-header .grid-child,
  .site-grid,
  .container-footer .grid-child {
    width: min(100% - 1.25rem, var(--szn-content));
  }

  .container-header .brand-logo {
    width: 100%;
  }

  .container-sidebar-left,
  .container-sidebar-right,
  .container-main-top,
  .container-main-bottom,
  .container-bottom-a,
  .container-bottom-b {
    grid-template-columns: minmax(0, 1fr);
  }

  .container-component {
    padding: 1rem;
  }

  .container-component table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .container-component td,
  .container-component th {
    min-width: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .container-header,
  .container-sidebar-left,
  .container-sidebar-right,
  .container-footer,
  .mod-breadcrumbs__wrapper {
    display: none !important;
  }

  body.site,
  .container-component {
    color: #000;
    background: #fff;
    border: 0;
    box-shadow: none;
  }
}

/* =========================================================
   SzarvasNet 2026 — compact media header
   ========================================================= */

.container-header {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: .7rem max(1rem, calc((100vw - var(--szn-content)) / 2));
  background:
    radial-gradient(circle at 92% -80%, rgb(133 149 55 / 28%), transparent 38%),
    linear-gradient(120deg, var(--szn-navy-950), var(--szn-navy-900));
}

.container-header > .grid-child {
  width: auto;
  margin: 0;
}

.container-header .navbar-brand {
  padding: 0;
}

.container-header .brand-logo {
  width: min(100%, 21rem);
}

.container-header .container-nav {
  justify-content: flex-end;
  padding: 0;
}

.container-header .mod-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .25rem;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button,
.container-header .mod-menu > li > .mod-menu__heading {
  display: flex;
  align-items: center;
  min-height: 2.7rem;
  padding: .55rem .8rem;
  color: rgb(255 255 255 / 92%);
  border-radius: .5rem;
  font-size: .95rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus-visible,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  color: #fff;
  background: rgb(255 255 255 / 11%);
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  box-shadow: inset 0 -.18rem 0 var(--szn-green-500);
}

.container-header .mod-menu__sub {
  border: 0;
  border-top: .2rem solid var(--szn-green-500);
  border-radius: .55rem;
  box-shadow: 0 .8rem 2rem rgb(17 23 45 / 20%);
}

@media (max-width: 991.98px) {
  .container-header {
    grid-template-columns: 1fr;
    gap: .4rem;
    padding: .8rem 1rem;
  }

  .container-header .brand-logo {
    width: min(100%, 19rem);
  }

  .container-header .container-nav,
  .container-header .mod-menu {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .container-header .mod-menu {
    gap: .15rem;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > button,
  .container-header .mod-menu > li > .mod-menu__heading {
    padding: .5rem .65rem;
    font-size: .9rem;
  }
}


/* =========================================================
   Homepage — Szarvasi Televízió live hero
   ========================================================= */

.main-top:has(#mod-custom371) {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 15%, rgb(133 149 55 / 22%), transparent 32%),
    linear-gradient(125deg, var(--szn-navy-950), var(--szn-navy-800));
  border: 0;
  box-shadow: var(--szn-shadow);
}

.main-top:has(#mod-custom371) .card-body {
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

#mod-custom371 > section {
  display: grid;
  grid-template-columns: minmax(15rem, .75fr) minmax(24rem, 1.25fr);
  grid-template-areas:
    "title video"
    "intro video"
    "primary video"
    "secondary video";
  gap: .7rem clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  width: 100% !important;
  max-width: none !important;
}

#mod-custom371 h2 {
  grid-area: title;
  margin: .4rem 0 0;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.08;
}

#mod-custom371 > section > p:first-of-type {
  grid-area: intro;
  max-width: 30rem;
  margin: 0 0 .5rem;
  color: rgb(255 255 255 / 78%);
  font-size: 1.05rem;
}

#mod-custom371 .ratio {
  grid-area: video;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--szn-radius);
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 28%);
}

#mod-custom371 > section > p:nth-of-type(2) {
  grid-area: primary;
  margin: .35rem 0 0 !important;
}

#mod-custom371 > section > p:nth-of-type(3) {
  grid-area: secondary;
  margin: 0 !important;
}

#mod-custom371 > section > p:nth-of-type(2) a,
#mod-custom371 > section > p:nth-of-type(3) a {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: .65rem 1rem;
  border-radius: .55rem;
  font-weight: 700;
  text-decoration: none;
}

#mod-custom371 > section > p:nth-of-type(2) a {
  color: #fff;
  background: var(--szn-green-500);
}

#mod-custom371 > section > p:nth-of-type(2) a:hover {
  background: var(--szn-green-600);
}

#mod-custom371 > section > p:nth-of-type(3) a {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 35%);
  background: rgb(255 255 255 / 7%);
}

#mod-custom371 > section > p:nth-of-type(3) a:hover {
  background: rgb(255 255 255 / 14%);
}

@media (max-width: 767.98px) {
  #mod-custom371 > section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "intro"
      "video"
      "primary"
      "secondary";
  }

  #mod-custom371 h2 {
    margin-top: 0;
  }

  #mod-custom371 > section > p:nth-of-type(2) a,
  #mod-custom371 > section > p:nth-of-type(3) a {
    width: 100%;
    justify-content: center;
  }
}

/* === Homepage layout FIX === */

.container-component:has(#mod-custom371) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* LIVE hero */
.container-component:has(#mod-custom371) > .main-top:has(#mod-custom371) {
  grid-column: 1 / -1;
}

/* 3 feature card */
.container-component:has(#mod-custom371) > .main-top.home-feature {
  min-width: 0;
  height: auto;
  padding: 0;
  margin: 0;
}

/* Joomla tartalom alattuk teljes szélesség */
.container-component:has(#mod-custom371) > #system-message-container,
.container-component:has(#mod-custom371) > main {
  grid-column: 1 / -1;
}

/* Kártyák belseje */
.main-top.home-feature .card-body {
  min-width: 0;
  padding: 1rem;
}

/* Képújság: SOHA ne vágja le a képet */
.home-feature--kepu .mod-kepujsag__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #11172d;
}

.home-feature--kepu .mod-kepujsag__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

/* Gombok ne folyjanak ki */
.mod-kepujsag__controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .8rem;
}

.mod-kepujsag__controls .btn {
  flex: 1 1 auto;
  min-width: 0;
}

/* Videótár / Galéria */
#mod-custom375,
#mod-custom376 {
  height: 100%;
}

#mod-custom375 .szn-feature-card,
#mod-custom376 .szn-feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#mod-custom375 .btn,
#mod-custom376 .btn {
  margin-top: auto;
}

/* Tablet / mobil */
@media (max-width: 991.98px) {
  .container-component:has(#mod-custom371) {
    grid-template-columns: 1fr;
  }

  .container-component:has(#mod-custom371) > .main-top {
    grid-column: 1;
  }

  .container-component:has(#mod-custom371) > #system-message-container,
  .container-component:has(#mod-custom371) > main {
    grid-column: 1;
  }
}


/* =========================================================
   Homepage — final visual and responsive polish
   ========================================================= */

body.itemid-338 {
  overflow-x: clip;
}

body.itemid-338 > .container-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
  padding-block: .55rem;
}

body.itemid-338 .container-header .mod-menu__sub {
  z-index: 1010;
}

body.itemid-338 #mod-custom371,
body.itemid-338 #mod-custom374,
body.itemid-338 #mod-custom377,
body.itemid-338 #mod-custom378,
body.itemid-338 #mod-custom379,
body.itemid-338 #mod-custom380 {
  scroll-margin-top: 7rem;
}

body.itemid-338 .site-grid,
body.itemid-338 .container-footer .grid-child {
  width: min(calc(100% - 2rem), var(--szn-content));
  margin-inline: auto;
}

body.itemid-338 .site-grid {
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(1rem, 2.5vw, 2rem);
}

body.itemid-338 .container-sidebar-left,
body.itemid-338 .mod-breadcrumbs__wrapper,
body.itemid-338 .container-component > main,
body.itemid-338 .container-component > .main-bottom:not(.home-gallery) {
  display: none !important;
}

body.itemid-338 .site-grid > .container-component {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.itemid-338 .site-grid > .container-component:has(#mod-custom371) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 2vw, 1.5rem) !important;
}

body.itemid-338 .container-component > .main-top,
body.itemid-338 .container-component > .main-bottom {
  min-width: 0;
  margin: 0;
}

body.itemid-338 .container-component > .main-top:has(#mod-custom371),
body.itemid-338 .container-component > .main-top.home-feature--service,
body.itemid-338 .container-component > .main-top.home-fresh-info,
body.itemid-338 .container-component > .main-bottom.home-gallery,
body.itemid-338 .container-component > #system-message-container {
  grid-column: 1 / -1 !important;
}

body.itemid-338 .container-component > .card {
  border-radius: var(--szn-radius);
}

body.itemid-338 .container-component > .card > .card-header {
  min-height: 3.25rem;
  padding: .85rem 1.1rem;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
}

body.itemid-338 .main-top.home-feature--kepu,
body.itemid-338 .main-top.home-feature--csomag {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.itemid-338 .main-top.home-feature--kepu > .card-body,
body.itemid-338 .main-top.home-feature--csomag > .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

body.itemid-338 .home-feature--kepu .mod-kepujsag {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

body.itemid-338 .home-feature--kepu .mod-kepujsag__frame {
  overflow: hidden;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: var(--szn-navy-950);
  border-radius: var(--szn-radius-sm);
}

body.itemid-338 .home-feature--kepu .mod-kepujsag__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none;
  object-fit: contain !important;
}

body.itemid-338 .home-feature--kepu .mod-kepujsag__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}

body.itemid-338 .home-feature--kepu .mod-kepujsag__controls .btn {
  width: 100%;
}

body.itemid-338 .home-feature--kepu .mod-kepujsag__status {
  margin: .75rem 0 0;
  color: var(--szn-muted);
  overflow-wrap: anywhere;
}

body.itemid-338 .home-feature--csomag .szn-home-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

body.itemid-338 .home-feature--csomag .szn-home-links {
  margin-block: auto;
}

body.itemid-338 .home-feature--service .szn-home-service,
body.itemid-338 .home-fresh-info .szn-fresh-grid,
body.itemid-338 .home-gallery .szn-gallery-grid,
body.itemid-338 .container-footer .szn-footer__grid {
  align-items: stretch;
}

body.itemid-338 .home-fresh-info .szn-fresh-card,
body.itemid-338 .home-gallery .szn-gallery-card {
  height: 100%;
  min-width: 0;
}

body.itemid-338 .home-gallery .szn-gallery-card__image {
  max-width: none;
}

body.itemid-338 .container-component .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border-radius: var(--szn-radius-sm);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

body.itemid-338 .container-component :is(h1, h2, h3, p, a, li, address),
body.itemid-338 .container-footer :is(h2, p, a, li, address) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.itemid-338 .container-component img,
body.itemid-338 .container-component iframe {
  max-width: 100%;
}

body.itemid-338 .container-footer .grid-child {
  padding-block: clamp(2rem, 4vw, 3rem) 1.25rem;
}

@media (max-width: 991.98px) {
  body.itemid-338 > .container-header {
    gap: .3rem;
    padding: .5rem max(.75rem, calc((100vw - var(--szn-content)) / 2));
  }

  body.itemid-338 .container-header .brand-logo {
    width: min(100%, 16rem);
  }

  body.itemid-338 .container-header .container-nav {
    min-width: 0;
  }

  body.itemid-338 .container-header .mod-menu {
    gap: .1rem;
  }

  body.itemid-338 .container-header .mod-menu > li > a,
  body.itemid-338 .container-header .mod-menu > li > button,
  body.itemid-338 .container-header .mod-menu > li > .mod-menu__heading {
    min-height: 2.35rem;
    padding: .42rem .62rem;
    font-size: .88rem;
  }

  body.itemid-338 .home-fresh-info .szn-fresh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.itemid-338 .home-feature--csomag .szn-home-links {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 767.98px) {
  body.itemid-338 .site-grid,
  body.itemid-338 .container-footer .grid-child {
    width: min(calc(100% - 1.25rem), var(--szn-content));
  }

  body.itemid-338 .site-grid > .container-component:has(#mod-custom371) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
  }

  body.itemid-338 .container-component > .main-top,
  body.itemid-338 .container-component > .main-bottom {
    grid-column: 1 !important;
  }

  body.itemid-338 .main-top:has(#mod-custom371) .card-body,
  body.itemid-338 .main-top.home-feature .card-body,
  body.itemid-338 .home-fresh-info .card-body,
  body.itemid-338 .home-gallery .card-body {
    padding: 1rem;
  }

  body.itemid-338 .home-fresh-info .szn-fresh-grid,
  body.itemid-338 .home-gallery .szn-gallery-grid,
  body.itemid-338 .container-footer .szn-footer__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.itemid-338 #mod-custom371 > section {
    gap: .75rem;
  }

  body.itemid-338 #mod-custom371 h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  body.itemid-338 #mod-custom371 > section > p:nth-of-type(2) a,
  body.itemid-338 #mod-custom371 > section > p:nth-of-type(3) a,
  body.itemid-338 .home-gallery .szn-gallery-cta .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  body.itemid-338 > .container-header {
    padding-inline: .65rem;
  }

  body.itemid-338 .container-header .brand-logo {
    width: min(100%, 13.5rem);
  }

  body.itemid-338 .container-header .mod-menu > li > a,
  body.itemid-338 .container-header .mod-menu > li > button,
  body.itemid-338 .container-header .mod-menu > li > .mod-menu__heading {
    min-height: 2.15rem;
    padding: .35rem .5rem;
    font-size: .8rem;
  }

  body.itemid-338 .home-feature--kepu .mod-kepujsag__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.itemid-338 .home-feature--kepu .mod-kepujsag__toggle {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}
