* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: #222;
  background: linear-gradient(90deg, #ff850f 0%, #ff850f 50%, #284b95 50%, #284b95 100%);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: #1255c7;
  text-decoration: underline;
}

a:hover {
  color: #003a94;
}

.wrapper {
  width: 1446px;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
}

#lapas_galva {
  height: 318px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#lapas_galva .wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#lapas_galva img {
  width: 275px;
  max-width: 275px;
  display: block;
  margin-top: 0;
}

#main_menu_container {
  min-height: 0;
}

#main_menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#saturs .wrapper {
  background: #fff;
  border: 1px solid #dddddd;
  padding: 18px 18px 28px;
}

.row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.col-9 {
  width: calc(100% - 360px);
  min-width: 0;
}

.col-3 {
  width: 326px;
  flex: 0 0 326px;
}

section,
.objekts {
  margin: 0 0 36px;
}

.obj_nos,
h2.obj_nos {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 700;
  color: #2359bf;
}

.obj_nos a {
  color: #2359bf;
  text-decoration: underline;
}

.obj_datums {
  display: inline-block;
  margin: 0 0 6px 14px;
  color: #a16600;
  font-size: 16px;
}

.norises_vieta,
.gps {
  color: #7b5c19;
}

.turnira_tabula,
.sporta_stat {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  table-layout: auto;
  font-size: 17px;
}

.turnira_tabula td,
.sporta_stat td,
.turnira_tabula th,
.sporta_stat th {
  border: 1px solid #cfcfcf;
  padding: 7px 8px;
  vertical-align: top;
}

.turnira_tabula tr:first-child td,
.sporta_stat tr:first-child td,
.sporta_stat tr[style*="#CCC"] td {
  background-color: #cccccc !important;
}

.turnira_tabula {
  text-align: center;
}

.turnira_tabula td:first-child {
  text-align: center;
}

.turnira_tabula .tuksums {
  background-color: #d1d1d1;
}

.sporta_stat tr:nth-child(n+3) td,
.sporta_stat tr:nth-child(2) td {
  background: #fff;
}

.sporta_stat tr:hover td {
  background: #f5f5f5;
}

.obj_saturs {
  margin: 8px 0 12px;
  text-align: right;
}

.gal_icon {
  width: auto;
  vertical-align: middle;
}

.obj_galerija {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 26px;
  line-height: 0;
}

.obj_galerija .gbm {
  display: inline-block;
  line-height: 0;
  border: 1px solid #d2d2d2;
  background: #f2f2f2;
  padding: 2px;
}

.obj_galerija .gbm img {
  display: block;
  width: 92px;
  height: 68px;
  object-fit: cover;
}

.forms.mekletajs {
  margin: 7px 12px 25px;
}

.input-groups {
  display: flex;
  width: 100%;
}

#mekl_teksts {
  flex: 1;
  height: 43px;
  border: 1px solid #dddddd;
  border-radius: 3px 0 0 3px;
  padding: 0 12px;
  font-size: 15px;
  color: #555;
}

.btn-append {
  display: block;
}

.btn {
  height: 43px;
  min-width: 108px;
  border: 1px solid #e3e3e3;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  background: #eeeeee;
  font-size: 16px;
  cursor: pointer;
}

.btn:hover {
  background: #e1e1e1;
}

#rietumuligas_reklama {
  width: 100%;
  height: 164px;
  background: #222;
  display: block;
  margin-bottom: 26px;
}

.col-3 center {
  display: block;
  text-align: center;
}

.col-3 img {
  display: inline-block;
  max-width: 285px;
  margin: 0 auto;
}

.col-3 a {
  display: inline-block;
}

br + br {
  line-height: 28px;
}

@media (max-width: 1180px) {
  .wrapper {
    max-width: calc(100vw - 24px);
  }

  .obj_nos,
  h2.obj_nos {
    font-size: 32px;
  }

  .row {
    gap: 22px;
  }

  .col-3 {
    width: 290px;
    flex-basis: 290px;
  }

  .col-9 {
    width: calc(100% - 312px);
  }
}

@media (max-width: 860px) {
  body {
    background: linear-gradient(180deg, #ff850f 0 190px, #284b95 190px 320px, #f2f2f2 320px 100%);
  }

  #lapas_galva {
    height: 210px;
  }

  #lapas_galva img {
    width: 185px;
  }

  #saturs .wrapper {
    max-width: calc(100vw - 16px);
    padding: 12px;
  }

  .row {
    display: block;
  }

  .col-9,
  .col-3 {
    width: 100%;
    flex-basis: auto;
  }

  .col-3 {
    margin-top: 24px;
  }

  .obj_nos,
  h2.obj_nos {
    font-size: 28px;
  }

  .turnira_tabula,
  .sporta_stat {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 15px;
  }

  .forms.mekletajs {
    margin: 0 0 18px;
  }
}
