/* Дополнения для восстановленного сайта без JavaScript. */
html { scroll-behavior: auto; }
img { max-width: 100%; height: auto; }
.restore-header { background: #302b29; color: white; }
.restore-header .container { padding-top: 15px; padding-bottom: 0; }
.restore-top { display: flex; align-items: center; gap: 24px; min-height: 55px; }
.restore-brand { flex: 1; min-width: 0; }
.restore-brand img { width: 230px; height: 50px; object-fit: contain; object-position: left; }
.restore-social { display: flex; gap: 15px; font-size: 12px; }
.restore-social a, .restore-nav a { color: white; }
.restore-search { display: flex; gap: 6px; align-items: center; margin: 0; }
.restore-search input { width: 150px; color: #f7f7f7; border: 1px solid #69615c; background: transparent; padding: 7px 10px; border-radius: 3px; font: inherit; }
.restore-search input::placeholder { color: #ddd6d1; }
.restore-search button { border: 0; border-radius: 3px; background: #d97e23; color: #fff; padding: 8px 11px; font: inherit; cursor: pointer; }
.restore-nav { display: flex; align-items: center; gap: 36px; min-height: 46px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.restore-nav a:hover, .restore-social a:hover { color: #f1a254; }
.restore-menu { display: none; position: relative; }
.restore-menu summary { cursor: pointer; padding: 10px; }
.restore-menu nav { position: absolute; top: 100%; right: 0; width: 225px; max-width: calc(100vw - 30px); background: #302b29; padding: 15px 20px; z-index: 30; box-shadow: 0 5px 20px #0003; }
.restore-menu nav a { display: block; color: white; padding: 12px 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.restore-columns { display: grid !important; grid-template-columns: minmax(0, 2.2fr) minmax(230px, 1fr); align-items: start; gap: 56px; padding-top: 48px; padding-bottom: 64px; }
.restore-columns::after, .restore-columns::before { display: none !important; }
.restore-columns > * { min-width: 0; }
.restore-columns .content-area { float: none; width: 100%; }
.restore-listing { display: flow-root; }
.restore-listing h1 { font-size: 38px; margin: 0 0 30px; overflow-wrap: anywhere; }
/* Архивная тема задаёт article высоту 100% и float; новым страницам нужен обычный поток. */
.restore-card, .restore-article .post-content { float: none; height: auto; }
.restore-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 26px; padding: 28px 0; border-bottom: 1px solid #dedee6; }
.restore-card.restore-card-no-image { grid-template-columns: minmax(0, 1fr); }
.restore-card-image { display: block; min-width: 0; }
.restore-card-image img { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 5px; }
.restore-card-text { min-width: 0; overflow-wrap: anywhere; }
.restore-card-text h2 { font-size: 25px; line-height: 1.25; margin: 10px 0 14px; }
.restore-card-text p { line-height: 1.65; }
.restore-categories a { color: #17161a; font-size: 11px; font-weight: 700; text-transform: uppercase; border-bottom: 3px solid #d97e23; overflow-wrap: anywhere; }
.restore-meta { color: #6b6971; font-size: 13px !important; line-height: 1.7; margin-top: 16px; }
.restore-sidebar > div { margin-bottom: 35px; }
.restore-sidebar h3 { border-left: 4px solid #d97e23; padding-left: 13px; font-size: 19px; margin-bottom: 17px; }
.restore-sidebar a { display: block; margin: 0 0 18px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.restore-article .entry-title { font-size: clamp(30px, 3.3vw, 45px); line-height: 1.18; margin: 20px 0; overflow-wrap: break-word; }
.restore-article .post-content { display: flow-root; min-width: 0; font-size: 17px; line-height: 1.85; }
.restore-article .post-content p, .restore-article .post-content li { overflow-wrap: anywhere; }
.restore-article .post-content :is(h2, h3, h4, h5, h6, figcaption, cite) { overflow-wrap: anywhere; }
/* Широкие таблицы прокручиваются внутри статьи, а не растягивают всю страницу. */
.restore-article .post-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid #dedee6; }
.restore-article .post-content :is(th, td) { padding: 10px 12px; min-width: 8rem; border: 1px solid #dedee6; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.restore-article .post-content th { background: #eff0fa; }
.restore-article .post-content pre { max-width: 100%; overflow-x: auto; }
.restore-article .post-content pre code { display: block; padding: 0; }
.restore-article .post-content :not(pre) > code { padding: 2px 5px; overflow-wrap: anywhere; }
.restore-article .post-content :is(ul:not(.wp-block-gallery):not(.blocks-gallery-grid), ol) { padding-left: 1.5em; margin-bottom: 1.6em; }
.restore-article .post-content :is(ul:not(.wp-block-gallery):not(.blocks-gallery-grid), ol) > li { margin-left: 0; }
.restore-article .post-content figure { max-width: 100%; }
.restore-article .post-content figure > img { display: block; margin-inline: auto; }
.restore-article .post-content blockquote p { line-height: 1.55; }
/* Полноширинные архивные блоки ограничены колонкой с боковым меню. */
.restore-article .post-content :is(.alignwide, .alignfull) { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.restore-article .post-content h2 { font-size: 28px; line-height: 1.3; margin: 34px 0 18px; }
.restore-article .post-content h3 { font-size: 23px; line-height: 1.4; }
.restore-article .post-content iframe { max-width: 100%; }
.restore-hero { aspect-ratio: 1250 / 715; overflow: hidden; border-radius: 5px; }
.restore-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.restore-article .post-heading { float: none; }
.restore-article .post-content a { color: #a95200; text-decoration: underline; }
.restore-tags { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 34px; }
.restore-tags a { max-width: 100%; font-size: 13px; padding: 6px 10px; border: 1px solid #c8c8d0; border-radius: 3px; overflow-wrap: anywhere; }
.restore-pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.restore-pagination a, .restore-pagination span { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #d6d4dc; border-radius: 3px; }
.restore-pagination [aria-current] { background: #d97e23; color: white; border-color: #d97e23; }
.restore-empty { padding: 70px 20px 100px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #d97e23; outline-offset: 4px; }
@media (max-width: 900px) {
  .restore-columns { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .restore-social { display: none; }
  .restore-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 650px) {
  .restore-header .container { padding-bottom: 16px; }
  .restore-top { flex-wrap: wrap; gap: 8px; }
  .restore-brand img { width: 195px; height: 45px; }
  .restore-menu { display: block; }
  .restore-nav { display: none; }
  .restore-search { flex-basis: 100%; margin-top: 8px; }
  .restore-search input { flex: 1; width: 100px; }
  .restore-card { grid-template-columns: 110px minmax(0, 1fr); gap: 15px; }
  .restore-card-image img { height: 105px; }
  .restore-card-text h2 { font-size: 20px; }
  .restore-card-text > p:not(.restore-meta) { display: none; }
  .restore-columns { padding-top: 28px; }
  .restore-sidebar { display: block; }
  .restore-listing h1 { font-size: 30px; }
  .restore-article .post-content :is(.alignleft, .alignright) { float: none; max-width: 100%; margin-left: 0; margin-right: 0; }
  .restore-article .post-content .wp-block-image :is(.alignleft, .alignright) { margin-right: 0 !important; }
  .restore-pagination { gap: 8px; }
  .restore-pagination a, .restore-pagination span { padding-inline: 9px; }
}
