/* Ruční úpravy nad exportem z Webflow (načítá se jako poslední). Popis v README.md v kořeni repozitáře. */

.body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Viditelné zaměření pro klávesnici */
a:focus-visible,
.w-nav-brand:focus-visible,
.menu-button:focus-visible {
  outline: 2px solid #f26e21;
  outline-offset: 3px;
  border-radius: .25rem;
}

.button-primary:focus-visible,
.submit-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Oranžová tlačítka (hlavička, odeslání otevřeného formuláře): tmavý text na oranžové značky,
   kontrast nejméně 4,5 : 1 v klidu, při najetí, zaměření i stisku */
.button-primary,
.button-primary:hover,
.submit-button {
  color: #161616;
}

.button-primary:hover,
.submit-button:hover {
  background-color: #f6a06e;
}

.button-primary:active,
.submit-button:active {
  background-color: #f26e21;
}

/* Hlavička */
.logo_img,
.image {
  width: auto;
}

/* Otevřené menu na telefonu: tlačítko v barvách panelu místo šedého čtverce šablony */
.menu-button.w--open {
  color: #f26e21;
  background-color: #000;
  border-radius: .5rem;
}

/* Karta soutěže */
.soutez_block {
  padding: 3rem;
}

.soutez_card_grid {
  grid-column-gap: 2.5rem;
  grid-row-gap: 2rem;
  align-items: center;
}

.soutez_left_side {
  padding: 0;
  display: block;
}

.soutez_left_side > div {
  border-radius: 1rem;
  overflow: hidden;
}

.soutez_left_side > div > div > div {
  border-radius: .5rem;
}

.soutez_header {
  display: block;
  height: auto;
}

.soutez_right_side {
  grid-row-gap: 1rem;
  padding: 0;
}

.text-block {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

.text-block strong {
  font-weight: 800;
}

.nadpis-ikona {
  display: inline-block;
  width: .8em;
  height: .8em;
  margin-left: .1em;
  vertical-align: -.06em;
  color: #f26e21;
}

.soutez_right_side > :nth-child(2) {
  font-size: 1.125rem;
  line-height: 1.3;
}

.text-span-4 {
  color: #c4c4c4;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Ceny: jedna mřížka, texty v řadě pod sebou */
.soutez_ceny {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column-gap: 1.5rem;
  grid-row-gap: 1.25rem;
  align-items: center;
  justify-content: stretch;
  padding: 1.5rem;
}

.prizes_inner_line {
  display: contents;
}

.cena_splitter {
  display: none;
}

/* Druhá řada (4. a 5. místo) je oddělená linkou, aby nečetla jako pokračování 1. a 2. místa */
.prizes_inner_line + .prizes_inner_line {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  grid-column-gap: normal;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid #2e2e2e;
}

.cena_wrap,
.cena_wrap.no_stretch {
  flex: none;
  justify-content: flex-start;
  align-items: center;
  grid-column-gap: .625rem;
  grid-row-gap: .625rem;
  min-width: 0;
}

.cena_wrap.no_stretch {
  padding-left: 3.125rem;
}

.price_medal_img {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.text_price {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.35;
  text-wrap: balance;
}

/* Formulář */
.soutez_contact_form {
  margin-top: 0;
  padding: 1.5rem;
}

.form {
  grid-row-gap: 1rem;
}

.form_grid {
  grid-column-gap: 1rem;
  grid-row-gap: 1.25rem;
}

.form_grid_item label {
  margin-bottom: .5rem;
  font-size: 1rem;
  line-height: 1.35;
}

.text-field,
.select-field-2 {
  height: 3rem;
  min-height: 3rem;
  margin: 0;
  padding: 0 1rem;
  color: #161616;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: .5rem;
  font-size: 1rem;
  line-height: 1.25;
  transition: border-color .15s, box-shadow .15s;
}

.text-field::placeholder {
  color: #6f6f6f;
}

.select-field-2 {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f26e21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

.text-field:hover,
.select-field-2:hover {
  border-color: #f6a06e;
}

.text-field:focus,
.select-field-2:focus {
  border-color: #f26e21;
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 110, 33, .4);
}

/* Chyba: červená (ne oranžová jako zaměření) a u textových polí i ikona */
.text-field:user-invalid,
.select-field-2:user-invalid {
  border-color: #ff3b3b;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, .45);
}

.text-field:user-invalid {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23e02424'/%3E%3Cpath d='M10 5.5v5.5' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.25' r='1.25' fill='%23fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.125rem 1.125rem;
}

.select-field-2:user-invalid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23e02424' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.podminky_text {
  margin: .25rem 0 0;
  color: #c4c4c4;
  font-size: .875rem;
  line-height: 1.5;
}

.submit-button {
  height: 3.25rem;
  margin-top: .25rem;
  padding: 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color .2s;
}

/* Uzavřené soutěže: neaktivní formulář vypadá neaktivně */
.form[disabled] label,
.form[disabled] .podminky_text {
  color: #a3a3a3;
}

.form[disabled] .podminky_text a {
  color: inherit;
}

.form .text-field[disabled],
.form .select-field-2[disabled] {
  color: #8a8a8a;
  background-color: #262626;
  border-color: #303030;
  cursor: not-allowed;
}

.form .text-field[disabled]::placeholder {
  color: #6a6a6a;
}

.form .select-field-2[disabled] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Skript Webflow tlačítkům atribut disabled odebírá, proto podle formuláře */
.form[disabled] .submit-button,
.form[disabled] .submit-button:hover {
  color: #8f8f8f;
  background-color: #2e2e2e;
  cursor: not-allowed;
  pointer-events: none;
}

/* Oddělovač uzavřených soutěží */
.closed_splitter_box {
  color: #8f8f8f;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.splitter_line {
  border-top-color: #3a3a3a;
}

/* Podmínky: tři bloky pravidel vypadají stejně */
.w-richtext > h1,
.w-richtext > h2,
.w-richtext > h3:first-child {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

.w-richtext > p {
  margin: 0 0 .5rem;
  line-height: 1.55;
}

.w-richtext > p:has(> strong:first-child),
.w-richtext > h4 {
  margin-top: 1.5rem;
}

.w-richtext > h1 strong,
.w-richtext > h2 strong {
  font-weight: inherit;
}

.w-richtext.w-richtext > h1 + p,
.w-richtext.w-richtext > h2 + p,
.w-richtext > h3:first-child + h4 {
  margin-top: 0;
}

.w-richtext > p:has(> strong:only-child) {
  margin-bottom: .25rem;
}

.w-richtext > h4 {
  margin-bottom: .25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.55;
}

.w-richtext > ol,
.w-richtext > ul {
  margin: .25rem 0 .5rem;
  padding-left: 1.5rem;
  line-height: 1.55;
}

.w-richtext li + li {
  margin-top: .25rem;
}

.w-richtext a[href="https://chcivyhrat.cz/"] {
  display: inline-block;
  padding: .5rem 0;
}

@media screen and (max-width: 991px) {
  .soutez_block {
    padding: 2rem;
  }

  .soutez_card_grid {
    grid-row-gap: 1.5rem;
    flex-flow: column;
    align-items: stretch;
    display: flex;
  }

  .soutez_ceny {
    grid-template-columns: minmax(0, 1fr);
    grid-row-gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
}

@media screen and (max-width: 767px) {
  .souteze_div {
    grid-row-gap: 2.5rem;
  }

  /* Panel otevřeného menu lícuje s kartami pod ním, ne až ke krajům displeje */
  .w-nav-overlay {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .soutez_block {
    padding: 1rem 1rem 1.25rem;
  }

  .soutez_card_grid {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .soutez_ceny {
    padding: 1rem 1.25rem;
  }

  .soutez_contact_form {
    padding: 1.25rem 1rem;
  }

  .w-richtext > h1,
  .w-richtext > h2,
  .w-richtext > h3:first-child {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 479px) {
  .navbar-brand {
    grid-column-gap: .5rem;
    padding-top: .25rem;
    padding-bottom: .25rem;
  }

  .lg_wrap {
    grid-column-gap: .4rem;
    flex-flow: row;
    align-items: center;
  }

  .logo_img {
    height: 2.25rem;
  }

  .image {
    height: 1.5rem;
  }

  .text-block {
    font-size: 1.625rem;
  }
}
