
@font-face {
    font-family: 'ABold';
    src: url('PTSansNarrow-Regular.ttf') format('truetype');
    font-weight: normal;
	font-display: fallback;
    font-style: normal;
}
@font-face {
    font-family: 'JMed';
    src: url('Jost-Regular.ttf') format('truetype');
    font-weight: normal;
	font-display: fallback;
    font-style: normal;
}

body {
  font-family: 'JMed', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #dee0c4;
  border-bottom: 2px solid #b4b69e30;
  padding: 20px;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav ul {
  list-style: none;
  margin: 0px 0px 0px 280px;
  padding: 0;
  display: flex;
}

header nav ul li {
  margin-right: 20px;
}

header nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 19px;
  font-family: JMed;
}

header nav ul li a:hover {
  text-decoration: revert;
  color: #6e6e6e;
}

main {
  padding: 20px;
  background: #e9e9df;
}

main section {
  max-width: 800px;
  margin: 0 auto;
}

main section h1 {
    font-size: 68px;
    margin-bottom: 20px;
    font-family: ABold;
    text-shadow: #ffffff 4px 3px 2px;
}

main section h2 {
    font-size: 50px;
    margin-top: 50px;
    margin-bottom: 20px;
    font-family: ABold;
    text-shadow: #ffffff 4px 3px 2px;
}

main section h3 {
    font-size: 40px;
    margin-bottom: 20px;
    font-family: ABold;
    text-shadow: #ffffff 4px 3px 2px;
}

main section p {
  font-size: 22px;
  line-height: 1.6;
  font-family: JMed;
  color: #585656;
}

.logo {
    width: 240px;
    position: absolute;
}

.logo2 {
	width: 240px;
    position: absolute;
     display: none;
}

footer {
    background-color: #d9dbc5;
    border-top: 1px solid #b7b1b1;
    padding: 5px;
    font-size: 22px;
    text-align: center;
    font-family: JMed;
}

footer a {
    color: #000;
    font-size: 23px;  
}

.oneimg {
    width: 100%;
    border-radius: 18px;
}

.blockimg {
	margin-top: 50px;
   margin-bottom: 50px;
}

.imgurl {
    width: 100%;
	border-radius: 20px;
}

.blocktxt {
    background: #f4f4f2;
    padding: 15px;
	margin-top: 30px;
    border-radius: 10px;
}

.copyrovat {
    background: #707070;
    color: #fff;
    font-size: 15px;
    padding: 15px;
    margin-top: 10px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
}
.copyrovat:hover {
    background: #242424;
}

.the_breadcrumbs {
    color: #787968;
    font-size: 21px;
    margin-bottom: -20px;
    padding-top: 10px;
    border: none;
    margin-left: 10px;
}

.the_breadcrumbs a {
    color: #91928a;
    text-decoration: none;
}
.the_breadcrumbs a:hover {
    color: #4e4f4c;
    text-decoration: none;
}
.imgsave {
    background: #a6a88c;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    padding: 15px;
    border-radius: 30px;
}

.imgsave:hover {
    background: #878878;
}

 .imgopis {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.6em;
        transition: max-height 0.3s ease-in-out;
    }
    .toggle-text {
        display: none;
    }
	
    .toggle-text:checked + .read-more + .imgopis {
        -webkit-line-clamp: unset;
        max-height: none;
    }
    .read-more {
        display: inline-block;
        position: absolute;
        font-size: 19px;
        right: 22%;
        cursor: pointer;
        font-weight: bold;
        user-select: none;
        text-decoration: underline;
    }
    .label-toggle:after {
        content: "Открыть описание";
    }
    .toggle-text:checked ~ .label-toggle:after {
        content: "Скрыть";
    }  

.navig {
    display: flex;
    margin-top: 50px;
    justify-content: center;
}

.navig a{
    margin-top: 22px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 25px;
    text-decoration: none;
    color: #000000;
}	

.navig p{
    color: #abab9f;
}

#up-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #80816a;
  color: #fff;
  opacity: 0.5;
  display: none;
  transition: all 0.2s ease-in-out;
  z-index: 100;
}
#up-button:hover {
  transform: scale(1.2);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
#up-button:active {
  transform: scale(0.1);
  transition: all 2.0s ease-in-out;
}

.pagination-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
	justify-content: center;
}

#show-all {
    display: none;
}

.button-block {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
}

.button-block a {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #f8f8f8;
}

.button-block a:hover {
    background: #e8e8e8;
}

.button-block a:nth-child(n+9) {
    display: none;
}

.show-all-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #f8f8f8;
    cursor: pointer;
}

#show-all:checked ~ .button-block a:nth-child(n+9) {
    display: inline-block;
}

#show-all:checked ~ .show-all-btn {
    display: none;
}

.button-block:not(:has(a:nth-child(9))) ~ .show-all-btn {
    display: none;
}
@media screen and (max-width: 768px) {


header nav ul {
display: flex;
flex-wrap: wrap;
margin: 0px 0px 0px 0px; 
}

header nav ul li a {
    text-decoration: none;
    color: #000;
    background: #ffffff9c;
    font-size: 23px;
    line-height: 55px;
    padding: 6px;
    margin: 5px;
    border-radius: 20px;
}

.logo {
     width: 100px;
     position: absolute;
     display: none;
}

 .logo2 {
    width: 90%;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    position: revert;
    display: block;
    }
.the_breadcrumbs {
    font-size: 21px;
	margin-left: 0px;
}

header nav ul li {
    margin-right: 0px;
}

main section h1 {
    font-size: 32px;
}

main section h2 {
    font-size: 30px;
}

main section h3 {
    font-size: 25px;
}

main section p {
    font-size: 22px;
    line-height: 1.4;
}

.imgsave {
     display: flex;
     font-size: 26px;
     margin-top: 80px;
     justify-content: center;
}

.navig a {
        font-size: 15px;
        margin-top: 16px;
        padding-left: 2%;
        padding-right: 2%;
    }

.navig p{
	font-size: 15px;
	margin-top: 15px;
    color: #abab9f;
}

footer {
font-size: 20px;
position: sticky;
z-index: 9999;
}

footer a {
    color: #000;
    font-size: 20px;
    
}

   }