@charset "UTF-8";

* {
  padding: 0px;
  margin: 0px;
  border: none;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Links */

a,
a:link,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

/* Form */

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button,
input[type="submit"] {
  display: inline-block;
  -webkit-box-shadow: none;
  box-shadow: none;
  background-color: transparent;
  background: none;
  cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

:root {
  --container-lg: 1320px;
  --container-tablet: 1000px;
  --container-mobile: 680px;
  --container-padding: 15px;
  --font-main: "TTTricks", serif;
  --font-title: "Pobeda", sans-serif;
  --white: #fff;
  --dark: #000;
  --grey: #d9d9d9;
  --bg: #f7f4f1;
  --dark-bg: #231f1e;
  --accent: #d7b56d;
}

@font-face {
  font-family: "Pobeda";
  font-display: swap;
  src: url("../fonts/Pobeda-Bold.woff") format("woff"),
    url("../fonts/Pobeda-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "TTTricks";
  font-display: swap;
  src: url("../fonts/TTTricks-Bold.woff") format("woff"),
    url("../fonts/TTTricks-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "TTTricks";
  font-display: swap;
  src: url("../fonts/TTTricks-Regular.woff") format("woff"),
    url("../fonts/TTTricks-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "TTTricks";
  font-display: swap;
  src: url("../fonts/TTTricks-Light.woff") format("woff"),
    url("../fonts/TTTricks-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  color: var(--dark);
  font-family: var(--font-main);
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

code {
  background-color: #e9f1f6;
  padding: 0.2rem;
  border-radius: 4px;
}

pre.code {
  overflow-x: auto;
  background-color: #e9f1f6;
}

html,
body {
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

a {
  display: block;
}

.footer {
  margin-top: auto;
}

/* Контейнеры */

.container {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
  overflow: hidden;
}

/* Страница «О нас» */

.about {
  padding: 40px 0 60px;
  background-color: var(--bg);
}

.about__wrap {
  max-width: var(--container-lg);
}

.about__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 24px;
}

.about__content {
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark);
}

.about__content p {
  margin-bottom: 1em;
}

.about__content p:last-child {
  margin-bottom: 0;
}

.about__content a {
  color: var(--accent);
  -webkit-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.about__content a:hover,
.about__content a:focus {
  opacity: 0.8;
}

.about__content img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

.about__empty {
  font-family: var(--font-main);
  font-size: 18px;
  color: var(--grey);
}

/* Пагинация */

.news__pagination {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--grey);
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination__item a,
.pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--dark);
  background-color: var(--white);
  border: 1px solid var(--grey);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.pagination__item a:hover,
.pagination__item a:focus {
  border-color: var(--accent);
  background-color: var(--bg);
  color: var(--accent);
}

.pagination__item span.current {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.pagination__item span.dots {
  border: none;
  background-color: transparent;
}

.pagination__item .prev.disabled,
.pagination__item .next.disabled {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 680px) {
  .about {
    padding: 24px 0 40px;
  }

  .about__title {
    margin-bottom: 20px;
  }

  .about__content {
    font-size: 16px;
  }

  .news__pagination {
    margin-top: 32px;
    padding-top: 20px;
  }

  .pagination__item a,
  .pagination__item span {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
  }
}

.header__logo {
  padding: 10px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  row-gap: 15px;
  background-color: var(--dark-bg);
}

.header__logo img {
  -o-object-fit: contain;
  object-fit: contain;
}

.header__logo-icon {
  height: 75px;
  width: 75px;
}

.header__logo-name {
  height: 67px;
}

.main__news {
  position: relative;
}

.main__news.container {
  overflow: visible;
}

.main_news-link {
  width: 100%;
  height: 550px;
}

.main_news-item {
  position: relative;
  width: 100%;
  height: 100%;
}

.main_news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.main_news-item-photo {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.main_news-item-info {
  position: absolute;
  width: 80%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
}

.main_news-item-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 64px;
  line-height: 109%;
}

.main_news-item-descr {
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
}

.social-wrap_header {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  right: -40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  row-gap: 20px;
}

.social {
  display: inline-block;
}

.social svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
  fill: var(--accent);
  -webkit-transition: color ease-in-out 0.3s;
  transition: color ease-in-out 0.3s;
}

.social:hover.social_dzen svg {
  color: #fff;
}

.social:hover.social_ok svg {
  color: #f79a38;
}

.social:hover.social_tg svg {
  color: #27a6e5;
}

.social:hover.social_vk svg {
  color: #0077ff;
}

.header__rubrics {
  margin-top: 15px;
}
.header__rubrics  ul,
.header__rubrics-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 15px;
  background-color: var(--grey);
}
.header__rubrics  a,
.header__rubrics-link {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 24px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dark);
}

.footer {
  padding: 75px 0 125px;
  background-color: var(--dark-bg);
}

.footer__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
.footer__nav ul,
.footer-nav__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  row-gap: 10px;
}
.footer__nav a,
.footer-nav__link {
  font-weight: 400;
  font-size: 20px;
  color: var(--white);
}

.social-wrap_footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-column-gap: 10px;
  -moz-column-gap: 10px;
  column-gap: 10px;
}

.footer__copyright {
  margin-top: 60px;
  text-align: center;
  color: var(--white);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 20px;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--dark);
  line-height: 120%;
  letter-spacing: 0.01em;
}

.post-content h2 {
  font-size: 40px;
  margin-top: 8px;
}

.post-content h3 {
  font-size: 28px;
}

.post-content h4 {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-content p {
  color: rgba(0, 0, 0, 0.9);
}

.post__wrap {
  padding: 70px 0 120px;
}

.post {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.post__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.post__title,
h1 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 45px;
  line-height: 110%;
  letter-spacing: 0.01em;
  color: var(--dark);
}

.post_meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-column-gap: 18px;
  -moz-column-gap: 18px;
  column-gap: 18px;
  row-gap: 10px;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: rgba(0, 0, 0, 0.7);
}

.post-meta__date,
.post-meta__author,
.post-meta__category {
  padding: 4px 10px;
  border-radius: 5px;
  background-color: var(--accent);
}
/* //TEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMP */
.post-meta__category-link {
  color: inherit;
  text-decoration: none;
}

.post-meta__category-link:hover {
  text-decoration: underline; 
}

.post-meta__category-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* //TEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMP */


.post-meta__author-link {
  color: inherit;
  text-decoration: none;
}

.post-meta__author-link:hover {
  text-decoration: underline;
}

.post-meta__author-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* //TEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMPEMP */


.post__header-img {
  margin: 10px 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--grey);
  max-height: 560px;
}

.post__header-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.post-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  row-gap: 22px;
  padding: 40px 0;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 175%;
}

.post-content figure {
  margin: 0 auto;
  text-align: center;
}

.post-content .wp-caption {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 100%;
}

.post-content .wp-caption img {
  margin-left: auto;
  margin-right: auto;
}

.post-content .wp-caption-text {
  font-style: italic;
  font-weight: 100;
  text-align: center;
}

.post-content .alignleft,
.post-content .alignright {
  float: none !important;
}

.post-content .alignleft,
.post-content .alignright,
.post-content .aligncenter,
.post-content .alignnone {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}

.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.post-content figcaption {
  font-style: italic;
  font-weight: 100;
  text-align: center;
}

.post-content ul,
.post-content ol {
  padding-left: 22px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  row-gap: 10px;
}

.post-content blockquote {
  margin: 10px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: #f3efe9;
  border-radius: 12px;
  color: rgba(0, 0, 0, 0.9);
}

.post-content blockquote p {
  font-size: 20px;
  line-height: 150%;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  overflow: hidden;
  border-radius: 12px;
  -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.post-content thead {
  background: var(--accent);
  color: var(--white);
}

.post-content th,
.post-content td {
  padding: 14px 16px;
  text-align: left;
}

.post-content tbody tr:nth-child(even) {
  background: #fdf7ea;
}

.post-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.post-table-scroll table {
  width: 100%;
}

/* Post share ////////////////////////////////////////////*/
.post-share {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.post-share__label {
  margin-right: 4px;
}

.post-share__btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  color: inherit;
  font-size: inherit;
  -webkit-transition: background-color 0.2s, color 0.2s, outline 0.2s;
  -o-transition: background-color 0.2s, color 0.2s, outline 0.2s;
  transition: background-color 0.2s, color 0.2s, outline 0.2s;
}

.post-share__btn:hover {
  background-color: var(--accent);
  color: var(--white);
}

.post-share__btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.post-share__btn:focus:not(:focus-visible) {
  outline: none;
}

.post-share__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Post share ////////////////////////////////////////////*/
@media (max-width: 1490px) {
  .social-wrap_header {
    display: none;
  }
}

@media (max-width: 1220px) {
  .post-container {
    padding: 60px 0 100px;
  }

  .post-title {
    font-size: 46px;
  }

  .post-content {
    font-size: 17px;
  }

  .post-content h2 {
    font-size: 34px;
  }

  .post-content h3 {
    font-size: 24px;
  }

  .post-content h4 {
    font-size: 20px;
  }
}

@media (max-width: 1200px) {
  .header__rubrics {
    display: none;
  }
}

@media (max-width: 1030px) {
  .main__news {
    aspect-ratio: 16/9;
  }

  .main_news-link {
    width: 100%;
    height: 100%;
  }

  .main_news-item-info {
    width: 90%;
    row-gap: 15px;
  }

  .main_news-item-title {
    font-size: 40px;
  }

  .main_news-item-descr {
    font-size: 16px;
  }

  .post {
    max-width: 840px;
  }

  .post__header-img {
    max-height: 420px;
  }
}

@media (max-width: 820px) {
  .post__title,
  h1 {
    font-size: 40px;
  }

  .post-container {
    padding: 40px 0 80px;
  }

  .post {
    row-gap: 28px;
  }

  .post-title {
    font-size: 36px;
    max-width: 26ch;
  }

  .post-content {
    font-size: 16px;
    row-gap: 18px;
  }

  .post-content h2 {
    font-size: 28px;
  }

  .post-content h3 {
    font-size: 22px;
  }

  .post-content h4 {
    font-size: 18px;
  }

  .post-table-scroll table {
    min-width: 800px;
  }
}

@media (max-width: 768px) {
  .header__logo {
    row-gap: 10px;
    max-width: 100%;
  }

  .header__logo-icon {
    height: 40px;
    width: 40px;
  }

  .header__logo-name {
    height: 40px;
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 680px) {
  .main__news {
    width: 100%;
    height: 400px;
  }

  .main_news-item-title {
    font-size: 30px;
  }

  .main_news-item-descr {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .post-cover-image {
    max-height: 320px;
  }
}

@media (max-width: 320px) {
  .post-content img {
    width: 100%;
  }
}
