@media only screen and (max-width: 1920px) {
  :root {
    --container: 1200px;
  }
}

@media only screen and (max-width: 1500px) {
  .hero {
    position: relative;
    min-height: 900px;
  }

  .hero__inner {
    padding-top: 200px;
    min-height: 800px;
  }

  .hero__bottom {
    bottom: 40px;
  }
}

@media only screen and (max-width: 1300px) {
  :root {
    --container: 1000px;
    --font-size-heading: 34px;
    --font-size-date: 20px;
    --font-size-podnadpisy: 26px;
    --font-size-countdown: 28px;
  }

  .header__cta-full {
    display: none;
  }

  .header__cta-short {
    display: inline;
  }

  .header__menu {
    gap: 18px;
  }

  .header__cta {
    margin-left: 0px;
  }

  .header__logo {
    height: 70px;
    padding: 0 15px;
  }

  .header__logo img {
    height: 42px;
  }

  .header__menu-wrap {
    display: flex;
    align-items: center;

    gap: 15px;

    height: 70px;
    padding: 0 15px 0 24px;

    background: #fff;
    border-radius: 999px;
  }

  .hero {
    position: relative;
    min-height: 850px;
  }

  .hero__inner {
    min-height: 750px;
  }

  .hero__bottom {
    bottom: 40px;
    grid-template-columns: 1fr 500px;
    gap: 60px;
  }

  .hero__countdown-wrapper {
    width: 500px;
  }

  .event-cards__grid {
    --cards-height: 500px;
  }

  .event-card__content p {
    max-width: 75%;
    font-size: 15px;
  }

  .topics__title {
    font-size: 20px;
  }

  .calendar-but {
    font-size: 15px;
  }

  .event-card__btn {
    position: absolute;
    right: 0px;
    bottom: 0px;
    margin: 0;
  }

  .section {
    padding: 40px 0;
  }

  .contact-section__right {
    padding-top: 92px;
  }

  .icon_calendar {
    display: none;
  }
}

@media only screen and (max-width: 1150px) {
  :root {
    --container: 90%;
    --font-size-heading: 32px;
    --font-size-date: 19px;
    --font-size-podnadpisy: 24px;
    --font-size-text: 15px;
    --font-size-menu: 15px;
    --font-size-countdown: 26px;
  }

  .header__logo img {
    height: 38px;
  }
}

@media only screen and (max-width: 1020px) {
  .event-cards__grid {
    --cards-height: 550px;
  }
}

/* Mobile version */
@media only screen and (max-width: 990px) {
  /* ==========================================================================
     HEADER
  ========================================================================== */

  .header,
  .header.header--normal,
  .header.header--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;

    background: var(--color-cards-border);

    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .header.is-hidden-on-scroll {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .header__inner {
    height: 90px;
  }

  .header__logo {
    height: auto;
    padding: 0;

    background: transparent;
    border-radius: 0;
  }

  .header__logo img {
    height: 48px;
  }

  .header__menu-wrap {
    height: auto;
    padding: 0;

    background: transparent;
    border-radius: 0;
  }

  .header__nav {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;

    display: none;
    justify-content: center;
    align-items: center;

    padding: 40px 30px;

    background: var(--color-cards-border);
    overflow-y: auto;
  }

  .icon_calendar {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .header__menu-cta {
    display: block;
    margin-top: 5px;
  }

  .header__menu-cta .btn {
    min-width: 260px;
    justify-content: center;
    color: #fff !important;
  }

  .header.is-menu-open .header__nav {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;

    gap: 28px;
  }

  .header__menu a {
    padding: 0;

    font-size: 17px;
    font-weight: 500;
  }

  .header__menu a::after {
    display: none;
  }

  .header__toggle {
    position: relative;

    display: flex !important;

    width: 42px;
    height: 42px;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .header__toggle span {
    position: absolute;
    left: 7px;

    width: 28px;
    height: 4px;

    background: var(--color-secondary);
    border-radius: 999px;

    transition: 0.25s ease;
  }

  .header__toggle span:nth-child(1) {
    top: 11px;
  }

  .header__toggle span:nth-child(2) {
    top: 20px;
  }

  .header__toggle span:nth-child(3) {
    top: 29px;
  }

  .header.is-menu-open .header__toggle span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
  }

  .header.is-menu-open .header__toggle span:nth-child(2) {
    opacity: 0;
  }

  .header.is-menu-open .header__toggle span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
  }

  .section {
    padding: 0px 0;
  }

  .topics__title {
    font-size: 18px;
  }

  #myBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99;

    display: none;

    width: 42px;
    height: 42px;

    color: #fff;

    background: var(--color-primary);
    border-radius: 10px;

    cursor: pointer;
    transition: 0.25s;
  }

  #myBtn::before {
    content: "\f106";

    position: absolute;
    top: 50%;
    left: 50%;

    font-family: "Font Awesome 6 Free";
    font-size: 25px;
    font-weight: 900;
    line-height: 1;

    transform: translate(-50%, -50%);
  }

  /* ==========================================================================
     HERO
  ========================================================================== */

  .hero__inner {
    padding-top: 170px;
    min-height: 800px;
  }

  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero__bottom {
    position: static;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 34px;
    margin-top: 50px;
  }

  .hero__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;

    gap: 14px;
    margin-bottom: 0;
  }

  .hero__countdown-wrapper {
    align-self: center;

    width: 100%;
    max-width: 500px;
    margin-top: 20px;
  }

  /* ==========================================================================
     CARDS
  ========================================================================== */

  .event-cards {
    padding: 50px 0 70px;
  }

  .event-cards__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;

    height: auto;
    gap: 14px;
  }

  .event-card,
  .event-card--main,
  .event-card--top-left,
  .event-card--top-right,
  .event-card--bottom-left,
  .event-card--bottom-right {
    grid-column: auto;
    grid-row: auto;
    min-height: 230px;
  }

  .event-card--main {
    grid-column: 1 / -1;
    min-height: 340px;
  }

  .event-card__btn {
    position: absolute;
    right: 0px;
    bottom: 0px;
    margin: 0;
  }

  .event-card__image {
    max-width: 40%;
  }

  .event-card__icon {
    top: -45px;
    right: -45px;
    width: 150px;
  }

  .event-card__icon_abstracts {
    right: -35px;
    width: 150px;
  }

  /* ==========================================================================
     ACCOMMODATION
  ========================================================================== */

  .accommodation__media {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .accommodation__media img,
  .accommodation__map {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* ==========================================================================
     CONTACT SECTION
  ========================================================================== */

  .contact-section {
    padding: 200px 0 90px;
  }

  .contact-part {
    padding-top: 100px;
    padding-bottom: 200px;
  }

  .contact-section__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-section__left,
  .contact-section__right {
    width: 100%;
  }

  .contact-section__right {
    padding-top: 0;
  }

  .committee-card {
    max-width: 100%;
    margin-bottom: 30px;
    padding: 44px 48px;
  }

  .committee-card__label {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    padding: 8px 18px;
  }

  .first_card {
    padding-bottom: 30px;
  }

  .contact-card {
    max-width: 100%;
  }

  .abstracts {
    padding-bottom: 0px;
  }

  /* ==========================================================================
     FOOTER
  ========================================================================== */

  .footer {
    padding: 60px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 35px;

    text-align: center;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__logo img {
    width: 140px;
  }

  .footer__copyright {
    text-align: center;
  }

  .footer__links {
    align-items: center;
    gap: 10px;
  }
}

@media only screen and (max-width: 680px) {
  :root {
    --container: 90%;
    --font-size-heading: 28px;
    --font-size-date: 18px;
    --font-size-podnadpisy: 21px;
    --font-size-text: 15px;
    --font-size-menu: 15px;
    --font-size-countdown: 24px;
  }

  /* ==========================================================================
     CARDS
  ========================================================================== */

  .event-cards {
    padding: 30px 0 70px;
  }

  .next_topic {
    padding-top: 50px;
  }

  .event-cards__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .event-card,
  .event-card--main,
  .event-card--top-left,
  .event-card--top-right,
  .event-card--bottom-left,
  .event-card--bottom-right {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
  }

  .event-card {
    padding: 24px;
  }

  .event-card__btn {
    position: static;
    margin-top: 20px;
  }

  .event-card__image {
    max-width: 180px;
  }

  .event-card__icon,
  .event-card__icon_abstracts {
    right: -30px;
    width: 150px;
  }

  .topics {
    margin-top: 0px;
  }

  .contact-section {
    padding: 180px 0 90px;
  }

  .abstracts {
    padding-bottom: 0px !important;
  }

  #myBtn {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 99;

    display: none;

    width: 38px;
    height: 38px;

    color: #fff;

    background: var(--color-primary);
    border-radius: 10px;

    cursor: pointer;
    transition: 0.25s;
  }

  #myBtn::before {
    content: "\f106";

    position: absolute;
    top: 50%;
    left: 50%;

    font-family: "Font Awesome 6 Free";
    font-size: 24px;
    font-weight: 900;
    line-height: 1;

    transform: translate(-50%, -50%);
  }
}

@media only screen and (max-width: 500px) {
  .event-card--main {
    grid-column: 1 / -1;
    min-height: 380px;
  }

  .event-card__image {
    max-width: 50%;
  }
}

@media only screen and (max-width: 450px) {
  :root {
    --container: 90%;
    --font-size-heading: 26px;
    --font-size-date: 17px;
    --font-size-podnadpisy: 19px;
    --font-size-text: 15px;
    --font-size-menu: 15px;
    --font-size-countdown: 20px;
  }

  .topics__title {
    font-size: 18px;
  }
}

@media only screen and (max-width: 420px) {
  .event-card--main {
    grid-column: 1 / -1;
    min-height: 380px;
  }

  .event-card__image {
    max-width: 65%;
  }
}
