:root {
  --page-width: max(100%, 1920px);
  --max-content-width: 1500px;
  --content-width: MIN(calc(100% - 10px), var(--max-content-width));
  /*
  --page-width: 920px;
  --content-width: 800px;
  */
  --basicBackground: #EDE9E0;
  --lightBackground: #EFEFEF;

  --font-noto-sans: 'Noto Sans', serif;
  --font-anon-pro: 'Anonymous Pro', serif;

  --color-brand: #808541;
  --color-primary: #18385E;
  --color-primary-light: #EDE9E0;

  --font-size-max-font: 80px;
  --font-size-max-line-heigh: 80px;
  --font-size-huge-font: 64px;
  --font-size-huge-line-heigh: 72px;

  --font-subtitle-font: 24px;
  --font-subtitle-line-height: 32px;
  --font-less-subtitle-font: 18px;
  --font-less-subtitle-line-height: 24px;
  --font-button-font: 20px;
  --font-button-line-height: 32px;
}

@media screen and (max-width: 900px) {
  :root {
    --font-size-max-font: 72px;
    --font-size-max-line-heigh: 72px;
    --font-size-huge-font: 48px;
    --font-size-huge-line-heigh: 56px;

    --font-subtitle-font: 20px;
    --font-subtitle-line-height: 24px;
    --font-less-subtitle-font: 18px;
    --font-less-subtitle-line-height: 24px;
    --font-button-font: 18px;
    --font-button-line-height: 28px;
  }
}

@media screen and (max-width: 400px) {
  :root {
    --font-size-max-font: 40px;
    --font-size-max-line-heigh: 48px;
    --font-size-huge-font: 40px;
    --font-size-huge-line-heigh: 48px;

    --font-subtitle-font: 16px;
    --font-subtitle-line-height: 24px;
    --font-less-subtitle-font: 16px;
    --font-less-subtitle-line-height: 24px;
    --font-button-font: 14px;
    --font-button-line-height: 22px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--basicBackground);
  width: 100%;
  height: 100%;
  color: var(--color-primary);
  font-family: var(--font-noto-sans);
}

body {
  margin: 0 auto;
  max-width: var(--page-width);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  /*
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  */
}

img, picture {
  vertical-align: top;
}
h1, h2, h3, h4, h5 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  display: inline-block;
}
header, footer {
  width: var(--content-width);
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header {
  position: relative;
  z-index: 2;
}

footer {
  padding: 24px 0;
  font-family: var(--font-anon-pro); /*"Red Hat Mono";*/
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
}

header .menu {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#main-menu {
  display: none;
}

#mobile-menu {
  position: absolute;
  z-index: -2;
  opacity: 0;
  top: 88px;
  width: 100%;
  max-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px;
  transition: max-height, opacity .5s ease-in-out;
  box-shadow: #18385ECC 0 100vh 0 100vh;
}
#mobile-menu.opened {
  z-index: 2;
  opacity: 100%;
  padding: 48px 24px;
  max-height: max-content;
  background-color: var(--basicBackground);
}

article {
  flex: 1;
  gap: 160px 0;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.fullwidth{
  width: 100%;
}

.two-columns {
  display: flex;
  flex-direction: row;
}
.two-columns > .text, .two-columns > .image {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.two-columns > .text {
  padding: 20px;
}
.two-columns > .text .content {
  max-width: calc(var(--max-content-width) / 2 - 40px);
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  padding-right: 40px;
  align-items: flex-start;
  width: 100%;
}
.two-columns > .image {
  display: flex;
  align-items: flex-start;
}
.two-columns > .image:first-child {
  align-items: flex-end;
}
/* .two-columns > .image > img, */.two-columns > .image > picture {
  object-fit: contain;
  max-width: 100%;
}
.two-columns > .text:first-child {
  align-items: flex-end;
}
.two-columns > .text:not(:first-child) {
  align-items: flex-start;
}
.two-columns > .text:not(:first-child) .content {
  padding-right: 10px;
  padding-left: 40px;
}

.text .title {
  font-weight: 800;
  font-size: var(--font-size-huge-font);
  line-height: var(--font-size-huge-line-heigh);
}
.text .subtitle {
  margin: 16px 0 40px 0;
  font-weight: 400;
  font-family: var(--font-anon-pro);
  font-size: var(--font-subtitle-font);
  line-height: var(--font-subtitle-line-height);
}

article > *:not(.fullwidth) {
  width: MIN(100%, var(--content-width));
}
article > * > .header {
  font-size: var(--font-size-huge-font);
  font-weight: 800;
  line-height: var(--font-size-huge-line-heigh);
  text-align: center;
}
article > * > .sub-header {
  font-weight: 400;
  font-family: var(--font-anon-pro);
  font-size: var(--font-subtitle-font);
  line-height: var(--font-subtitle-line-height);
}

article > * > .sub-header.center {
  text-align: center;
}

.logo {
  height: 56px;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 36px;
}
.social {
  padding: 5px;
  height: 40px;
  opacity: 0.8;
}
.social img {
  height: 100%;
}
.social:hover {
  opacity: 1;
}

.aerorozvidka-recommendation {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.badge-container {
  margin-right: 15px; /* Adjust spacing as needed */
}

.badge-image {
  width: 100px; /* Adjust size as needed */
  height: auto;
}

.recommendation-text {
  font-size: 16px; /* Adjust font size if needed */
}


.info-section {
  display: flex;
  padding: 104px 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  background-color: #18385ECC; /* 80% opacity of primary color */
}
.info-section > .content {
  max-width: var(--content-width);
  color: white;
  font-family: var(--font-noto-sans);
  font-size: var(--font-size-huge-font);
  font-weight: 800;
  line-height: var(--font-size-huge-line-heigh);
  letter-spacing: 0;
  text-align: center;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.tile {
  max-width: 345px;
  display: flex;
  padding: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  flex: 1 0 0;
  font-weight: 800;
  border-radius: 12px;
  border: 2px solid rgba(24, 56, 94, 0.10);
}
.tile-header {
  color: var(--color-brand);
  font-size: var(--font-size-huge-font);
  line-height: var(--font-size-huge-line-heigh);
}
.tile-title {
  flex: 1;
  font-size: 32px;
  line-height: 40px;
}
.tile-content {
  font-weight: 400;
  font-family: var(--font-anon-pro);
  font-size: var(--font-less-subtitle-font);
  line-height: var(--font-less-subtitle-line-height);
}
.row-tiles {
  display: flex;
  gap: 20px;
  flex-direction: column;
}
.row-tiles .tile-container {
  display: flex;
  gap: 20px;
  position: relative;
}
.row-tiles .tile {
  flex-direction: row;
  max-width: 100%;
  padding: 0;
  gap: 0;
}
.row-tiles .tile-buttons .button {
  max-width: 300px;
  font-size: var(--font-button-font);
  line-height: var(--font-button-line-height);
}
.row-tiles .tile-description {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.row-tiles .inactive .tile {
  filter: blur(5px);
  position: relative;
  pointer-events: none;
}
.row-tiles .inactive .placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(24, 56, 94, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  font-size: var(--font-button-font);
  line-height: var(--font-button-line-height);
  font-family: var(--font-anon-pro);
  text-align: center;
  text-transform: uppercase;
}
.row-tiles .tile .tile-image {
  width: 30%;
  align-self: center;
}

.button {
  display: flex;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  font-size: var(--font-subtitle-font);
  line-height: var(--font-subtitle-line-height);

  border: 2px solid var(--color-brand);
  color: var(--color-brand);
  /*background-color: var(--color-primary-light);*/
  background: transparent;
}
.button:hover {
  text-decoration: none;
}
.button.tile-button {
  font-size: var(--font-button-font);
  line-height: var(--font-button-line-height);
}
.button.filled {
  background: var(--color-brand);
  color: white;
}
.button.white {
  color: var(--color-primary);
}
.button.fat {
  padding: 16px 24px;
}

.button.superfat {
  border: none;
  margin: -16px 0;
  padding: 32px 24px;
  border-radius: 0;
}

.button.superfat.active {
  background: white;
}

.line-spacer {
  display: inline-block;
  margin-bottom: 40px;
  width: 200px;
  height: 2px;
  background-color: #C3CCE1;
}
i.icon.goto {
  background-image: url("../img/landings/goto.svg");
  background-repeat: no-repeat;
  width: 18px;
  height: 18px;
  display: block;
}
i.icon.goto.white {
  background-image: url("../img/landings/goto_white.svg");
}

@media screen and (max-width: 900px) {

  header .menu > a.button {
    display: none;
  }

  #main-menu {
    display: unset;
  }

  .two-columns {
    display: flex;
    flex-direction: column;
  }
  .two-columns > .text {
    padding: 25px 20px;
  }
  .two-columns > .text, .two-columns > .image {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .two-columns > .text .content {
    padding: 0;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  .two-columns > .image {
    display: flex;
    align-items: flex-start;
  }
  .two-columns > .image:first-child {
    align-items: flex-end;
  }
   .two-columns > .image > img, .two-columns > .image > picture {
    object-fit: contain;
    max-width: 100%;
  }
  .two-columns > .text:first-child {
    align-items: flex-end;
  }
  .two-columns > .text:not(:first-child) {
    align-items: flex-start;
  }
  .two-columns > .text:not(:first-child) .content {
    padding: 0;
  }
}

@media screen and (max-width: 550px) {
  .two-columns > .text {
    padding: 25px 10px;
  }

  .button.superfat {
    margin: 0 -24px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .row-tiles .tile {
    flex-direction: column;
  }
  .row-tiles .tile-description {
    padding: 20px;
  }

  .row-tiles .tile .tile-image {
    width: 100%;
  }

}

picture > img{
  width: 100%;
  height: 100%;
}

.footer-links {
    margin-top: 16px; /* Space above the links section */
    text-align: center; /* Center the links */
}

.footer-link {
    font-size: 14px;
    color: #18385E; /* Match your site's color scheme */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4267B2; /* Optional hover effect */
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.alert-notice {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.alert-alert {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
