*{
  box-sizing: border-box;
}

.header {
  position: relative;
  width: 100%;
  //padding-top: 59.45%;
  //height: 0px;
}


.logo {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: white;
}
#infoi {
  z-index: 10;
}

#logoVideo {
  width: 100%;
  height: 100%;
  background-color: black;
  position: absolute;
  top: 0;
  object-fit: cover;
}

.logo {
  display: flex;
  mix-blend-mode: lighten;
  z-index: 10;
}

.icon {
	width: 100%;
	height: auto;
}

.header a:hover {
  background-color: transparent;
}
/* .icon:hover {
  filter: invert(1);
} */

.portrait {
	width: 75px;
	height: auto;
  border-radius: 100px;
  margin-left: 5px;
}

body {
  margin: 0;
  padding: 0;
  color: #171717;
  background: white;
  font-family: "Courier New", Times, serif;
  overflow-y: scroll; /* Show vertical scrollbar */
}

h1 {
  font-size: 4.4em;
  line-height: 0.56em;
  letter-spacing: -0.03em;
  margin-top: 0.4em;
  text-transform: lowercase;
}

h1,h2,h3,p,subh {
	padding: 0;
}

h2 {
  margin-top: 2em;
  margin-bottom: 0.3em;
  letter-spacing: -0.05em;
}

h3 {
	padding-top: 1em;
	margin-top: 0.2em;
	margin-bottom: 0.7em;
  letter-spacing: -0.05em;
}

a {
  font-size: 1em; 
}

.header a {
  display: block;
    /* height: 75px; */
    width: 100%;
}

a:link {
  /* color: rgb(49, 103, 255); */
  color: blue;
}

a:visited {
  /* color: rgb(49, 103, 255); */
  color: blue;
}

a:hover {
  /* background-color: rgb(49, 103, 255); */
  background-color: blue;
  color: white;
}

a black {
  color: black;
}
a:hover black {
  color: white;
}

ul {
	padding-inline-start: 17px;
}

/*-----light END-----*/

.main {
  display: flex;
  flex-flow: column;
  align-items: center;
  max-width: 740px;

  margin: 100px auto;
  padding: 18px;
}

.redblock {
  border: 1px solid #ffffff;
  width: 100%;
  text-align: left;
}

.header.redblock {
  text-align: left;
}

.footer.redblock {
  text-align: center;
  display: flex;
  flex-flow: row-reverse;
  align-items: center;
  justify-content: start;
  border: 0;
}

.footer p {
  margin: 0 10px;
}

.block_row {
  display: flex;
  flex-flow: row;
  align-items: stretch;
  justify-content: space-around;
  width: 100%;
  border: 1px solid black;
  padding: 0;
}

.block_row.column_reverse {
  flex-flow: row-reverse;
}

.content{
  border: 0;
}

.content_img {
  width: 100%;
}

.content .block_row:first-child {
  border-top: 0;
}
.content .block_row {
  border-bottom: 0;
}
.content .block_row:last-child {
  border-bottom: 1px solid black;
}

.content_text {
  padding: 20px 12px 70px;
}

.content_text h2 {
  margin-top: 0.3em;
  line-height: 0.9em;
}

.block_column {
  width: 100%;
  display: flex;
  flex-flow: column;
  align-items: stretch;
  justify-content: center;
}

.block_row .block_column:first-child {
  border-right: 1px solid black;
}
.block_row .block_column:last-child {
  border-right: 0px;
}

.block_row.column_reverse .block_column:last-child {
  border-right: 1px solid black;
}
.block_row.column_reverse .block_column:first-child {
  border-right: 0px;
}

.blue_square {
  background-color: blue;
  width: 40px;
  height: 40px;
}

.menu_button {
  padding: 0.5em;
  text-align: center;
  font-size: 1em; 
  border-bottom: 1px solid black;
  text-decoration: none;
}
.menu_button:last-child { 
  border-bottom: 0px;
}

.block_center {
  justify-content: center;
}

.block_bottom {
  align-items: flex-start;
  justify-content: flex-end;
}

.menu_contacts {
  padding: 30px 0;
}

.page-title {
  padding: 0 0.4em;
  text-align: center;
}

.page-content.redblock{
  padding: 0 0.9em;
  text-align: left;
}

.page-content h2 {
    margin-block-start: 1.5em;
}

.page-content h3 {
    margin-block-start: 2.5em;
}

.events-block {
  margin-bottom: -1px;
  padding: 0 0 0 8px;
  width: calc(100% + 16px);
  overflow: auto;
}

.events-block_inner {
  min-width: fit-content;
  padding-right: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

table, th, td {
  border: 1px solid red;
}
th,td {
  text-align: center;
  padding: 0.4em;
}
td {
}
table tr td:nth-child(2) {
  text-align: left;
}

.img {
  max-width: 100%;
  padding: 10px 0;
}

.video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
/* 
iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
} */

@media (orientation: portrait) {
  .main {
    width: 100%;
    max-width: 100%;
    margin: 17px auto 50px;
  }

  a {
  font-size: 1.15em;
  }

  .block_row {
    flex-flow: column;
  }

  .block_row.column_reverse {
    flex-flow: column;
  }

  .block_row .block_column:first-child,
  .block_row.column_reverse .block_column:last-child {
    border-right: 0px;
  }

  .block_column {
    border-bottom: 1px solid black;
  }

  .block_column:last-child {
    border-bottom: 0px;
  }

  .menu_button {
    font-size: 1.15em; 
  }

  .block_column p {
    font-size: 1.15em;
  }

  .block_bottom {
    align-items: end;
    padding-bottom: 50px;
  }
}