/* --- BEMUTATKOZÁS / ABOUT --- */

.about-section {
  --about-container: calc(100% - 1.5rem);
  background-color: var(--color-background);
}

@media only screen and (min-width: 576px) {
  .about-section {
    --about-container: 540px;
  }
}

@media only screen and (min-width: 768px) {
  .about-section {
    --about-container: 720px;
  }
}

@media only screen and (min-width: 992px) {
  .about-section {
    --about-container: 960px;
  }
}

@media only screen and (min-width: 1200px) {
  .about-section {
    --about-container: 1140px;
  }
}

@media only screen and (min-width: 1300px) {
  .about-section {
    --about-container: 1280px;
  }
}

@media only screen and (min-width: 1400px) {
  .about-section {
    --about-container: 1320px;
  }
}

.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.about-row--reversed .about-copy {
  order: 2;
}

.about-row--reversed .about-media {
  order: 1;
}

.about-copy {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  background-color: var(--color-primary-900);
  background-image: var(--about-copy-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-copy-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: rgba(0, 26, 53, 0.95);
}

.about-copy-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 72px;
  padding-bottom: 72px;
  padding-left: max(24px, calc((100vw - var(--about-container)) / 2));
  padding-right: 48px;
}

.about-row--reversed .about-copy-inner {
  padding-left: 48px;
  padding-right: max(24px, calc((100vw - var(--about-container)) / 2));
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 4px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-title {
  margin: 20px 0 0;
  max-width: 32ch;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  color: #ffffff;
  text-wrap: balance;
}

.about-text {
  margin: 16px 0 0;
  max-width: 42ch;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: #eeeeee;
}

.about-text > *:first-child {
  margin-top: 0;
}

.about-text > *:last-child {
  margin-bottom: 0;
}

.about-text p,
.about-text ul,
.about-text ol {
  margin: 0 0 1em;
}

.about-text a {
  color: #ffffff;
  text-decoration: underline;
}

.about-text a:hover {
  color: #ffffff;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
}

.about-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 24px;
  border: none;
  border-radius: 99px;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.about-section .btn .icon-chevron-right {
  font-family: "fontello", sans-serif !important;
  font-style: normal;
  font-size: 1em;
  line-height: 1;
  color: inherit;
}

.about-section .btn .icon-chevron-right::before {
  content: none !important;
  display: none !important;
}

.about-section .btn-primary {
  background-color: #ffffff;
  color: var(--color-primary-dark);
}

.about-section .btn-primary:hover {
  background-color: #ffffff;
  color: var(--color-primary-dark);
}

.about-section .btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-section .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.about-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background-color: var(--color-primary-900);
}

.about-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Absolute fill when parent has fixed min-height */
.about-media .about-media-img {
  position: absolute;
  inset: 0;
}

/* --- Tablet --- */
@media (max-width: 992px) {
  .about-row,
  .about-copy,
  .about-media {
    min-height: 440px;
  }

  .about-copy-inner {
    padding-top: 56px;
    padding-bottom: 56px;
    padding-right: 32px;
  }

  .about-row--reversed .about-copy-inner {
    padding-left: 32px;
  }

  .about-title {
    font-size: 28px;
  }

  .about-text {
    font-size: 15px;
    line-height: 24px;
  }
}

/* --- Mobil --- */
@media (max-width: 768px) {
  .about-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .about-row--reversed .about-copy,
  .about-row--reversed .about-media {
    order: initial;
  }

  .about-copy,
  .about-media {
    min-height: 0;
  }

  .about-copy {
    min-height: 360px;
  }

  .about-media {
    min-height: 280px;
  }

  .about-copy-inner,
  .about-row--reversed .about-copy-inner {
    padding: 48px 24px;
  }

  .about-title {
    font-size: 26px;
    max-width: none;
  }

  .about-text {
    max-width: none;
  }

  .about-actions {
    margin-top: 24px;
  }
}

@media (max-width: 576px) {
  .about-copy-inner,
  .about-row--reversed .about-copy-inner {
    padding: 40px 20px;
  }

  .about-eyebrow {
    font-size: 11px;
    padding: 6px 12px 4px;
  }

  .about-title {
    font-size: 24px;
  }

  .about-text {
    font-size: 14px;
    line-height: 22px;
  }

  .about-section .btn {
    width: auto;
  }

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

  .about-section .about-actions .btn {
    width: 100%;
  }
}
