/* Стили обнуления сжатые */

/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}
audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
[hidden],
template {
  display: none;
}
a {
  background: transparent;
}
a:active,
a:hover {
  outline: 0;
}
abbr[title] {
  border-bottom: 1px dotted;
}
b,
strong {
  font-weight: bold;
}
dfn {
  font-style: italic;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
mark {
  background: #ff0;
  color: #000;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
img {
  border: 0;
}
svg:not(:root) {
  overflow: hidden;
}
figure {
  margin: 1em 40px;
}
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}
pre {
  overflow: auto;
}
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}
button {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html input[type='button'],
input[type='reset'],
input[type='submit'] {
  -webkit-appearance: button;
  cursor: pointer;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
input {
  line-height: normal;
}
input[type='checkbox'],
input[type='radio'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  height: auto;
}
input[type='search'] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
legend {
  border: 0;
  padding: 0;
}
textarea {
  overflow: auto;
}
optgroup {
  font-weight: bold;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
td,
th {
  padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

body {
    min-width:150px;
}
/* ul и li */

ul {
  font-size: 16px;
}

/* Готовые стили таблиц */

.table {
  border: 1px solid #eee;
}
.table th {
  font-weight: bold;
  padding: 5px;
  background: #efefef;
  border: 1px solid #dddddd;
}
.table td {
  padding: 5px 5px;
  border: 1px solid #eee;
  text-align: left;
}
.table tbody tr:nth-child(odd) {
  background: #fff;
}
.table tbody tr:nth-child(even) {
  background: #f7f7f7;
}

/* Подключение шрифтов */

@font-face {
  font-family: 'NotoSans-Thin';
  src: url(/assets/fonts/NotoSans-Thin.ttf);
}
@font-face {
  font-family: 'NotoSans-Light';
  src: url(/assets/fonts/NotoSans-Light.ttf);
}
@font-face {
  font-family: 'NotoSans-Regular';
  src: url(/assets/fonts/NotoSans-Regular.ttf);
}

@font-face {
  font-family: 'NotoSans-Medium';
  src: url(/assets/fonts/NotoSans-Medium.ttf);
}

@font-face {
  font-family: 'NotoSans-Bold';
  src: url(/assets/fonts/NotoSans-Bold.ttf);
}

@font-face {
  font-family: 'NotoSans-Black';
  src: url(/assets/fonts/NotoSans-Black.ttf);
}

.f-100 {
  font-family: 'NotoSans-Thin';
}

.f-300 {
  font-family: 'NotoSans-Light';
}

.f-400 {
  font-family: 'NotoSans-Regular';
}

.f-500 {
  font-family: 'NotoSans-Medium';
}

.f-700 {
  font-family: 'NotoSans-Bold';
}

.f-900 {
  font-family: 'NotoSans-Black';
}

/* Создание переменных */

:root {
  --color-black: #080b10;
  --color-brown: #2f1310;
  --color-grey: #b8becb;
}

/* Отсюда начинаются стили */

body {
  font-size: 14px;
  font-family: 'NotoSans-Medium';
  color: var(--color-black);
  background-color: var(--color-grey);
}

h1 {
  font-family: 'NotoSans-Bold';
  font-size: 22px;
}

a {
  text-decoration: none;
}
@media (min-width: 1480px) {
  .page {
    min-height: 100vh;
    overflow: hidden;
    margin: auto;
    background-color: var(--color-grey);
    max-width: 1440px;
    display: grid;
    grid-template-columns: minmax(auto, 250px) 1fr 1fr minmax(auto, 250px);
    grid-template-areas:
      'header header header header'
      'sidebar content content rightmenu'
      'footer footer footer footer';
    grid-template-rows: auto 1fr auto;
    gap: 15px;
  }
  .rightmenu {
    grid-area: rightmenu;
    background-color: var(--color-grey);
  }
  .menu {
    background-color: var(--color-brown);
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style-type: none;
    padding: 10px 200px;
    margin-bottom: auto;
    border-radius: 10px;
  }
  .menu ul {
    margin: 0;
    padding: 0;
  }

  .menu li {
    display: inline;
    border-left: 3px solid #bbb;
    padding-left: 10px;
  }

  .menu li:first-child {
    border: none;
    padding-left: 0;
  }
  .table {
    table-layout: fixed;
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (min-width: 1100px) and (max-width: 1479.98px) {
  .page {
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--color-grey);
    max-width: 1440px;
    display: grid;
    grid-template-columns: minmax(auto, 250px) 1fr 1fr;
    grid-template-areas:
      'header header header'
      'sidebar content content'
      'footer footer footer';
    grid-template-rows: auto 1fr;
    gap: 15px;
    margin-left: 5px;
    margin-right: 5px;
    box-sizing: border-box;
  }

  .rightmenu {
    grid-area: rightmenu;
    background-color: var(--color-grey);
    display: none;
  }
  .menu {
    background-color: var(--color-brown);
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style-type: none;
    padding: 10px 200px;
    margin-bottom: auto;
    border-radius: 10px;
  }
  .menu ul {
    margin: 0;
    padding: 0;
  }

  .menu li {
    display: inline;
    border-left: 3px solid #bbb;
    padding-left: 10px;
  }

  .menu li:first-child {
    border: none;
    padding-left: 0;
  }
}

@media (min-width: 390px) and (max-width: 1099.98px) {
  .page {
    background-color: var(--color-grey);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'header header '
      'sidebar sidebar'
      'content content'
      'footer footer ';
    grid-template-rows: auto 1fr;
    gap: 15px;
    margin-left: 5px;
    margin-right: 5px;
    box-sizing: border-box;
  }

  .rightmenu {
    grid-area: rightmenu;
    background-color: var(--color-grey);
    display: none;
  }
  .menu {
    background-color: var(--color-brown);
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style-type: none;
    padding: 10px 40px;
    margin-bottom: auto;
    border-radius: 10px;
  }
  .menu ul {
    margin: 0;
    padding: 0;
  }

  .menu li {
    display: inline;
    border-left: 3px solid #bbb;
    padding-left: 10px;
  }

  .menu li:first-child {
    border: none;
    padding-left: 0;
  }
  .big-table {
    overflow: auto;
  }

  .big-table .table {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  h1 {
      font-size:18px;
  }
}

@media (min-width: 200px) and (max-width: 398.99px) {
  .page {
    background-color: var(--color-grey);
    display: grid;
    grid-template-areas:
      'header '
      'sidebar '
      'content '
      'footer ';
    grid-template-columns: minmax(0,1fr);
    grid-template-rows:  1fr;
    gap: 15px;
    margin-left: 5px;
    margin-right: 5px;
    box-sizing: border-box;
    
  }

  .rightmenu {
    grid-area: rightmenu;
    background-color: var(--color-grey);
    display: none;
  }
  .menu {
    background-color: var(--color-brown);
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style-type: none;
    padding: 10px 10px;
    margin-bottom: auto;
    border-radius: 10px;
  }
  .menu ul {
    margin: 0;
    padding: 0;
  }

  .menu li {
    display: inline;
    border-left: 3px solid #bbb;
    padding-left: 10px;
  }

  .menu li:first-child {
    border: none;
    padding-left: 0;
  }
  .big-table {
    overflow: auto;
  }

  .big-table .table {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  h1 {
      font-size:16px;
  }
}

.header {
  grid-area: header;
  display: flex;
  justify-content: center;
  background-color: var(--color-grey);
  background-image: url('/assets/img/background.png');
  background-size: no-repeat;
  background-position: center;
  background-size: cover;
  min-height: 50px;
}
.header a {
  color: azure;
}
.header a:hover {
  opacity: 0.7;
  transition-duration: 0.3s;
}
.sidebar {
  grid-area: sidebar;
  background-color: var(--color-grey);
}
.sidebar > a {
  color: var(--color-brown);
}
.content {
  grid-area: content;
  background-color: #f1f1f1;
  border-radius: 20px;
}
.rightmenu {
  grid-area: rightmenu;
  background-color: var(--color-grey);
}
.footer {
  grid-area: footer;
  padding: 20px 0;
}

.footer ul {
  margin: 0;
  padding: 0;
}

.footer li {
  display: inline;
  border-left: 3px solid #bbb;
  padding-left: 10px;
}

.footer li:first-child {
  border: none;
  padding-left: 0;
}

.footer a {
  font-size: 16px;
  color: var(--color-brown);
}

.footer a:hover {
  opacity: 0.7;
  transition-duration: 0.3s;
}

.flex-center-column {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.mt-25 {
  margin-top: 25px;
}

.typography {
  padding: 25px 30px;
  overflow: hidden;
}

.typography > p {
  font-size: 16px;
  line-height: 1.5;
}

.blockfortitle {
  background-color: var(--color-grey);
  border-radius: 8px 0 8px 0;
  padding: 5px 0 5px 20px;
  color: var(--color-brown);
}

.card {
  background-color: #f1f1f1;
  border-radius: 7px;
  margin-top: 15px;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 10px;
  transition-duration: 0.3s;
}

.card:hover {
  opacity: 0.8;
  transition-duration: 0.3s;
}

.card div {
  text-align: center;
}

.link-left-block {
  display: block;
  font-size: 16px;
  margin-top: 10px;
  text-decoration: underline;
}
