:root {
  --bg: #101216;
  --panel: #191d22;
  --line: #30353c;
  --text: #f4f4f2;
  --muted: #aeb5be;
  --accent: #ff9c42;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 99;
  background: #fff;
  color: #111;
  padding: 10px;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #101216f5;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}
.logo {
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap;
}
.logo > span:not(.mark),
em {
  color: var(--accent);
  font-style: normal;
}
.logo small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  margin: 7px 0 0 43px;
  color: var(--muted);
}
.mark {
  display: inline-block;
  border: 2px solid var(--accent);
  padding: 5px;
  font-size: 19px;
  margin-right: 5px;
  letter-spacing: -3px;
  color: var(--accent);
}
.mark span {
  color: white;
}
nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}
nav a:hover,
.textlink:hover {
  color: var(--accent);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--accent);
  color: #151515;
  font-weight: 800;
  padding: 15px 23px;
  border: 1px solid var(--accent);
  transition: 0.2s;
  line-height: 1.3;
}
.btn:hover {
  background: #ffc18b;
  transform: translateY(-2px);
}
.btn.small {
  font-size: 14px;
  padding: 12px 16px;
}
.outline {
  background: transparent;
  color: var(--text);
  border-color: #626a73;
}

.mhegeszto{
    font-size: 30px;
    font-style: arial;
}
.outline:hover {
  background: var(--panel);
}
.hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 80% 45%, #303740 0%, #101216 58%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 570px;
  gap: 40px;
  padding: 70px 0;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-right: 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  line-height: 1.06;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(52px, 6.5vw, 94px);
  margin-bottom: 25px;
}
h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  margin-bottom: 22px;
}
h3 {
  font-size: 23px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.lead {
  font-size: 20px;
  max-width: 540px;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-art {
  position: relative;
  border: 1px solid #414951;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, #ffffff09 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #ffffff09 40px);
  padding: 20px;
}
.hero-art svg {
  width: 100%;
  display: block;
}
.art-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.strip {
  background: var(--accent);
  color: #161616;
}
.strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}
.section {
  padding: 85px 0;
}
.intro,
.muted {
  color: var(--muted);
  max-width: 760px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 35px;
}
.cards article,
.regions article,
.contact-box {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
}
.cards article {
  border-top: 2px solid #434b55;
  transition: 0.2s;
}
.cards article:hover {
  border-top-color: var(--accent);
  transform: translateY(-3px);
}
.num {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 30px;
}
.cards p,
.regions p,
.split p,
.contact p,
details p {
  color: var(--muted);
  margin-bottom: 0;
}
.band {
  background: #171a1f;
  border-block: 1px solid var(--line);
}
.split,
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}
.textlink {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  margin-top: 20px;
}
.regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0 20px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
details p {
  padding: 12px 0 0;
}
.contact-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.contact-box span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 12px;
}
.contact-box > a:not(.btn) {
  font-size: clamp(16px, 2.5vw, 23px);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-box .btn {
  margin-top: 20px;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0;
}
.mobile-call {
  display: none;
}
@media (max-width: 900px) {
  nav {
    gap: 12px;
  }
  .nav > .btn {
    display: none;
  }
  .hero-grid {
    min-height: auto;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .contact {
    gap: 30px;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 32px);
  }
  header {
    position: relative;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
    gap: 16px;
  }
  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13px;
  }
  .hero-grid,
  .split,
  .contact,
  .regions,
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    padding: 48px 0;
    gap: 30px;
  }
  .hero-art {
    max-width: 400px;
  }
  .strip .wrap {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 8px;
  }
  .section {
    padding: 55px 0;
  }
  .cards article,
  .regions article,
  .contact-box {
    padding: 24px;
  }
  .num {
    margin-bottom: 18px;
  }
  footer .wrap {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 85px;
  }
  .mobile-call {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    text-align: center;
    background: var(--accent);
    color: #111;
    font-weight: 800;
    padding: 14px;
  }
  .actions .btn {
    flex: 1;
    white-space: nowrap;
    font-size: 13px;
    padding: 14px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Mobil hamburger navigáció */
.menu-toggle {
  display: none;
}
@media (max-width: 650px) {
  header {
    position: sticky;
    top: 0;
  }
  .nav {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 14px 0;
    gap: 12px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--accent);
    cursor: pointer;
    padding: 8px;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition:
      transform 0.2s,
      opacity 0.2s;
  }
  .menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    width: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    flex-direction: column;
    gap: 0;
    font-size: 16px;
    box-shadow: 0 12px 20px #0005;
  }
  #main-nav.is-open {
    display: flex;
  }
  #main-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }
  #main-nav a:last-child {
    border-bottom: 0;
  }
}

/* Referenciagaléria */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.reference-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--panel);
  border: 1px solid var(--line);
}
.reference-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.reference-item:hover img {
  transform: scale(1.05);
}
.reference-item span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--accent);
  color: #111;
  padding: 5px 12px;
  font-weight: 800;
}
.photo-viewer {
  position: fixed;
  inset: 0;
  width: min(1000px, 96vw);
  max-width: 96vw;
  max-height: 95dvh;
  background: #101216;
  color: white;
  border: 1px solid var(--line);
  padding: 45px 48px 30px;
  overflow: hidden;
}
.photo-viewer::backdrop {
  background: #000e;
}
.photo-viewer img {
  display: block;
  width: 100%;
  height: min(70dvh, 700px);
  object-fit: contain;
}
.photo-viewer button {
  position: absolute;
  background: #191d22;
  color: white;
  border: 1px solid var(--line);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 44px;
  line-height: 1;
}
.photo-close {
  top: 4px;
  right: 4px;
}
.photo-prev {
  left: 4px;
  top: 50%;
}
.photo-next {
  right: 4px;
  top: 50%;
}
.photo-count {
  text-align: center;
  margin: 8px 0 0;
  color: var(--muted);
}
@media (max-width: 900px) {
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .reference-grid {
    gap: 8px;
  }
  .photo-viewer {
    padding: 45px 38px 20px;
  }
  .photo-viewer button {
    width: 34px;
  }
  .photo-viewer img {
    height: 65dvh;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .nav {
    gap: 12px;
  }
  nav {
    gap: 12px;
  }
  .nav > .btn {
    display: none;
  }
}

/* IRONLINE logó */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.hero-logo {
  padding: 0;
  border: 0;
  background: none;
  max-width: 540px;
}
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.nav {
  min-height: 96px;
}
html {
  scroll-padding-top: 110px;
}
@media (max-width: 650px) {
  .nav {
    min-height: 76px;
    padding: 5px 0;
  }
  .logo img {
    width: 66px;
    height: 66px;
  }
  .hero-logo {
    width: 100%;
    max-width: 420px;
    margin: auto;
  }
}

/* Transparent logo */
.logo img,
.hero-logo img {
  background: transparent;
  border-radius: 0;
}

/* Fotós nyitóoldal */
.hero {
  position: relative;
  isolation: isolate;
  background: #0b0e11;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("hero-hegesztes.webp") right center / auto 112% no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      #0b0e11 0%,
      #0b0e11 25%,
      rgba(11, 14, 17, 0.94) 35%,
      rgba(11, 14, 17, 0.35) 56%,
      transparent 76%
    ),
    linear-gradient(0deg, #0b0e11 0%, transparent 18%);
}
.hero-grid {
  display: flex;
  align-items: center;
  min-height: clamp(620px, calc(100svh - 145px), 800px);
  padding: 75px 0;
}
.hero-copy {
  width: min(100%, 650px);
  position: relative;
}
.hero h1 {
  font-size: clamp(58px, 6vw, 94px);
  max-width: 600px;
  line-height: 1.04;
}
.hero .lead {
  color: #c1c8d0;
  max-width: 580px;
}
.hero .btn {
  border-radius: 4px;
}
header {
  background: #0b0e11f5;
}
.nav {
  min-height: 100px;
}
.logo img {
  width: 116px;
  height: 90px;
}
#main-nav a {
  position: relative;
  padding: 10px 0;
}
#main-nav a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
@media (min-width: 651px) and (max-width: 1000px) {
  .hero::before {
    background-size: auto 100%;
    background-position: right center;
  }
  .hero::after {
    background:
      linear-gradient(
        90deg,
        #0b0e11 0%,
        rgba(11, 14, 17, 0.94) 30%,
        rgba(11, 14, 17, 0.45) 65%,
        transparent
      ),
      linear-gradient(0deg, #0b0e11, transparent 20%);
  }
  .hero-copy {
    max-width: 530px;
  }
}
@media (max-width: 650px) {
  .nav {
    min-height: 76px;
  }
  .logo img {
    width: 82px;
    height: 66px;
  }
  .hero-grid {
    min-height: 730px;
    align-items: flex-start;
    padding: 42px 0 320px;
  }
  .hero h1 {
    font-size: clamp(48px, 11vw, 65px);
    max-width: 440px;
  }
  .hero .lead {
    font-size: 17px;
  }
  .hero::before {
    background-size: 100% auto;
    background-position: center bottom;
  }
  .hero::after {
    background: linear-gradient(
      180deg,
      #0b0e11 0%,
      #0b0e11 35%,
      rgba(11, 14, 17, 0.88) 49%,
      transparent 75%,
      rgba(11, 14, 17, 0.2) 100%
    );
  }
  .hero .actions {
    margin-top: 22px;
  }
  .hero-copy {
    width: 100%;
  }
}

/* Lágy átmenet a hegesztőfotó és a háttér között */
@media (min-width: 651px) {
  .hero::before {
    inset: auto 0 auto auto;
    top: 50%;
    transform: translateY(-50%);
    height: 112%;
    width: auto;
    aspect-ratio: 1.09876543;
    background-size: 100% 100%;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 12%,
      #000 43%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 12%,
      #000 43%
    );
  }
  .hero::after {
    background:
      linear-gradient(
        90deg,
        #0b0e11 0%,
        #0b0e11 32%,
        rgba(11, 14, 17, 0.75) 46%,
        rgba(11, 14, 17, 0.15) 65%,
        transparent 78%
      ),
      linear-gradient(0deg, #0b0e11 0%, transparent 18%);
  }
}
@media (max-width: 650px) {
  .hero::before {
    -webkit-mask-image: linear-gradient(to bottom, transparent 35%, #000 78%);
    mask-image: linear-gradient(to bottom, transparent 35%, #000 78%);
  }
}
