:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --panel: #111111;
  --panel-2: #191919;
  --line: #333333;
  --line-soft: rgba(249, 249, 249, 0.14);

  --brand: #e85002;
  --brand-2: #ff6001;
  --brand-hot: #fc1801;

  --text: #f9f9f9;
  --muted: #a7a7a7;
  --soft: #646464;

  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Ubuntu", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(232, 80, 2, 0.2), transparent 42%),
    radial-gradient(circle at 80% 108%, rgba(255, 96, 1, 0.16), transparent 44%),
    var(--bg);
}

body.menu-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}


a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1220px, 92vw);
  margin-inline: auto;
}

.app-shell {
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-shell > main {
  flex: 1 0 auto;
}

.bg-grid {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  margin-top: 0.38rem;
  z-index: 120;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  background-color: rgba(0, 0, 0, 0);
  transform: translateZ(0);
  will-change: background-color, border-bottom-color, box-shadow;
  transition:
    margin-top 220ms ease,
    background-color 260ms ease,
    border-bottom-color 260ms ease,
    box-shadow 260ms ease,
    backdrop-filter 260ms ease,
    -webkit-backdrop-filter 260ms ease;
}

.site-header.is-scrolled {
  margin-top: 0;
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom-color: rgba(232, 80, 2, 0.26);
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.84);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.nav-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-top: 0.08rem;
}

.brand-logo {
  width: auto;
  height: 50px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.9);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.desktop-nav {
  margin-left: auto;
}

.desktop-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.32rem;
}

.desktop-nav li {
  position: relative;
}

.desktop-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  border-color: rgba(232, 80, 2, 0.36);
  background: rgba(232, 80, 2, 0.16);
  color: #ffffff;
}

.desktop-nav a.is-active {
  border-color: rgba(232, 80, 2, 0.42);
  background: linear-gradient(135deg, rgba(232, 80, 2, 0.4), rgba(255, 96, 1, 0.32));
}

.submenu-trigger {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.submenu-toggle {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(24, 24, 24, 0.9);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.has-submenu.is-open .submenu-toggle,
.submenu-toggle:hover,
.submenu-toggle:focus-visible {
  border-color: rgba(232, 80, 2, 0.42);
  background: rgba(232, 80, 2, 0.16);
}

.has-submenu.is-open .submenu-toggle span {
  transform: rotate(180deg);
}

.submenu-toggle span {
  transition: transform 180ms ease;
}

.submenu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  min-width: 292px;
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(13, 13, 13, 0.98);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 170;
}

.has-submenu.is-open > .submenu {
  display: flex;
}

.submenu a {
  width: 100%;
  border-radius: 10px;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(90vw, 370px);
  background: #090909;
  border-left: 1px solid var(--line-soft);
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.mobile-nav.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.mobile-close {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.mobile-nav a {
  display: block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.75rem 0.82rem;
}

.mobile-nav a.is-active {
  border-color: rgba(232, 80, 2, 0.44);
  background: rgba(232, 80, 2, 0.18);
}

.hero {
  padding: 1.8rem 0 1.2rem;
}

.hero-home {
  padding: 2.35rem 0 1.7rem;
}

.hero-shell {
  border-radius: 28px;
  border: 1px solid var(--line-soft);
  background-image:
    linear-gradient(118deg, rgba(0, 0, 0, 0.9), rgba(13, 0, 0, 0.64)),
    var(--hero-image, linear-gradient(130deg, #090909, #131313));
  background-size: cover;
  background-position: center;
  min-height: 350px;
  padding: clamp(1.2rem, 2.8vw, 2.7rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-shell::after {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  right: -180px;
  bottom: -210px;
  background: radial-gradient(circle, rgba(232, 80, 2, 0.34), transparent 72%);
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-weight: 800;
  color: #d9c3a8;
}

.hero h1 {
  margin: 0.7rem 0 0;
  font-family: "Ubuntu", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: 1.05;
  max-width: 15ch;
}

.hero-lead {
  margin-top: 0.8rem;
  max-width: 66ch;
  color: rgba(249, 249, 249, 0.89);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.hero-home .hero-shell {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(300px, 38vh, 456px);
  padding: clamp(1.7rem, 4.8vw, 4rem);
  gap: clamp(0.25rem, 0.8vw, 0.75rem);
}

.hero-home h1 {
  margin-top: 0.95rem;
  font-size: clamp(2.05rem, 4.1vw, 3.35rem);
  line-height: 1.08;
  max-width: 18ch;
}

.hero-home .hero-lead {
  margin-top: 1.15rem;
  max-width: 72ch;
}

.hero-home .hero-actions {
  margin-top: 1.45rem;
  justify-content: center;
}

.hero.hero-cenova {
  padding: 1.7rem 0 1.3rem;
}

.hero.hero-cenova .hero-shell {
  min-height: clamp(360px, 46vh, 520px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4.8vw, 3rem);
  gap: clamp(0.25rem, 0.8vw, 0.75rem);
}

.hero.hero-cenova .eyebrow,
.hero.hero-cenova h1,
.hero.hero-cenova .hero-lead {
  text-align: left;
}

.hero.hero-cenova .hero-lead {
  margin-top: 1.15rem;
  max-width: 62ch;
}

.hero.hero-cenova .hero-actions {
  justify-content: flex-start;
  margin-top: 2.1rem;
}

.btn {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  padding: 0.64rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(138deg, var(--brand), var(--brand-2));
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line-soft);
  background: rgba(17, 17, 17, 0.9);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(138deg, var(--brand), var(--brand-2));
  border-color: transparent;
  filter: brightness(0.92);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(249, 249, 249, 0.25);
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-primary:focus-visible,
.contact-form .btn-primary:hover,
.contact-form .btn-primary:focus-visible {
  background: linear-gradient(138deg, var(--brand), var(--brand-2));
  border-color: transparent;
  filter: brightness(0.9);
  color: #ffffff;
}

.page-body {
  padding: 0.8rem 0 2.8rem;
}

.page-body.has-standalone-contact {
  padding-bottom: 1rem;
}

.home-contact-standalone {
  padding: 0 0 2.8rem;
}

.page-grid {
  display: block;
}

.content-flow {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(8, 8, 8, 0.95));
  padding: clamp(0.95rem, 2.8vw, 1.9rem);
}

.content-flow > * + * {
  margin-top: 1rem;
}

.content-flow h2,
.content-flow h3,
.content-flow h4,
.content-flow h5,
.content-flow h6 {
  font-family: "Ubuntu", "Segoe UI", sans-serif;
  line-height: 1.15;
  margin: 1.7rem 0 0.56rem;
}

.content-flow h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.content-flow h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.56rem);
}

.content-flow p,
.content-flow li,
.content-flow blockquote {
  color: rgba(249, 249, 249, 0.93);
}

.content-flow ul,
.content-flow ol {
  padding-left: 1.2rem;
}

.content-flow a {
  color: #ff8f5d;
  font-weight: 700;
}

.content-flow a:hover,
.content-flow a:focus-visible {
  color: #ffb38f;
}

.content-flow a.btn-primary,
.content-flow a.btn-primary:hover,
.content-flow a.btn-primary:focus-visible {
  color: #ffffff;
}

.content-flow a.btn-secondary,
.content-flow a.btn-secondary:hover,
.content-flow a.btn-secondary:focus-visible {
  color: var(--text);
}

.content-flow blockquote {
  margin: 0.95rem 0;
  padding: 0.86rem 1rem;
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: rgba(28, 28, 28, 0.8);
}

.content-flow figure {
  margin: 1rem 0;
}

.content-flow img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
}

.cennik-top-grid,
.cennik-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cennik-pricing h2 {
  margin-top: 1.35rem;
}

.cennik-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(15, 15, 15, 0.96);
  padding: 0.9rem;
}

.cennik-card h2,
.cennik-card h3 {
  margin-top: 0;
}

.cennik-contact-list,
.cennik-price-list {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.content-flow .cennik-contact-list,
.content-flow .cennik-price-list {
  margin-left: 0;
  padding-left: 0;
}

.cennik-contact-list li {
  color: rgba(249, 249, 249, 0.93);
}

.cennik-price-list li {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(21, 21, 21, 0.95);
  padding: 0.55rem 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cennik-price-list li span {
  color: rgba(249, 249, 249, 0.93);
}

.cennik-price-list li strong {
  color: #ffd8bf;
  text-align: right;
}

.cennik-price-list .cennik-note-line {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding-block: 0.5rem;
}

.cennik-subtext {
  color: var(--muted);
  margin: 0.58rem 0 0;
}

.cennik-summary {
  margin-top: 0.95rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(13, 13, 13, 0.94);
  padding: 0.9rem;
}

.cennik-summary p {
  margin: 0;
}

.cennik-summary p + p {
  margin-top: 0.55rem;
}

.intro-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.74rem;
  margin-bottom: 1rem;
}

.image-card {
  margin: 0;
}

.image-card.tall {
  grid-column: span 4;
}

.image-card.wide {
  grid-column: span 4;
}

.image-card img {
  height: 210px;
}

.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.services-card {
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  background: var(--panel-2);
  display: block;
  transition: transform 170ms ease, border-color 170ms ease;
}

.services-card:hover,
.services-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(232, 80, 2, 0.5);
}

.services-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.services-card-copy {
  padding: 0.8rem;
}

.services-card-copy h3 {
  margin: 0;
  color: #ffd1ba;
}

.services-card-copy p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.home-block + .home-block {
  margin-top: clamp(2.8rem, 5.2vw, 4.2rem);
}

.home-head {
  text-align: center;
  margin-bottom: 1rem;
}

.home-head h2 {
  margin-top: 0;
}

.home-head p {
  margin: 0.5rem auto 0;
  color: var(--muted);
  max-width: 70ch;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-card {
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  padding: 0.75rem;
}

.home-card figure {
  margin: 0;
}

.home-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.home-card h3 {
  margin: 0.75rem 0 0;
}

.home-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.home-split-media img {
  height: 100%;
  min-height: 320px;
}

.home-split-copy p {
  color: var(--muted);
}

.home-split-copy {
  display: block;
}

.home-split-copy > :first-child {
  margin-top: 0;
}

.home-feature-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.content-flow .home-feature-list {
  padding-left: 0;
  margin-left: 0;
}

.home-feature-list li {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(24, 24, 24, 0.9);
  padding: 0.65rem 0.72rem;
}

.home-feature-list h4 {
  margin: 0;
}

.home-feature-list p {
  margin: 0.32rem 0 0;
  color: var(--muted);
}

.home-security-layout {
  --security-block-height: clamp(440px, 34vw, 540px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 0.9rem;
  align-items: start;
  min-height: var(--security-block-height);
  margin-top: 0.52rem;
}

.home-security-left {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.15fr);
  gap: 0.7rem;
  height: var(--security-block-height);
  align-self: start;
}

.home-security-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(16, 16, 16, 0.96);
  padding: 0.56rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.home-security-card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.home-security-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.home-security-extra {
  grid-column: 1 / -1;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(16, 16, 16, 0.96);
  padding: 0.6rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.home-security-extra h3 {
  margin: 0;
}

.home-security-extra ul {
  margin: 0.48rem 0 0;
  padding-left: 0;
  list-style-position: inside;
}

.home-security-extra li + li {
  margin-top: 0.3rem;
}

.home-security-figure {
  margin: 0;
  height: var(--security-block-height);
  align-self: start;
  overflow: hidden;
}

.content-flow .home-security-figure {
  margin: 0;
}

.home-security-figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}

.home-contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
  gap: 0.9rem;
}

.home-contact {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(14, 14, 14, 0.94);
  padding: 0.95rem;
  box-shadow: var(--shadow);
}

.home-contact-message {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding: clamp(0.6rem, 1.8vw, 1.1rem);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-contact-message h2 {
  margin: 0;
  max-width: 30ch;
  line-height: 1.22;
}

.home-contact-message p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.72;
}

.home-contact-message .btn {
  margin-top: 0.35rem;
}

.home-contact-copy,
.home-contact-info {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(18, 18, 18, 0.95);
  padding: 0.9rem;
}

.home-contact-copy h2 {
  margin-top: 0;
}

.home-contact-copy p {
  color: var(--muted);
}

.home-contact-info {
  display: grid;
  align-content: center;
  gap: 0.55rem;
}

.home-contact-info article {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.58rem 0.66rem;
  background: rgba(24, 24, 24, 0.9);
}

.home-contact-info h4 {
  margin: 0;
}

.home-contact-info p {
  margin: 0.3rem 0 0;
}

.service-split {
  display: grid;
  grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.95);
  padding: 0.85rem;
  margin-bottom: 0.95rem;
}

.service-split.is-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 36%);
}

.service-split.is-reverse .service-split-media {
  order: 2;
}

.service-split.is-reverse .service-split-copy {
  order: 1;
}

.service-split-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(44vh, 360px);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.92);
}

.service-split-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.service-split-media.is-portrait-source {
  padding: 0.42rem;
}

.service-split-media.is-portrait-source img {
  object-fit: contain;
}

.service-split-copy > :first-child {
  margin-top: 0;
}

.service-split-copy > :last-child {
  margin-bottom: 0;
}

.service-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-split.text-only,
.service-split.is-reverse.text-only {
  grid-template-columns: 1fr;
}

.gallery-grid {
  column-count: 4;
  column-gap: 0.68rem;
}

.gallery-item {
  margin: 0 0 0.68rem;
  break-inside: avoid;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: hsla(0, 0%, 6%, 0.96);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 180ms ease, filter 180ms ease;
}

.gallery-item img:hover {
  transform: scale(1.01);
  filter: brightness(1.04);
}

.gallery-pagination {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
}

.gallery-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.gallery-page-link {
  min-width: 2.2rem;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-soft);
  background: hsla(0, 0%, 8%, 0.9);
  color: var(--text);
  font-weight: 600;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.gallery-page-link:hover,
.gallery-page-link:focus-visible {
  border-color: rgba(232, 80, 2, 0.5);
  background: rgba(232, 80, 2, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.gallery-page-link.is-active {
  border-color: rgba(232, 80, 2, 0.65);
  background: rgba(232, 80, 2, 0.28);
  color: #fff;
}

.gallery-page-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(4px);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(15, 15, 15, 0.9);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(232, 80, 2, 0.48);
  background: rgba(232, 80, 2, 0.22);
}

.lightbox-body {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  max-width: min(92vw, 1400px);
}

.lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-size: 0.95rem;
  max-width: 70ch;
}

.contact-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 0.95rem;
}

.contact-details,
.contact-panel {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(18, 18, 18, 0.95);
  padding: 0.9rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contact-details h2,
.contact-details h4 {
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  line-height: 1.15;
}

.contact-panel-head h2 {
  margin: 0;
}

.contact-panel-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 0.66rem;
  margin-top: 0.72rem;
}

.form-row {
  display: grid;
  gap: 0.28rem;
}

.form-row.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.66rem;
}

.contact-form label,
.quote-form label {
  font-size: 0.83rem;
  color: #f1f1f1;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #3e3e3e;
  border-radius: 10px;
  background: #0b0b0b;
  color: var(--text);
  font: inherit;
  padding: 0.6rem 0.7rem;
}

.contact-form textarea,
.quote-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible,
.quote-form input:focus-visible,
.quote-form select:focus-visible,
.quote-form textarea:focus-visible,
.desktop-nav a:focus-visible,
.submenu-toggle:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(232, 80, 2, 0.65);
  outline-offset: 2px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.consent-row input {
  width: auto;
  margin-top: 0.15rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-actions {
  display: grid;
  gap: 0.45rem;
}

#form-status,
.form-status {
  min-height: 1.25rem;
  margin: 0;
  color: #ffd1ba;
  font-size: 0.88rem;
}

.quote-builder {
  display: grid;
  gap: 1.2rem;
}

.quote-intro {
  display: grid;
  gap: 0.45rem;
  text-align: center;
}

.quote-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quote-landing {
  background: transparent;
  color: var(--text);
  border-radius: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.quote-landing a {
  color: inherit;
}

.quote-landing-head {
  text-align: center;
  margin-bottom: 2rem;
}

.quote-landing-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.quote-landing-head p {
  margin: 0;
  color: var(--muted);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.quote-card {
  text-decoration: none;
  background: rgba(12, 12, 12, 0.96);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1.2rem 1rem 1.4rem;
  text-align: center;
  display: grid;
  gap: 0.8rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quote-card:hover,
.quote-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(249, 249, 249, 0.24);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.quote-card-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(10, 10, 10, 0.95);
}

.quote-card-icon svg {
  width: 46px;
  height: 46px;
}

.quote-card-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quote-category {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(18, 18, 18, 0.95);
  padding: 0.2rem 1rem 1rem;
}

.quote-category summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.quote-category summary::-webkit-details-marker {
  display: none;
}

.quote-category summary::after {
  content: "▾";
  font-weight: 700;
  color: var(--muted);
  transition: transform 170ms ease;
}

.quote-category[open] summary::after {
  transform: rotate(180deg);
}

.quote-hint {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.quote-form {
  display: grid;
  gap: 1rem;
}

.quote-fieldset {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(10, 10, 10, 0.92);
  display: grid;
  gap: 0.8rem;
}

.quote-fieldset legend {
  padding: 0 0.4rem;
  font-weight: 700;
  color: var(--text);
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.66rem;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.66rem;
}

.ral-inline-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.66rem;
}

.ral-inline-grid.is-hidden {
  display: none;
}

.ral-inline-grid .color-option {
  background: rgba(8, 8, 8, 0.95);
}

.brana-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0 1.2rem;
}

.brana-tab {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(10, 10, 10, 0.95);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.brana-tab:hover,
.brana-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(249, 249, 249, 0.25);
}

.brana-tab.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  color: #fff;
}

.brana-panel {
  margin-top: 0.4rem;
}

.brana-panel.is-hidden {
  display: none;
}

.color-option {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.6rem;
  background: rgba(10, 10, 10, 0.95);
  display: grid;
  gap: 0.35rem;
  text-align: center;
  cursor: pointer;
}

.color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-swatch {
  display: block;
  width: 100%;
  height: 70px;
  border-radius: 8px;
  background: var(--swatch);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.color-option input:checked + .color-swatch {
  outline: 2px solid rgba(232, 80, 2, 0.75);
  outline-offset: 2px;
}

.color-name {
  font-weight: 600;
}

.color-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.color-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-option {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.chip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-option span {
  display: block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.95);
}

.chip-option input:checked + span {
  color: #fff;
  text-shadow: 0 0 6px rgba(232, 80, 2, 0.55);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  background: rgba(232, 80, 2, 0.12);
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.7rem;
}

.toggle-field {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.6rem;
  background: rgba(10, 10, 10, 0.95);
  display: grid;
  gap: 0.45rem;
}

.toggle-label {
  margin: 0;
  font-weight: 600;
}

.toggle-options {
  display: flex;
  gap: 0.45rem;
}

.toggle-option {
  position: relative;
  flex: 1;
  text-align: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-option span {
  display: block;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line-soft);
  background: rgba(18, 18, 18, 0.85);
}

.toggle-option input:checked + span {
  color: #fff;
  text-shadow: 0 0 6px rgba(232, 80, 2, 0.55);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  background: rgba(232, 80, 2, 0.12);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.88);
  padding: 2.6rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-logo img {
  width: 40px;
  height: auto;
}

.footer-tagline {
  margin: 0.9rem 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-contact {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact .icon {
  flex: 0 0 auto;
  color: var(--brand-2);
}

/* Közösségi profilok. Csak ikon, ezért a linkek aria-label-t kapnak. */
.footer-social {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: #fff;
  border-color: var(--brand);
  background: rgba(232, 80, 2, 0.18);
  outline: none;
}

.footer-social .icon {
  width: 19px;
  height: 19px;
}

.footer-col-title {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-contact a,
.footer-col a,
.footer-credit a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-contact a:hover,
.footer-col a:hover,
.footer-contact a:focus-visible,
.footer-col a:focus-visible {
  color: var(--text);
}

.footer-col li {
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
}

.footer-copy,
.footer-credit {
  margin: 0;
  color: var(--soft);
  font-size: 0.85rem;
}

.footer-credit {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-credit a {
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--brand-2);
  border-bottom-color: var(--brand-2);
}


@media (max-width: 1120px) {
  .home-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-security-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-security-left,
  .home-security-figure {
    height: auto;
  }

  .home-split,
  .home-contact-box {
    grid-template-columns: 1fr;
  }

  .services-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cennik-top-grid,
  .cennik-price-grid {
    grid-template-columns: 1fr;
  }

  .service-split,
  .service-split.is-reverse {
    grid-template-columns: 1fr;
  }

  .service-split-media {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .service-split.is-reverse .service-split-media,
  .service-split.is-reverse .service-split-copy {
    order: initial;
  }

  .gallery-grid {
    column-count: 3;
  }

  .contact-two-col {
    grid-template-columns: 1fr;
  }

  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-nav {
    display: none;
  }

  .submenu,
  .submenu-toggle {
    display: none !important;
  }

  .hero-shell {
    min-height: 300px;
  }

  .hero-home {
    padding: 2rem 0 1.55rem;
  }

  .hero-home .hero-shell {
    min-height: 336px;
    padding: clamp(1.5rem, 6vw, 2.5rem);
  }

  .intro-gallery {
    grid-template-columns: 1fr;
  }

  .image-card.tall,
  .image-card.wide {
    grid-column: span 1;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 0.62rem;
  }


  .services-overview-grid {
    grid-template-columns: 1fr;
  }

  .home-card-grid,
  .home-security-left {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .brand-logo {
    height: 46px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.7rem);
  }

  .hero-home {
    padding: 1.7rem 0 1.3rem;
  }

  .hero-home .hero-shell {
    min-height: 384px;
    padding: 1.55rem 1.2rem 2.05rem;
  }

  .hero-home .hero-lead {
    margin-top: 1rem;
  }

  .hero-home .hero-actions {
    margin-top: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-landing {
    padding: 1.8rem 1.4rem;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .quote-category summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .toggle-options {
    flex-direction: column;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    column-count: 1;
  }


  .content-flow img {
    max-height: 320px;
  }

  .gallery-item img {
    max-height: none;
  }
}

/* ---------------------------------------------------------------------------
 * PHP verzió – kiegészítések (skip link, űrlaphibák, lightbox alapállapot).
 * ------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.lightbox-overlay[hidden] {
  display: none;
}

/* Jogi dokumentumok szövegoldala: olvasható sorhossz, tagolt szakaszok. */
.legal-doc {
  max-width: 78ch;
}

.legal-doc h2 {
  margin-top: 2.2rem;
}

.legal-doc h3 {
  margin-top: 1.6rem;
}

.legal-doc ul {
  padding-left: 1.15rem;
}

.legal-download {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

.legal-cookie-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand-2);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Facebook bejegyzések a főoldalon. A tartalom a szerverről jön, nem
   beágyazott iframe – ezért az oldal saját stílusát viseli. */
.fb-feed-section {
  padding-top: 0;
}

.fb-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1.1rem;
}

.fb-feed-head h2 {
  margin: 0;
}

.fb-feed-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 160ms ease;
}

.fb-feed-more:hover,
.fb-feed-more:focus-visible {
  color: var(--brand-2);
}

.fb-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.fb-post {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--panel-2);
  overflow: hidden;
}

.fb-post-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: hsla(0, 0%, 6%, 0.96);
}

.fb-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-post-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem;
  flex: 1;
}

.fb-post-date {
  margin: 0;
  color: var(--soft);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.fb-post-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(249, 249, 249, 0.88);
}

.fb-post-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.fb-post-link:hover,
.fb-post-link:focus-visible {
  border-bottom-color: var(--brand-2);
}

/* Galéria kategóriaszűrő. Sima linkek – JS nélkül is működik, és a lapozó
   ugyanazt a vizuális nyelvet használja. */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
}

.gallery-filter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-soft);
  background: hsla(0, 0%, 8%, 0.9);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.gallery-filter-link:hover,
.gallery-filter-link:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.gallery-filter-link.is-active {
  border-color: rgba(232, 80, 2, 0.65);
  background: rgba(232, 80, 2, 0.28);
  color: #fff;
}

.gallery-filter-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.gallery-filter-link.is-active .gallery-filter-count {
  color: rgba(255, 255, 255, 0.75);
}

/* Lapozás a nagyított képek között (nyilak, billentyű, mobilon elhúzás). */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(15, 15, 15, 0.9);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: rgba(232, 80, 2, 0.48);
  background: rgba(232, 80, 2, 0.22);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox-next {
  right: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox-counter {
  margin: 0;
  color: var(--soft);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.lightbox-counter[hidden] {
  display: none;
}

@media (max-width: 720px) {
  /* Kisebb gombok, hogy ne takarják a képet – az elhúzás úgyis működik. */
  .lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.6rem;
  }
}

.field-error {
  margin: 0.35rem 0 0;
  color: #ff9b7a;
  font-size: 0.85rem;
}

.form-flash {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

.form-flash.is-ok {
  border-color: rgba(94, 214, 132, 0.5);
  background: rgba(94, 214, 132, 0.12);
  color: #b9f2cd;
}

.form-flash.is-error {
  border-color: rgba(252, 24, 1, 0.45);
  background: rgba(252, 24, 1, 0.1);
  color: #ffc4b4;
}

#form-status.is-ok {
  color: #b9f2cd;
}

.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.quote-form input[aria-invalid="true"],
.quote-form select[aria-invalid="true"],
.quote-form textarea[aria-invalid="true"] {
  border-color: rgba(252, 24, 1, 0.6);
}

.contact-form button[disabled],
.quote-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status.is-ok {
  color: #b9f2cd;
}

/* Az árajánlat-űrlap tartalma nem nyúlik a teljes 1220px-es sávra: a mezők és a
   színválasztó így nem szakadnak szét a kijelző két széle felé. */
/* Az egész blokk EGY oszlopban: a fülek, az alcím és az űrlap bal széle
   egy vonalban áll. (Korábban csak az űrlap volt középre igazítva, ezért
   csúszott el egymáshoz képest a cím és a mezők.) */
.quote-builder {
  max-width: 1020px;
  margin-inline: auto;
  width: 100%;
}

.quote-form {
  gap: 1.4rem;
}

/* Kevesebb keret: a szakaszok nem külön dobozok, hanem egy hajszálvonal
   választja el őket. A kártya-keret így egy szinten marad (a külső panel),
   a beljebb lévő elemek (színek, kapcsolók) hordozzák a saját állapotukat. */
.quote-fieldset {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  /* A böngésző alapból 2px oldalmargót ad a fieldsetnek – emiatt csúsztak
     el a mezők a fülekhez és az alcímhez képest. */
  margin: 0;
  min-inline-size: 0;
  gap: 0.7rem;
}

/* ---------------------------------------------------------------------------
 * Főoldali hero körhinta
 *
 * A sáv vízszintesen görgethető, scroll-snap-pel. Ezért JavaScript nélkül is
 * lapozható (húzással, trackpaddel, Tab+nyilakkal) – a nyilak és a pöttyök
 * csak ráadásként jelennek meg, amikor a JS lefutott.
 * ------------------------------------------------------------------------- */
.hero-carousel-shell {
  position: relative;
}

.hero-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* A görgetősáv elrejtése – a lapozást a nyilak és a húzás adja. */
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 28px;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* A képdián nincs szöveg, ezért sokkal világosabb a sötétítő réteg:
   itt maga a fotó a tartalom. */
.hero-slide.is-image .hero-shell {
  background-image:
    linear-gradient(118deg, rgba(0, 0, 0, 0.32), rgba(13, 0, 0, 0.16)),
    var(--hero-image, linear-gradient(130deg, #090909, #131313));
}

.hero-slide.is-image .hero-shell::after {
  display: none;
}

/* Csak képernyőolvasónak szánt szöveg. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1rem;
}

.hero-carousel-nav[hidden] {
  display: none;
}

.hero-arrow {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: hsla(0, 0%, 8%, 0.9);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  border-color: var(--brand);
  background: rgba(232, 80, 2, 0.18);
  outline: none;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: hsla(0, 0%, 8%, 0.9);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.hero-dot.is-active {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.25);
}

@media (max-width: 720px) {
  .hero-arrow {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.4rem;
  }
}

/* Kattintható kártyák a főoldalon: ugyanaz a megjelenés, csak most linkek.
   Hoverre és billentyűs fókuszra narancs keret. */
a.home-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.home-card:hover,
a.home-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  transform: translateY(-2px);
}

a.home-card:focus-visible {
  outline: none;
}

/* A biztonságtechnikai kártyák ugyanígy viselkednek. */
a.home-security-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.home-security-card:hover,
a.home-security-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  transform: translateY(-2px);
  outline: none;
}

/* A tieniaca technika listaelemei: a link kitölti a csempét (a negatív margó
   miatt a keret melletti rész is kattintható), a keret pedig a listaelemé. */
.home-feature-list .feature-link {
  display: block;
  margin: -0.65rem -0.72rem;
  padding: 0.65rem 0.72rem;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
}

.home-feature-list li {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.home-feature-list li:has(.feature-link:hover),
.home-feature-list li:has(.feature-link:focus-visible) {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.home-feature-list .feature-link:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  a.home-card {
    transition: border-color 160ms ease, box-shadow 160ms ease;
  }

  a.home-card:hover,
  a.home-card:focus-visible {
    transform: none;
  }
}

/* A ragadós fejléc ne takarja a horgonyra ugrás után a címet. */
.service-split[id],
.content-flow h2[id],
.content-flow h3[id] {
  scroll-margin-top: 5.5rem;
}

/* Hero nélküli oldalak (kontakt, galéria) kompakt címe. */
.page-heading {
  margin: 0 0 1.4rem;
}

.page-heading h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.12;
}

.page-heading-lead {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 68ch;
}

/* Az árajánlat-űrlapok kompakt fejléce (a nagy hero helyett): visszalépés
   és az oldal címe egy sorban, hogy az űrlap rögtön kezdődhessen. */
.quote-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  /* Ugyanaz az oszlop, mint az űrlapé – így egy vonalban áll a szakaszokkal. */
  max-width: 1020px;
  margin: 0 auto 1.1rem;
  width: 100%;
}

.quote-header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.quote-back {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  order: -1;
  flex-basis: 100%;
}

.quote-back:hover,
.quote-back:focus-visible {
  color: var(--brand-2);
}

/* Minden szakasz fölött vonal – az elsők (Typ brány, Rozmery) sem kivételek. */
.quote-form > .quote-fieldset,
.quote-builder .quote-intro {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
}

.quote-fieldset legend {
  padding: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  /* A legend nem grid-elem, ezért a fieldset gap-je nem vonatkozik rá. */
  margin-bottom: 0.45rem;
}

.toggle-field {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  /* Kevés kapcsolónál a rács oszlopai szétnyúlnának, a pirulák pedig velük. */
  max-width: 340px;
}

.color-option {
  border-color: rgba(249, 249, 249, 0.08);
}

/* Szorosabb függőleges ritmus az űrlap fejlécénél. */
.quote-intro {
  gap: 0.25rem;
}

/* A "Typ brány" ugyanolyan szakaszcímke, mint a ROZMERY vagy a FARBA –
   nem külön kiemelt cím. Így az egész űrlap egy ritmusban olvasható. */
.quote-builder .quote-intro {
  text-align: left;
  gap: 0.25rem;
}

.quote-builder .quote-intro h2 {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-builder .quote-intro p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.brana-tabs {
  /* A fülsáv a címkéhez tartozik, ezért fölötte kevés, alatta több a levegő. */
  margin: 0.6rem 0 1.6rem;
}

.brana-panel {
  margin-top: 0;
}

/* A küldés gomb ne feszüljön ki a teljes szélességre – a státusz szövege
   mellé kerül, nem alá. */
.quote-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.2rem;
}

.quote-form .form-actions .btn {
  flex: 0 0 auto;
}

.quote-form .form-status {
  margin: 0;
  min-height: 1.25rem;
  color: #ffd1ba;
  font-size: 0.88rem;
}

/* Méretek: bal oldalt a mezők két oszlopban, jobb oldalt az útmutató ábra. */
.dimensions-layout {
  display: grid;
  /* A mezők annyit kapnak, amennyi egy 4 jegyű számhoz kell – a maradék az ábráé,
     hogy a feliratai (nadpražie, ostenie) olvashatók legyenek. */
  grid-template-columns: minmax(260px, 460px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.dimensions-layout .dimensions-grid {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.8rem 0.66rem;
}

.dimensions-guide {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(10, 10, 10, 0.95);
}

.dimensions-guide img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.dimensions-guide figcaption {
  padding: 0.5rem 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  border-top: 1px solid var(--line-soft);
}

.dimensions-guide-hint {
  color: var(--soft);
  white-space: nowrap;
}

/* Keskeny kijelzőn egymás alá, de az ábra marad elöl: a mezők nevei
   (nadpražie, ostenie) nélküle nem egyértelműek. */
@media (max-width: 720px) {
  /* A színkockák egy oszlopban aránytalanul nagyok lennének. */
  .quote-form .color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Az Áno/Nie két rövid gomb – egymás alatt csak magasságot pazarolna. */
  .quote-form .toggle-options {
    flex-direction: row;
  }

  .quote-form .color-swatch {
    height: 54px;
  }

  .dimensions-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dimensions-layout .dimensions-grid,
  .dimensions-guide {
    grid-column: 1;
  }

  .dimensions-guide {
    grid-row: 1;
  }

  .dimensions-layout .dimensions-grid {
    grid-row: 2;
  }

  .dimensions-guide img {
    max-height: 42vh;
    object-fit: contain;
  }
}

/* A brána fülek linkek, hogy JS nélkül is működjenek. */
a.brana-tab {
  display: inline-block;
  text-decoration: none;
}

.quote-form .form-flash {
  grid-column: 1 / -1;
}

/* A RAL rács hosszú listája ne nyomja szét az űrlapot. */
.ral-inline-grid {
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.footer-cookie-link {
  border: 0;
  background: none;
  padding: 0;
  /* Ugyanúgy néz ki, mint a mellette lévő linkek – gomb, mert nem navigál,
     hanem a cookie-beállítások ablakát nyitja. */
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: color 160ms ease;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus-visible {
  color: var(--text);
}

.gallery-grid img {
  cursor: zoom-in;
}
