:root {
  --blue: #0877e8;
  --blue-dark: #055fbd;
  --black: #08090b;
  --panel: #101318;
  --text: #101216;
  --muted: #60656d;
  --white: #ffffff;
  --max: 1240px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

/* Fejléc */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(0, 0, 0, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 1 285px;
  min-width: 190px;
}

.brand img {
  width: 100%;
  max-width: 285px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 40px);
  min-width: 0;
}

.main-nav > a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav > a:hover {
  color: var(--blue);
}

.main-nav .nav-cta {
  padding: 14px 24px;
  background: var(--blue);
}

.main-nav .nav-cta:hover {
  color: #ffffff;
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

/* Lenyíló nyelvválasztó */
.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-trigger {
  min-width: 58px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.language-trigger:hover,
.language-switcher.open .language-trigger {
  border-color: var(--blue);
  background: rgba(8, 119, 232, 0.18);
}

.current-flag {
  font-size: 21px;
  line-height: 1;
}

.language-arrow {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.language-switcher.open .language-arrow {
  transform: translateY(1px) rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: 190px;
  padding: 7px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: #101216;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.language-switcher.open .language-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: #eef1f5;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.language-option > span:first-child {
  flex: 0 0 24px;
  font-size: 20px;
  line-height: 1;
}

.language-option:hover,
.language-option.active {
  background: rgba(8, 119, 232, 0.2);
  color: #ffffff;
}

/* Kezdőkép */
.hero {
  min-height: 860px;
  padding-top: var(--header-height);
  position: relative;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, #080a0d 0%, rgba(8, 10, 13, 0.94) 28%, rgba(8, 10, 13, 0.37) 65%, rgba(8, 10, 13, 0.2) 100%),
    url("assets/hero.jpg") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 84px;
}

.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  margin-bottom: 8px;
  padding: 12px 18px;
  color: #6db2ff;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 0.06em;
  border: 1px solid rgba(8, 119, 232, 0.48);
  border-radius: 999px;
  background: rgba(8, 119, 232, 0.13);
}

.eyebrow > span:first-child,
.section-label > span:first-child {
  width: 42px;
  height: 2px;
  flex: 0 0 42px;
  background: var(--blue);
}

.hero h1 {
  width: min(760px, 100%);
  margin: 24px 0 30px;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 31px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-align: center;
  text-transform: uppercase;
  border: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary {
  color: #ffffff;
  background: var(--blue);
}

.primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* Rólunk */
.section {
  padding: 120px 0 92px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(55px, 7vw, 95px);
  align-items: start;
}

.about-grid > * {
  min-width: 0;
}

.about h2 {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

.about h2 em {
  color: var(--blue);
  font-style: normal;
}

.about-copy {
  min-width: 0;
  padding-left: clamp(34px, 4vw, 54px);
  color: #30343a;
  font-size: clamp(15.5px, 1.25vw, 17px);
  line-height: 1.72;
  border-left: 1px solid #ccd0d5;
}

.about-copy p {
  margin: 0 0 22px;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Értékek */
.values {
  padding: 58px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #11151a, #08090b);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value {
  min-width: 0;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 19px;
  padding: 10px clamp(22px, 3vw, 36px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.value:first-child {
  padding-left: 0;
}

.value:last-child {
  padding-right: 0;
  border-right: 0;
}

.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.value h3 {
  margin: 4px 0 10px;
  font-size: clamp(17px, 1.5vw, 20px);
  overflow-wrap: break-word;
}

.value p {
  margin: 0;
  color: #b9bec7;
  font-size: 14px;
  line-height: 1.56;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Lábléc */
.footer {
  padding: 48px 0 20px;
  color: #ffffff;
  background: #050607;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}

.footer-grid > * {
  min-width: 0;
}

.footer-brand img {
  width: 300px;
  height: 68px;
  object-fit: cover;
  object-position: center;
}

.footer-brand p {
  margin: 5px 0;
  color: #d4d8df;
  overflow-wrap: break-word;
}

.footer-brand .blue {
  color: var(--blue);
  font-weight: 600;
}

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.contact-list > a:not(.button) {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.contact-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 50%;
}

.footer-button {
  margin-top: 4px;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8c929b;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}


html[lang="hu"] .hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* Hosszabb nyelvek finomhangolása */
html[lang="de"] .hero h1,
html[lang="ro"] .hero h1,
html[lang="pl"] .hero h1,
html[lang="cs"] .hero h1,
html[lang="es"] .hero h1,
html[lang="uk"] .hero h1 {
  max-width: 820px;
  font-size: clamp(40px, 4.55vw, 63px);
}

html[lang="de"] .about h2,
html[lang="ro"] .about h2,
html[lang="pl"] .about h2,
html[lang="cs"] .about h2,
html[lang="es"] .about h2,
html[lang="uk"] .about h2 {
  font-size: clamp(35px, 3.6vw, 54px);
}

html[lang="de"] .button,
html[lang="ro"] .button,
html[lang="pl"] .button,
html[lang="cs"] .button,
html[lang="es"] .button,
html[lang="uk"] .button {
  letter-spacing: 0.025em;
}

/* Arab */
html[lang="ar"] body {
  font-family: "Noto Sans Arabic", Arial, sans-serif;
}

html[lang="ar"] .hero-content,
html[lang="ar"] .about,
html[lang="ar"] .values,
html[lang="ar"] .footer {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 4.7vw, 66px);
  line-height: 1.28;
  letter-spacing: 0;
}

html[lang="ar"] .eyebrow,
html[lang="ar"] .section-label {
  flex-direction: row-reverse;
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ar"] .about-grid {
  direction: rtl;
}

html[lang="ar"] .about h2 {
  line-height: 1.3;
  letter-spacing: 0;
}

html[lang="ar"] .about-copy {
  padding-right: clamp(34px, 4vw, 54px);
  padding-left: 0;
  border-right: 1px solid #ccd0d5;
  border-left: 0;
}

html[lang="ar"] .value {
  grid-template-columns: 68px minmax(0, 1fr);
}

html[lang="ar"] .contact-list {
  align-items: flex-start;
}

html[lang="ar"] .contact-list > a {
  direction: ltr;
}

html[lang="ar"] .language-menu {
  direction: ltr;
  text-align: left;
}

/* Közepes képernyő */
@media (max-width: 1050px) {
  .header-inner {
    gap: 18px;
  }

  .brand {
    flex-basis: 235px;
  }

  .brand img {
    max-width: 235px;
  }

  .main-nav {
    gap: 17px;
  }

  .main-nav .nav-cta {
    padding-inline: 18px;
  }

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

  .value,
  .value:first-child,
  .value:last-child {
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  }

  .value:last-child {
    border-bottom: 0;
  }
}

/* Mobil menü */
@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .brand {
    flex-basis: 220px;
  }

  .brand img {
    max-width: 220px;
    height: 50px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 24px;
    background: #050607;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a {
    width: 100%;
    padding: 15px 10px;
    text-align: center;
  }

  .main-nav .nav-cta {
    margin-top: 5px;
  }

  .language-switcher {
    width: 100%;
    margin-top: 13px;
  }

  .language-trigger {
    width: 100%;
    height: 47px;
  }

  .language-menu {
    position: static;
    width: 100%;
    max-height: 0;
    margin-top: 0;
    padding: 0 7px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: none;
    border-width: 0;
    box-shadow: none;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease, margin 0.2s ease;
  }

  .language-switcher.open .language-menu {
    max-height: 360px;
    margin-top: 8px;
    padding: 7px;
    visibility: visible;
    opacity: 1;
    border-width: 1px;
  }

  .hero {
    min-height: 750px;
    background-position: 63% center;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
  }

  .hero h1,
  html[lang="hu"] .hero h1,
  html[lang="de"] .hero h1,
  html[lang="ro"] .hero h1,
  html[lang="pl"] .hero h1,
  html[lang="cs"] .hero h1,
  html[lang="es"] .hero h1,
  html[lang="uk"] .hero h1,
  html[lang="ar"] .hero h1 {
    width: min(620px, 100%);
    font-size: clamp(38px, 8vw, 56px);
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 38px;
  }

  .about-copy,
  html[lang="ar"] .about-copy {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
    border-right: 0;
  }

  .footer-grid {
    gap: 38px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand {
    flex-basis: 205px;
    min-width: 170px;
  }

  .brand img {
    max-width: 205px;
    height: 47px;
  }

  .hero {
    min-height: 700px;
    background-position: 67% center;
  }

  .hero-content {
    padding-block: 60px;
  }

  .eyebrow {
    padding: 10px 13px;
    font-size: 14px;
  }

  .eyebrow > span:first-child {
    width: 27px;
    flex-basis: 27px;
  }

  .hero h1,
  html[lang="hu"] .hero h1,
  html[lang="de"] .hero h1,
  html[lang="ro"] .hero h1,
  html[lang="pl"] .hero h1,
  html[lang="cs"] .hero h1,
  html[lang="es"] .hero h1,
  html[lang="uk"] .hero h1,
  html[lang="ar"] .hero h1 {
    margin-top: 20px;
    font-size: clamp(31px, 8.8vw, 44px);
    line-height: 1.12;
  }

  html[lang="ar"] .hero h1 {
    line-height: 1.35;
  }

  .button {
    max-width: 100%;
    padding-inline: 22px;
  }

  .section {
    padding: 88px 0 68px;
  }

  .about h2,
  html[lang="de"] .about h2,
  html[lang="ro"] .about h2,
  html[lang="pl"] .about h2,
  html[lang="cs"] .about h2,
  html[lang="es"] .about h2,
  html[lang="uk"] .about h2 {
    font-size: clamp(34px, 10vw, 43px);
  }

  .footer-bottom {
    flex-direction: column;
  }
}
