:root {
  --ink: #364028;
  --sand: #b49a75;
  --paper: #f8f4ed;
  --paper-soft: #f4eee5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  min-width: 320px;
  font-family: Georgia, "Times New Roman", serif;
}

img {
  max-width: 100%;
}

.site-shell {
  width: 100%;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  background: var(--paper);
}

/* Kért működés: a hero háttér mindig 100% széles, magassága automatikus. */
.hero-bg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-header {
  position: absolute;
  z-index: 2;
  top: 2.5%;
  left: 6.4%;
  width: clamp(150px, 12.5vw, 250px);
}

.header-brand {
  display: block;
  width: 100%;
  height: auto;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 21.5%;
  left: 7.1%;
  width: min(42vw, 760px);
}

.hero-brand {
  display: block;
  width: min(40vw, 720px);
  height: auto;
  margin: 0;
}

.hero h1 {
  margin: 0;
  color: var(--sand);
  font-size: clamp(42px, 4.1vw, 82px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin: 1.9vw 0 0;
  max-width: 690px;
  color: #3e4634;
  font-size: clamp(20px, 1.65vw, 31px);
  line-height: 1.25;
  font-weight: 400;
}

.hero-topics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75em;
  margin: 2vw 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 0.86vw, 16px);
  line-height: 1.35;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #3f4936;
}

.hero-topics i {
  font-style: normal;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    background: var(--paper-soft);
  }

  .hero-header {
    position: relative;
    inset: auto;
    order: 1;
    width: 190px;
    margin: 24px 24px 6px;
  }

  .hero-content {
    position: relative;
    inset: auto;
    order: 2;
    width: auto;
    padding: 22px 24px 30px;
  }

  .hero-bg {
    order: 3;
    width: 100%;
    height: auto;
  }

  .hero-brand {
    width: min(620px, 86vw);
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(44px, 10vw, 72px);
  }

  .hero-lead {
    margin-top: 22px;
    font-size: clamp(20px, 4.8vw, 28px);
    line-height: 1.35;
  }

  .desktop-break {
    display: none;
  }

  .hero-topics {
    margin-top: 24px;
    gap: 0.6em;
    font-size: 12px;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 520px) {
  .hero-header {
    width: 150px;
    margin: 18px 18px 2px;
  }

  .hero-content {
    padding: 18px 18px 24px;
  }

  .hero-brand {
    width: 100%;
    max-width: 430px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 19px;
  }

  .hero-topics {
    gap: 0.45em 0.6em;
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: 0.13em;
  }
}
