/* ============================================
   PannonPTT — Components
   Header, hero, buttons, cards, forms, footer.
   ============================================ */

/* ── Site Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid var(--header-border);
  transition: height var(--dur-normal) var(--ease-standard);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  transition: background var(--dur-normal) var(--ease-standard);
}

.site-header.is-shrunk {
  height: var(--header-height-shrunk);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 72px;
  width: auto;
}

.site-header.is-shrunk .site-header__logo img {
  height: 56px;
}

/* ── Main Navigation ── */

.main-nav__title {
  display: none;
}

.main-nav__list {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.main-nav__link {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease-standard);
}

.main-nav__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-600);
  transition: width var(--dur-fast) var(--ease-standard);
}

.main-nav__link:hover {
  color: var(--brand-600);
}

.main-nav__link:hover::after {
  width: 100%;
}

/* ── Mobile Nav Toggle ── */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--slate-700);
  border-radius: 1px;
  transition: transform var(--dur-fast) var(--ease-standard),
              opacity var(--dur-fast) var(--ease-standard);
}

/* Hamburger open state */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-500);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--slate-900);
  border: 1px solid var(--slate-300);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.04);
}

.btn-sm {
  padding: 8px 20px;
  font-size: var(--text-caption);
}

.btn-full {
  width: 100%;
}

/* ── Hero Section ── */

.hero {
  position: relative;
  padding-block: var(--space-xl);
  padding-top: calc(var(--space-xl) + var(--header-height));
  margin-top: calc(-1 * var(--header-height));
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;

  background-color: var(--hero-grad-end);

  /* Multi-layer background tuned to match hero.png reference */
  background-image:
    url("../images/tech-grid.svg"),
    radial-gradient(
      560px 460px at 78% 62%,
      var(--hero-right-blob-inner) 0%,
      var(--hero-right-blob-outer) 72%
    ),
    radial-gradient(
      1100px 700px at 70% 40%,
      var(--hero-radial-inner) 0%,
      var(--hero-radial-mid) 48%,
      var(--hero-radial-outer) 78%
    ),
    radial-gradient(
      900px 650px at 14% 72%,
      var(--hero-left-haze-inner) 0%,
      var(--hero-left-haze-outer) 72%
    ),
    linear-gradient(
      180deg,
      var(--hero-top-wash-start) 0%,
      var(--hero-top-wash-end) 62%
    ),
    linear-gradient(
      90deg,
      var(--hero-grad-start) 0%,
      var(--hero-grad-mid) 42%,
      var(--hero-grad-end) 100%
    );
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  /* SVG tech-grid: right 10% center / 800px auto (plan sor 413-416), rest: center / cover */
  background-position: right 10% center, center, center, center, center, center;
  background-size: 800px auto, cover, cover, cover, cover, cover;
}

/* Bokeh + subtle glow overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(6px 6px at 63% 46%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(4px 4px at 60% 52%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(5px 5px at 68% 58%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(3px 3px at 73% 40%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(120px 90px at 64% 52%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 65%);
}

/* Ground + fade into next section */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(900px 140px at 72% 35%, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0) 70%),
    radial-gradient(900px 140px at 72% 28%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(to top, var(--hero-fade-start), var(--hero-fade-end));
  background-repeat: no-repeat;
  background-position: center, center, center;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero .hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
}

.hero-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  color: var(--slate-900);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  color: var(--slate-700);
  font-size: var(--text-body-lg);
  line-height: var(--leading-normal);
  max-width: 42ch;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-height: 56px;
  padding: 14px 36px;
  border-radius: var(--radius-md);
}

.hero .btn-primary {
  background: var(--brand-600);
}

.hero .btn-primary:hover {
  background: var(--brand-500);
}


.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, 86%);
  height: min(420px, 86%);
  transform: translate(-50%, -56%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-img-glow-inner) 0%, var(--hero-img-glow-outer) 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: min(320px, 72%);
  height: 38px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, var(--hero-img-ground-inner) 0%, var(--hero-img-ground-outer) 74%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  max-height: 420px;
  width: auto;
  filter: var(--hero-img-shadow);
  object-fit: contain;
}

/* ── Dev helper: pixel-perfect overlay (index.html?ref=1) ── */

/* Hero entry animation (activated by JS adding .is-visible) */
.hero-panel,
.hero-visual {
  opacity: 0;
  transform: translateY(12px);
}

.hero.is-visible .hero-panel {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-normal) var(--ease-standard),
    transform var(--dur-normal) var(--ease-standard);
}

.hero.is-visible .hero-visual {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-slow) var(--ease-standard) 120ms,
    transform var(--dur-slow) var(--ease-standard) 120ms;
}

/* ── Section Header ── */

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

/* Decorative lines around label */
.section-header__label::before,
.section-header__label::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--slate-300);
}

.section-header h2 {
  font-size: var(--text-h1);
  color: var(--slate-900);
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--slate-500);
  font-size: var(--text-body-lg);
  max-width: 56ch;
}

.section-header.text-center p {
  margin-inline: auto;
}

/* ── Product Card ── */

.product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--product-card-grad-start) 0%, var(--product-card-grad-end) 100%);
  border: 1px solid var(--product-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--product-card-shadow);
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: linear-gradient(180deg, var(--product-card-overlay) 0%, var(--product-card-overlay-fade) 36%);
  z-index: -1;
  pointer-events: none;
}

.product-card::after {
  content: none;
}

.product-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--product-card-shadow-hover);
  border-color: var(--product-card-border-hover);
}

.product-card__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 200px;
  min-height: 208px;
  z-index: 1;
}

.product-card__image::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    var(--product-image-pedestal-inner) 0%,
    var(--product-image-pedestal-outer) 74%
  );
  filter: blur(2px);
  pointer-events: none;
}

.product-card__image--radio::before {
  left: 28px;
  right: 28px;
  bottom: -12px;
  height: 20px;
  filter: blur(4px);
}

.product-card__image--radio img {
  transform: translateY(-8px);
}

.product-card:hover .product-card__image--radio img {
  transform: translateY(-10px);
}

.product-card__image::after {
  content: none;
}

.product-card__image img {
  max-height: 198px;
  width: auto;
  object-fit: contain;
  transform: translateY(-2px);
  filter: var(--product-image-shadow);
  transition: transform var(--dur-fast) var(--ease-standard),
              filter var(--dur-fast) var(--ease-standard);
}

.product-card:hover .product-card__image img {
  transform: translateY(-4px);
  filter: var(--product-image-shadow-hover);
}

.product-card__image--contain img {
  max-height: 176px;
  padding: var(--space-md);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}

.product-card__title {
  font-size: var(--text-h2);
  color: var(--slate-900);
  margin-bottom: var(--space-xs);
}

.product-card__subtitle {
  font-size: var(--text-caption);
  color: var(--slate-500);
  margin-bottom: var(--space-md);
}

.product-card__features {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  width: 100%;
  margin-bottom: var(--space-md);
}

.product-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-caption);
  line-height: 1.45;
  color: var(--slate-700);
  width: 100%;
}

.product-card__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 4px;
  color: var(--slate-700);
  background: linear-gradient(160deg, var(--product-feature-icon-bg-start) 0%, var(--product-feature-icon-bg-end) 100%);
  border: 1px solid var(--product-feature-icon-border);
  border-radius: 999px;
  box-shadow: var(--product-feature-icon-shadow);
}

.product-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--product-card-divider);
  margin-top: auto;
  width: 100%;
}

.product-card__price {
  font-size: var(--text-body-lg);
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: 0;
  text-shadow: none;
  white-space: nowrap;
}

.product-card__price--free {
  color: var(--color-success);
}

.product-card__price-period {
  font-size: var(--text-caption);
  font-weight: 400;
  color: var(--slate-500);
}

.product-card__availability {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-success);
}

.product-card__availability::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

/* Out-of-stock modifier — product cards */
.product-card__availability--out-of-stock {
  color: var(--color-error);
}
.product-card__availability--out-of-stock::before {
  background: var(--color-error);
}

/* ── Accessory Card ── */

.accessory-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, var(--product-card-grad-start) 0%, var(--product-card-grad-end) 100%);
  border: 1px solid var(--product-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--product-card-shadow);
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}

.accessory-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: linear-gradient(180deg, var(--product-card-overlay) 0%, var(--product-card-overlay-fade) 36%);
  z-index: -1;
  pointer-events: none;
}

.accessory-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--product-card-shadow-hover);
  border-color: var(--product-card-border-hover);
}

.accessory-card__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
  margin-bottom: var(--space-sm);
  z-index: 1;
}

.accessory-card__image::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    var(--product-image-pedestal-inner) 0%,
    var(--product-image-pedestal-outer) 74%
  );
  filter: blur(2px);
  pointer-events: none;
}

.accessory-card__image img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  transform: translateY(-2px);
  filter: var(--product-image-shadow);
  transition: transform var(--dur-fast) var(--ease-standard),
              filter var(--dur-fast) var(--ease-standard);
}

.accessory-card:hover .accessory-card__image img {
  transform: translateY(-4px);
  filter: var(--product-image-shadow-hover);
}

.accessory-card__title {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--slate-900);
  margin-bottom: var(--space-xs);
}

.accessory-card__price {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: 0;
}

/* Accessory card availability row */
.accessory-card__availability {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}
.accessory-card__availability::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}
.accessory-card__availability--out-of-stock {
  color: var(--color-error);
}
.accessory-card__availability--out-of-stock::before {
  background: var(--color-error);
}

/* ── Value Card ── */

.value-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  border: 1px solid var(--value-card-border);
  border-radius: var(--radius-lg);
  padding: calc(var(--space-lg) - 2px);
  background: linear-gradient(180deg, var(--value-card-grad-start) 0%, var(--value-card-grad-end) 100%);
  box-shadow: var(--value-card-shadow);
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: linear-gradient(180deg, var(--value-card-overlay) 0%, var(--value-card-overlay-fade) 42%);
  z-index: -1;
  pointer-events: none;
}

.value-card::after {
  content: none;
}

.value-card > * {
  position: relative;
  z-index: 1;
}

.value-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--value-card-shadow-hover);
  border-color: var(--value-card-border-hover);
}

.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  margin-bottom: var(--space-md);
  color: var(--value-icon-color);
  background: linear-gradient(160deg, var(--value-icon-bg-start) 0%, var(--value-icon-bg-end) 100%);
  border: 1px solid var(--value-icon-border);
  box-shadow: var(--value-icon-shadow);
}

.value-card__icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.value-card__title {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: var(--space-sm);
  line-height: 1.25;
}

.value-card__text {
  font-size: var(--text-caption);
  color: var(--slate-700);
  line-height: var(--leading-normal);
  max-width: 30ch;
}

/* ── Tech Grid ── */

.tech-grid__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-grid__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.tech-grid__figure {
  margin: 0;
}

.tech-grid__caption {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--text-caption);
  color: var(--slate-500);
  text-align: center;
}

.tech-grid__text {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--slate-700);
}

.tech-grid__text p + p {
  margin-top: var(--space-md);
}

/* ── Form Container ── */

.form-container {
  max-width: 520px;
  margin-inline: auto;
}

/* ── Form Card ── */

.form-card {
  background: var(--surface-200);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.form-card__title {
  font-size: var(--text-h2);
  font-weight: 500;
  color: var(--slate-900);
  margin-bottom: var(--space-md);
  line-height: var(--leading-tight);
}

.form-card__desc {
  font-size: var(--text-caption);
  color: var(--slate-500);
  margin-bottom: var(--space-md);
}

/* ── Form Group ── */

.form-group {
  margin-bottom: var(--space-md);
}

.form-group__label {
  display: block;
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: var(--space-xs);
}

.form-group__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--surface-100);
  font-size: var(--text-body);
  color: var(--slate-900);
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}

.form-group__input:focus {
  outline: none;
  border-color: var(--brand-600);
}

.form-group__input:focus-visible {
  box-shadow: var(--focus-ring);
}

.form-group__input::placeholder {
  color: var(--slate-500);
}

.form-group__textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group__input.is-invalid {
  border-color: var(--color-error);
}

.form-group__counter {
  margin-top: var(--space-xs);
  font-size: var(--text-caption);
  color: var(--slate-500);
  text-align: right;
}

.form-group__counter--warn {
  color: var(--color-error);
}

/* ── Form Feedback ── */

.form-feedback {
  margin-top: var(--space-md);
  font-size: var(--text-caption);
  min-height: 1.4em;
}

.form-feedback--success {
  color: var(--color-success);
}

.form-feedback--error {
  color: var(--color-error);
}

/* ── Footer ── */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: var(--footer-border-width) solid var(--footer-border-top);
  padding-block: var(--footer-section-padding-y);
  background-image: linear-gradient(
    180deg,
    var(--footer-bg-start) 0%,
    var(--footer-bg-mid) var(--footer-bg-mid-stop),
    var(--footer-bg-end) 100%
  );
  background-color: var(--footer-bg-end);
  color: var(--footer-text);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--footer-top-line-height);
  background: linear-gradient(
    90deg,
    var(--footer-top-line-start),
    var(--footer-top-line-mid),
    var(--footer-top-line-end)
  );
  pointer-events: none;
}

.site-footer .footer-grid {
  position: relative;
  z-index: 1;
  align-items: stretch;
  gap: var(--footer-panel-gap);
  background: var(--footer-panel-bg);
  border: var(--footer-panel-border-width) solid var(--footer-panel-border);
  border-radius: var(--footer-panel-radius);
  padding: var(--footer-panel-padding);
  box-shadow: var(--footer-panel-shadow);
}

.site-footer__contact,
.site-footer__legal {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}

.site-footer__title {
  font-size: var(--footer-title-size);
  font-weight: var(--footer-title-weight);
  color: var(--footer-title);
  margin-bottom: var(--footer-title-margin-bottom);
  letter-spacing: var(--footer-title-letter-spacing);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--footer-list-gap);
}

.site-footer__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--footer-item-gap);
  font-size: var(--footer-item-size);
  line-height: var(--footer-item-line-height);
  color: var(--footer-text);
}

.site-footer__list a {
  color: var(--footer-link);
  font-weight: var(--footer-link-weight);
  text-decoration: underline;
  text-decoration-color: var(--footer-link-underline-color);
  text-underline-offset: var(--footer-link-underline-offset);
  text-decoration-thickness: var(--footer-link-underline-thickness);
}

.site-footer__list a:hover {
  color: var(--footer-link-hover);
  text-decoration-color: currentColor;
}

.site-footer__address {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer__lastmod {
  margin-top: var(--space-sm);
}

.site-footer__doc-link {
  font-weight: var(--footer-doc-link-weight);
}

.site-footer__icon {
  flex-shrink: 0;
  width: var(--footer-icon-size);
  height: var(--footer-icon-size);
  padding: var(--footer-icon-padding);
  border-radius: var(--footer-icon-radius);
  color: var(--footer-icon);
  background: var(--footer-icon-bg);
  border: var(--footer-icon-border-width) solid var(--footer-icon-border);
  margin-top: var(--footer-icon-margin-top);
}

.site-footer__meta {
  color: var(--footer-muted);
  font-size: var(--footer-meta-size);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--footer-legal-gap);
}

.site-footer__credit {
  font-size: var(--footer-credit-size);
  color: var(--footer-muted);
  margin-top: auto;
  padding-top: var(--footer-credit-padding-top);
  border-top: var(--footer-credit-border-width) solid var(--footer-credit-border);
}

.site-footer__credit a {
  color: var(--footer-link);
  text-decoration: underline;
  text-decoration-color: var(--footer-link-underline-color);
  text-underline-offset: var(--footer-link-underline-offset);
  text-decoration-thickness: var(--footer-link-underline-thickness);
}

.site-footer__credit a:hover {
  color: var(--footer-link-hover);
  text-decoration-color: currentColor;
}

@media (max-width: 900px) {
  .site-footer .footer-grid {
    padding: var(--footer-panel-padding-mobile);
    gap: var(--footer-panel-gap-mobile);
  }
}

/* ── Scroll Reveal (base state, JS adds .is-visible) ── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-normal) var(--ease-standard),
    transform var(--dur-normal) var(--ease-standard);
}

/* ── Skip Link (akadálymentesség — WCAG 2.4.1) ── */

.skip-link {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--brand-600);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-standard);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/* ── Focus Visible (keyboard navigation) ── */

.btn:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.main-nav__link:focus-visible {
  color: var(--brand-600);
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.site-footer__list a:focus-visible {
  outline: var(--footer-focus-width) solid var(--footer-focus);
  outline-offset: var(--footer-focus-offset);
}

.site-footer__credit a:focus-visible {
  outline: var(--footer-focus-width) solid var(--footer-focus);
  outline-offset: var(--footer-focus-offset);
}

.site-header__logo:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* ============================================
   Breadcrumb — Aloldalak navigációs útvonal
   ============================================ */

.breadcrumb {
  margin-left: var(--space-md);
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: var(--text-caption);
  color: var(--slate-500);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: var(--space-xs);
  color: var(--slate-300);
}

.breadcrumb__link {
  color: var(--slate-500);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--brand-600);
}

.breadcrumb__link:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 2px;
}

.breadcrumb__item--current {
  color: var(--slate-700);
  font-weight: 500;
}

@media (max-width: 480px) {
  .breadcrumb {
    display: none;
  }
}

/* ============================================
   Responsive — Component Overrides
   ============================================ */

/* ── < 900px (Tablet) ── */

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(300px, 80vw);
    background: var(--nav-mobile-bg);
    border-left: 1px solid var(--nav-mobile-border);
    border-bottom: 1px solid var(--nav-mobile-border);
    border-radius: 0 0 0 var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: -8px 8px 32px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--dur-slow) var(--ease-standard),
                visibility var(--dur-slow) var(--ease-standard),
                top var(--dur-normal) var(--ease-standard);
  }

  .site-header.is-shrunk ~ * .main-nav,
  body:has(.site-header.is-shrunk) .main-nav {
    top: var(--header-height-shrunk);
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .main-nav__title {
    display: block;
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid var(--slate-300);
  }

  .main-nav__list {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .main-nav__link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-body);
    border-radius: var(--radius-sm);
    transition: background-color var(--dur-fast) var(--ease-standard),
                color var(--dur-fast) var(--ease-standard);
  }

  .main-nav__link:hover {
    background: rgba(15, 23, 42, 0.04);
  }

  .main-nav__link::after {
    display: none;
  }

  /* Overlay behind open nav */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 998;
    visibility: hidden;
    transition: background var(--dur-slow) var(--ease-standard),
                visibility var(--dur-slow) var(--ease-standard);
  }

  .nav-overlay.is-visible {
    visibility: visible;
    background: var(--nav-overlay-bg);
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--space-lg) + var(--header-height));
    min-height: auto;
    /* Plan sor 425-437: SVG kisebb és középre mobilon */
    background-size: 600px auto, cover, cover, cover, cover, cover;
    background-position: center 20%, center, center, center, center, center;
  }

  .hero .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .hero-panel {
    text-align: center;
    padding: 44px 36px 36px;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual img {
    max-height: 340px;
  }

  .hero-visual::before {
    width: min(320px, 80%);
    height: min(320px, 80%);
  }

  .hero-visual::after {
    width: min(240px, 62%);
    height: 30px;
    bottom: -8px;
  }

  /* Product card — stacked on tablet */
  .product-card {
    flex-direction: column;
    text-align: center;
  }

  .product-card__image {
    width: min(220px, 100%);
    min-height: 200px;
    margin-bottom: var(--space-md);
  }

  .product-card__body {
    align-items: center;
    text-align: center;
    align-self: stretch;
    width: 100%;
  }

  .product-card__features {
    align-items: center;
  }

  .product-card__features li {
    justify-content: flex-start;
    text-align: left;
    max-width: 36ch;
  }

  .product-card__footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    align-self: stretch;
    width: 100%;
  }

  .product-card__availability {
    justify-content: center;
    flex-basis: auto;
    width: 100%;
  }

}

/* ── < 640px (Large mobile) ── */

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual img {
    max-height: 300px;
  }

  .hero-visual::before {
    width: min(280px, 76%);
    height: min(280px, 76%);
  }

  .hero-visual::after {
    width: min(220px, 58%);
    height: 26px;
    bottom: -6px;
  }

  /* Product card */
  .product-card {
    padding: var(--space-md);
  }

  .product-card__image {
    min-height: 180px;
  }

}

/* ── < 480px (Mobile) ── */

@media (max-width: 480px) {
  .hero {
    /* Blur OFF on mobile for performance */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
  }

  .hero-visual img {
    max-height: 240px;
  }

  .hero-visual::before {
    width: min(220px, 72%);
    height: min(220px, 72%);
  }

  .hero-visual::after {
    width: min(180px, 54%);
    height: 22px;
    bottom: -4px;
  }

  .product-card__footer {
    gap: var(--space-sm);
  }

  .product-card__availability {
    justify-content: center;
  }

  .product-card__footer .btn {
    width: 100%;
    text-align: center;
  }

  .form-card {
    padding: var(--space-md);
  }
}

/* ── FAQ ── */

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--surface-100);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--dur-normal) var(--ease-standard),
              border-color var(--dur-normal) var(--ease-standard);
}

.faq-item[open] {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-md);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question:hover {
  color: var(--brand-600);
  background: var(--brand-100);
}

.faq-item[open] .faq-item__question {
  color: var(--brand-600);
}

.faq-item__icon {
  flex-shrink: 0;
  color: var(--slate-500);
  transition: transform var(--dur-normal) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
  color: var(--brand-600);
}

.faq-item__answer {
  padding: 0 var(--space-lg) var(--space-md);
  border-top: 1px solid var(--slate-300);
}

.faq-item__answer p {
  margin: var(--space-md) 0 0;
  font-size: var(--text-body);
  color: var(--slate-700);
  line-height: var(--leading-normal);
}

.faq-partner-link {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-partner-link:hover {
  color: var(--brand-500);
}

.faq-partner-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--slate-100);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-400);
  font-style: normal;
}

.faq-partner-contact__name {
  font-weight: 600;
  color: var(--slate-900);
  font-size: var(--text-body);
}

.faq-partner-contact__link {
  font-size: var(--text-body);
  color: var(--brand-600);
  text-decoration: none;
}

.faq-partner-contact__link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 639px) {
  .faq-item__question {
    padding: var(--space-md);
    font-size: var(--text-caption);
  }

  .faq-item__answer {
    padding: 0 var(--space-md) var(--space-md);
  }
}

/* ── Detail price box (termékaloldalak ár + elérhetőség blokk) ── */

.detail-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-100);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.detail-price-box__price {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--slate-900);
  line-height: var(--leading-tight);
}

.detail-price-box__price-period {
  font-size: var(--text-caption);
  font-weight: 400;
  color: var(--slate-500);
  margin-left: var(--space-xs);
}

.detail-price-box__availability {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-success);
}

.detail-price-box__availability::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

/* Out-of-stock modifier — subpage detail box */
.detail-price-box__availability--out-of-stock {
  color: var(--color-error);
}
.detail-price-box__availability--out-of-stock::before {
  background: var(--color-error);
}

@media (max-width: 480px) {
  .detail-price-box {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-panel,
  .hero-visual,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Kalkulátor promo kártya (főoldalon) ── */

.calc-promo {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface-100);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.calc-promo__icon {
  color: var(--brand-600);
  margin-bottom: var(--space-md);
}

.calc-promo__title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: var(--space-md);
}

.calc-promo__list {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--space-lg);
  text-align: left;
  max-width: 400px;
}

.calc-promo__list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: var(--space-sm);
  color: var(--slate-700);
}

.calc-promo__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}
