/* Responzívne pravidlá projektu */

@media (max-width: 700px) {
  .inzerat-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .inzerat-thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .info-panel {
    width: 72vw;
  }

  .obsah-header {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gv-brand--content {
    width: 100%;
  }

  .gv-brand--content .gv-brand-title {
    text-align: center;
  }

  
}

@media (max-width: 680px) {
  .tlacidla {
    flex-direction: column;
    gap: 16px;
  }

  .btn-main {
    order: 1;
  }

  .audio-control {
    order: 0;
  }

  #aboutBtn {
    order: 2;
  }

  .obsah-body {
    padding: 0 16px 36px;
    background-attachment: scroll;
  }

  .obsah-menu {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  .obsah-volba,
  .obsah-domov {
    min-height: 50px;
  }

  .obsah-volba {
    padding: 0 13px;
    font-size: 0.82rem;
    letter-spacing: 0.35px;
  }

  .obsah-domov {
    width: 52px;
    flex: 0 0 52px;
  }

  .obsah-domov img {
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 600px) {
  .uvod {
    place-items: start center;
    padding: 24px 16px 30px;
    background-attachment: scroll;
  }

  .uvodny-obsah {
    min-height: calc(100svh - 54px);
    gap: 22px;
  }

  .gv-brand--home .gv-brand-title,
  .uvodny-nadpis {
    width: 100%;
    padding-inline: 0.25em;
    font-size: clamp(2rem, 10vw, 2.8rem);
    letter-spacing: 0.045em;
  }

  .btn-main {
    width: 190px;
    height: 82px;
    font-size: 1.65rem;
  }

  .btn-side {
    width: 140px;
    height: 50px;
    font-size: 0.95rem;
  }

  .audio-control {
    width: 140px;
    min-height: 50px;
  }

  .audio-control.is-active {
    width: 214px;
  }

  .uvodne-logo {
    width: calc(100vw - 32px);
  }

  .info-panel {
    width: 100vw;
    padding: 34px 24px;
    background: rgba(255, 255, 255, 0.68);
  }
}

@media (max-width: 820px) {
  .inzeraty-head,
  .inzerat-spodok {
    grid-template-columns: 1fr;
  }

  .inzeraty-head {
    display: grid;
  }

  .inzerat-hlasy {
    justify-content: flex-start;
  }

  .inzerat-thumb-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .inzerat-thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inzeraty-link {
    width: 100%;
  }
}

@media (max-width: 560px) { .auth-card { padding: 24px 20px; } .two-columns { grid-template-columns: 1fr; } }

@media (max-width: 680px) {
  .gv-brand--content .gv-brand-title {
    font-size: clamp(1.45rem, 7vw, 2.15rem);
    letter-spacing: 0.045em;
  }

  .gv-brand--content .gv-brand-subtitle {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }
}

/* GV motto responsive */
@media (max-width: 900px) {
  .obsah-actions {
    align-items: center;
  }

  .gv-motto--content {
    max-width: min(100%, 720px);
  }
}

@media (max-width: 680px) {
  .gv-motto--content {
    width: 100%;
    border-radius: 18px;
    padding: 0.68rem 0.9rem;
    font-size: 0.92rem;
  }

  .gv-motto--home {
    width: 100%;
    padding: 0;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .gv-welcome-notice {
    top: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 18px 18px 16px;
    border-radius: 18px;
  }

  .gv-welcome-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  .gv-welcome-notice h2 {
    padding-right: 34px;
  }
}


/* GV Event Card v1.0 */
@media (max-width: 640px) {
  .podujatie-preview {
    grid-template-columns: 1fr;
  }

  .podujatie-date {
    min-height: auto;
    padding: 14px 12px 12px;
  }

  .podujatie-main {
    gap: 7px;
  }

  .podujatie-facts span {
    width: 100%;
    border-radius: 13px;
  }
}

/* GV About Page responsive */
@media (max-width: 640px) {
  .onas-body {
    background-attachment: scroll;
  }

  .onas-page {
    width: min(100% - 24px, 980px);
    padding: 16px 0 28px;
  }

  .onas-header {
    flex-direction: column;
    align-items: stretch;
  }

  .onas-back,
  .onas-enter {
    width: 100%;
  }

  .onas-card {
    border-radius: 22px;
    padding: 24px 20px;
  }
}
