:root {
  --bg: #F7F5F0;
  --accent: #2D8A4E;
  --text-main: #1F2933;
  --text-muted: #6B7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* lang switcher */

.header-lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px; /* 8px; */
  padding: 0px 10px 6px 10px;
  border-radius: 999px;
  /*
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-wrap: nowrap;
  max-width: 100%;
}

.header-lang-switcher__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.3rem; /* 1.15rem; */
  line-height: 1;
  background: transparent;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  flex: 0 0 36px;
}

.header-lang-switcher__item:hover {
  background: rgba(255, 255, 255, 0.14);
  /* transform: translateY(-1px); */
}

.header-lang-switcher__item.is-active,
.header-lang-switcher__item[aria-current="page"] {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

@media (max-width: 900px) {
  .header-lang-switcher {
    gap: 12px; /* 6px; */
    padding: 5px 8px;
  }

  .header-lang-switcher__item {
    font-size: 1.3rem; /* 1.05rem; */
  }
}

@media (max-width: 700px) {
  .header-lang-switcher {
    gap: 12px; /* 4px; */
    padding: 4px 6px;
    margin-left: auto;
    margin-right: auto;
    align-self: flex-start;
  }

  .header-lang-switcher__item {
    font-size: 1.3rem; /* 0.95rem; */
  }
}

@media (max-width: 480px) {
  .header-lang-switcher {
    gap: 12px; /* 3px; */
    padding: 4px 5px;
    border-radius: 16px;
  }

  .header-lang-switcher__item {
    font-size: 1.3rem; /* 0.88rem; */
  }
}

.hero-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

@media (max-width: 700px) {
  .hero-bar-actions {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* lang flag (CZ, PL, SK) */

.lang-flag {
  position: relative;
  /* NO!!!
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 16px;
  */
}

.lang-flag::after {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  font-size: 0.69rem; /* 0.58rem; */
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.lang-flag--cz::after { content: "CZ"; }
.lang-flag--pl::after { content: "PL"; }
.lang-flag--sk::after { content: "SK"; }

/* -- */

.hero-bar {
  background: var(--accent);
  color: #FFFFFF;
  padding: 18px 16px;
}

.hero-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-bar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.hero-bar-brand > a:first-child { display: inline-flex; }

.hero-bar-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 52px;
}

.hero-bar-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-bar-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-bar-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}
.hero-bar-subtitle span {
	display: inline-block;
}

.hero-bar-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.hero-bar-cta:hover {
  text-decoration: none;
  background: #e5f4ea;
}

.hero {
  text-align: center;
  padding: 28px 0 24px;
}

.hero-card {
  position: relative;
  padding: 34px 0px 40px;
  margin-bottom: 32px;
  overflow: visible;
  margin-top: 1.5rem;
}

.hero-card-inner {
  position: relative;
  min-height: 335px;
  display: grid;
  grid-template-columns: minmax(0, 72%) minmax(260px, 28%);
  align-items: center;
}

.hero-card-surface {
  position: absolute;
  inset: 18px 0 18px 0;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 32px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--text-main);
  white-space: nowrap;
}

.hero p {
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 760px;
}

.hero-main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 0;
  padding: 14px 28px;
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, #359556 0%, var(--accent) 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(45, 138, 78, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hero-main-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(45, 138, 78, 0.3);
  background: linear-gradient(180deg, #3ca160 0%, #277844 100%);
}

.hero-main-cta:focus-visible {
  outline: 3px solid rgba(45, 138, 78, 0.22);
  outline-offset: 4px;
}

.hero-visual-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px 0 0;
  margin-left: -20px;
}

.hero-visual {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.feature {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 30px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.feature-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.feature-text {
  flex: 1 1 auto;
  margin: auto;
}

.feature img {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  display: block;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.feature h2 {
  font-size: font-size: 1.33rem; /* 1.26rem; 1.05rem; */
  margin: 0 0 0.7rem; /* 4px; */
  font-weight: 700;
  color: var(--text-main);
}

.feature h3 {
  font-size: 1.1rem; /* 0.78rem; */
  margin: 0 0 1.4rem; /* 8px; */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.feature p {
  margin: 0;
  font-size: 1rem; /* 0.93rem; */
  line-height: 1.55;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 40px;
  padding: 16px 0 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
}

.footer .left { flex: 1 1 auto; text-align: left; padding: 1rem 2rem; }
.footer .right { flex: 1 1 auto; text-align: right; padding: 1rem 2rem; }

.footer a {
  color: var(--accent);
  /* text-decoration: none; */
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.feature-image-wrap {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  border: solid 5px #FFF;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.feature-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 180ms ease, opacity 180ms ease;
  box-shadow: none;
}

.feature-image:hover {
  transform: scale(1.015);
}

.feature-image:focus-visible {
  outline: 3px solid rgba(45, 138, 78, 0.35);
  outline-offset: 4px;
}

.feature-image.is-expanded-source {
  opacity: 0.35;
}

body.lightbox-open {
  overflow: hidden;
}

.feature-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.feature-lightbox[hidden] {
  display: none;
}

.feature-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(3px);
}

.feature-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
  cursor: zoom-out;
}

@media (min-width: 700px) {
  .feature-inner {
    flex-direction: row;
  }
  
  .feature-image-wrap {
    flex: 0 0 280px;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    height: 300px; /* 280px; */
    min-height: 300px; /* 280px; */
    max-height: 300px; /* 280px; */
    overflow: hidden;
    border-radius: 16px;
    margin: 1rem;
  }
  .feature-image-wrap.qrcode {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
  }
}

@media (min-width: 1100px) and (max-width: 1280px) {
  .feature-image-wrap {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }
  .feature-image-wrap.qrcode {
    min-height: 200px;
    max-height: 200px;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .features {
    grid-template-columns: minmax(0, 2fr);
  }

  .feature:nth-child(2n) .feature-inner {
    flex-direction: row-reverse;
  }
}

@media (min-width: 1100px) {
  .features {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
  }

  .feature-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .feature-image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  .hero-visual-wrap {
    margin-bottom: -2rem;
    margin-top: -2rem;
  }
}

@media (max-width: 1100px) {
  .hero-card-inner {
    grid-template-columns: minmax(0, 68%) minmax(220px, 32%);
  }

  .hero-content {
    padding: 0 28px 0 40px;
  }

  .hero h1 {
    font-size: 1.9rem;
    white-space: normal;
  }

  .hero-visual-wrap {
    margin-left: -8px;
    padding-right: 8px;
    padding-left: 20px;
  }

  .hero-visual {
    max-width: 240px;
  }
}

@media (max-width: 900px) {
  .hero-card {
    padding: 22px 14px 28px;
  }

  .hero-card-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-card-surface {
    inset: 10px 0 10px 0;
    border-radius: 24px;
  }

  .hero-content {
    order: 1;
    padding: 24px 22px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
    white-space: normal;
  }

  .hero p {
    max-width: 680px;
  }

  .hero-visual-wrap {
    order: 2;
    justify-content: center;
    margin-left: 0;
    padding: 0 0 10px;
  }

  .hero-visual {
    max-width: 240px;
    margin-top: 1rem;
    margin-bottom: 3rem;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 0 14px 40px;
  }
  .hero-bar-cta {
    margin: auto;
  }
  .hero-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
  }

  .hero-bar-brand {
    align-items: center;
  }

  .hero-card {
    padding: 20px 12px 26px;
  }

  .hero-card-inner {
    gap: 18px;
  }

  .hero-content {
    padding: 24px 18px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.18;
    white-space: normal;
    text-align: center;
  }

  .hero p {
    font-size: 0.98rem;
    max-width: 100%;
    text-align: center;
  }

  .hero-visual-wrap {
    padding: 4px 0 36px;
    justify-content: center;
  }

  /*
  .hero-visual {
    max-width: 210px;
  }
  */

  .features {
    gap: 20px;
    margin-top: 24px;
  }

  .feature {
    padding: 22px 18px;
  }

  .feature-inner {
    align-items: center;
    gap: 18px;
    width: 100%;
  }

  .feature-text {
    text-align: center;
  }

  .feature h2,
  .feature h3,
  .feature p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature-image-wrap {
    margin: 10px 0 4px;
  }

  .features .feature-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    max-width: 100%;
    text-align: center;
  }

  .features .feature-image {
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 0 12px 34px;
  }

  .hero-card {
    padding: 18px 10px 24px;
  }

  .hero-content {
    padding: 22px 14px 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-main-cta {
    width: 100%;
    max-width: 260px;
    margin-top: 20px;
  }

  .hero-bar-brand {
    padding-left: calc(2vw * 2);
  }

  /*
  .hero-visual {
    max-width: 190px;
  }
  */

  .features {
    gap: 18px;
  }

  .feature {
    padding: 20px 14px;
  }

  .feature-inner {
    gap: 16px;
  }

  .feature-image-wrap {
    margin: 12px 0 6px;
  }

  .features .feature-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    max-width: 100%;
    text-align: center;
  }
  
  .footer { flex-direction: column; }
  .footer .left { text-align: center; padding-left: 0px; padding-right: 0px; }
  .footer .right { text-align: center; padding-left: 0px; padding-right: 0px; }
}