/*
Theme Name: Новая Тигромания
Theme URI:
Version: 1.0
Description: Space Tigers Rules The Galaxy! =^=ω=^=✧
Author: Djolbars
Author URI:
*/

:root {
  --bg: #f5efe4;
  --surface: rgba(255, 248, 236, 0.92);
  --surface-strong: #fff7ea;
  --text: #2d2418;
  --muted: #6f624f;
  --line: rgba(80, 58, 26, 0.16);
  --accent: #c76f1d;
  --accent-dark: #945018;
  --forest: #304b34;
  --forest-soft: #46654a;
  --shadow: 0 18px 45px rgba(44, 28, 10, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1280px;
  --wp-gal-gap: 12px;
  --wp-gal-caption: rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(245, 239, 228, 0.9), rgba(245, 239, 228, 0.95)),
    url('/wp-content/themes/new_tigro/images/bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.55;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto !important;
}

/* =========================
   Header / logo / navigation
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(34, 28, 21, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 1;
	column-gap: 10px;
}

.logo__image {
	display: block;
	max-width: 65px;
	height: auto;
}

.logo__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
}

.logo__text {
  font-size: 0.92rem;
  color: rgba(255, 245, 230, 0.76);
}

.nav {
  margin-left: auto;
}

.nav__list,
.nav__list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nav__list > li {
  position: relative;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff9ef;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current-menu-ancestor > a {
  background: rgba(255, 255, 255, 0.1);
}

.nav__list .menu-item-has-children > a {
  position: relative;
  padding-right: 34px;
}

.nav__list .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  opacity: 0.8;
}

.nav__list .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(46, 37, 25, 0.96);
  box-shadow: 0 18px 45px rgba(44, 28, 10, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav__list .sub-menu li + li {
  margin-top: 4px;
}

.nav__list .sub-menu a {
  display: flex;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #fff9ef;
  border-radius: 2px;
  transition: 0.2s ease;
}

/* =========================
   Hero
   ========================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 28px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 22, 16, 0.75) 0%,
    rgba(26, 22, 16, 0.45) 35%,
    rgba(26, 22, 16, 0.2) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__card {
  display: flex;
  align-items: end;
  min-height: 580px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 660px);
  padding: 56px;
  color: #fff5e9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 209, 149, 0.25);
  border-radius: 999px;
  background: rgba(255, 181, 77, 0.16);
  font-size: 0.94rem;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  max-width: 58ch;
  font-size: 1.05rem;
  color: rgba(255, 244, 231, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero__stat {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.hero__stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.5rem;
}

/* =========================
   Buttons
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #dc832c, #bf6617);
  box-shadow: 0 12px 26px rgba(191, 102, 23, 0.28);
}

.btn--secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff9ef;
}

/* =========================
   Layout / cards / sections
   ========================= */

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin: 10px 0 60px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 25px;
}

.section-card,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-card {
  padding: 15px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.section-head p {
  margin: 8px 0 0;
  max-width: 60ch;
  color: var(--muted);
}

.section-link {
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
}

.direction h3,
.story h3,
.post h3,
.sidebar-card h3,
.feature h3 {
  margin: 0 0 10px;
  line-height: 1.15;
}

.direction p,
.story p,
.post p,
.feature p,
.sidebar-card p,
.sidebar-card li {
  margin: 0;
  color: var(--muted);
}

/* =========================
   Directions / posts / stories
   ========================= */

.directions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.direction {
  padding: 22px;
  border: 1px solid rgba(88, 63, 28, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.72));
}

.direction__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(199, 111, 29, 0.14);
  font-size: 1.35rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #ddd5c9;
  border-radius: 24px;
  background: #f7f3ed;
}

.post__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #ddd;
}

.post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__body {
  padding: 24px 20px 28px;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story {
  padding: 22px;
  border: 1px solid rgba(80, 58, 26, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.8));
}

.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(80, 58, 26, 0.12);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(54, 83, 58, 0.98), rgba(104, 66, 28, 0.94));
  color: #fff4e7;
}

.feature__content {
  padding: 28px 28px 28px 32px;
}

.feature__media {
  min-height: 100%;
}

.feature p {
  color: rgba(255, 244, 231, 0.82);
}

.feature .btn--secondary {
  margin-top: 18px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

/* =========================
   Sidebar
   ========================= */

.sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 22px;
}

.sidebar-card {
  padding: 22px;
}

.sidebar-card h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.sidebar-list {
  display: grid;
  gap: 14px;
}

.mini-post {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(80, 58, 26, 0.08);
}

.mini-post:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-post__thumb {
  width: 88px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #ddd center / cover;
}

.mini-post strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.2;
}


.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(199, 111, 29, 0.1);
  color: var(--accent-dark);
  font-size: 0.93rem;
  font-weight: 600;
}
.tag-cloud {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
}
.support {
  background: linear-gradient(180deg, #fff0d8, #ffe7c5);
}

.support .btn--primary {
  width: 100%;
  margin-top: 16px;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  padding: 15px 0 42px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(46, 37, 25, 0.9);
  color: rgba(255, 245, 230, 0.82);
  box-shadow: var(--shadow);
}

.site-footer .footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-nav a:hover {
  text-decoration: underline;
}

/* =========================
   Single post
   ========================= */

.post-single__title {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.15;
}

.post-single__author {
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.post-single__author img {
  margin-bottom: 10px;
}

.post-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-single__thumbnail {
  margin: 24px 0;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 20px;
}

.post-single__caption {
  margin: 8px 8px;
  color: #8a7b67;
  font-size: 14px;
  font-style: italic;
}

.post-single__toc {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid rgba(80, 58, 26, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.8));
}

.post-single__toc strong {
  display: block;
  margin-bottom: 10px;
}

.post-single__toc ul {
  margin: 0;
  padding-left: 18px;
}

.post-single__toc li + li {
  margin-top: 6px;
}

.toc-h3 {
  margin-left: 14px;
  font-size: 0.95rem;
}

.post-single__content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-single__content > *:first-child,
.archive-description > *:first-child {
  margin-top: 0;
}

.archive-description > *:last-child {
  margin-bottom: 0;
}

.post-single__content h2,
.post-single__content h3 {
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  line-height: 1.2;
}

.post-single__content p,
.post-single__content ul,
.post-single__content ol,
.post-single__content blockquote {
  margin-bottom: 1em;
}

.post-single__content img,
.post-single__content .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.post-single__content iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.post-single__content .alignnone {
  margin: 1rem 0;
}

.post-single__content .aligncenter {
  display: block;
  clear: both;
  margin: 1.5rem auto;
}

.post-single__content .alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.post-single__content .alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.post-single__content::after {
  content: "";
  display: table;
  clear: both;
}

.post-single__content .wp-caption {
  max-width: 100%;
  margin: 1.5rem auto;
  text-align: center;
}

.post-single__content .wp-caption img {
  margin: 0;
}

.post-single__content .wp-caption-text {
  margin-top: 6px;
  color: #666;
  font-size: 0.9rem;
}

.post-single__content .wp-block-image {
  margin: 1.5rem 0;
}

.post-single__content .gallery br {
  display: none;
}

.post-single__bottom {
  margin-top: 28px;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.post-nav {
  display: block;
  padding: 18px;
  border: 1px solid rgba(80, 58, 26, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.8));
}

.post-nav span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-nav strong {
  line-height: 1.3;
}

.related-posts h2 {
  margin: 0 0 20px;
  font-size: 1.6rem;
}

/* =========================
   Archive / pagination
   ========================= */

.archive-title {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.15;
}

.archive-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
	margin-bottom:15px;
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination__item a,
.pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(80, 58, 26, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.8));
}

.pagination__item .current {
  background: rgba(199, 111, 29, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
}

/* =========================
   WordPress images / captions / galleries
   ========================= */

.wp-caption {
  width: auto !important;
  max-width: 100% !important;
}

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

.wp-caption.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.wp-caption-text {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.gallery {
  display: grid;
  gap: var(--wp-gal-gap);
  margin: 1.25em 0;
}

.gallery .gallery-item {
  width: auto !important;
  margin: 0;
}

.gallery .gallery-icon,
.gallery .gallery-icon a {
  display: block;
  margin: 0;
  overflow: hidden;
  line-height: 0;
}

.gallery .gallery-icon img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

.gallery .wp-caption-text,
.gallery .gallery-caption,
.wp-block-gallery figcaption {
  margin-top: 8px;
  color: var(--wp-gal-caption);
  font-size: 0.875rem;
  line-height: 1.35;
}

.gallery.gallery-columns-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gallery.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery.gallery-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery.gallery-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery.gallery-columns-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.gallery.gallery-columns-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.gallery.gallery-columns-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }

.gallery:not([class*="gallery-columns-"]) {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gallery .gallery-icon a img {
  transition: transform 0.2s ease, filter 0.2s ease;
}

@media (hover: hover) {
  .gallery .gallery-icon a:hover img {
    transform: scale(1.02);
    filter: saturate(1.05);
  }
}

.wp-block-gallery {
  gap: var(--wp-gal-gap);
  margin: 1.25em 0;
}

.wp-block-gallery .wp-block-image,
.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery figure {
  margin: 0 !important;
}

.wp-block-gallery a {
  display: block;
  overflow: hidden;
  line-height: 0;
}

.wp-block-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   Fancybox / carousel
   ========================= */

.f-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.f-carousel__viewport [data-selectable] {
  position: relative;
  top: -33px;
  padding: var(--f-caption-padding, 6px 8px) !important;
  border-radius: 0 0 16px 16px;
  background: rgb(255 255 255 / 50%) !important;
  cursor: auto;
  font-size: 12px !important;
}

.post-meta__views {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}

.post-meta__views img {
	width: 25px;
	height: 25px;
	display: block;
}

.comments-block__title {
	margin: 0 0 20px;
	font-size: 1.6rem;
}

.comments-list {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.comments-list .comment {
	padding: 18px 0;
	border-top: 1px solid rgba(80, 58, 26, 0.12);
}

.comments-list .comment:first-child {
	border-top: 0;
	padding-top: 0;
}

.comments-list .comment-body {
	display: grid;
	gap: 10px;
}

.comments-list .comment-meta {
	font-size: 0.92rem;
	color: var(--muted);
}

.comments-list .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.comments-list .comment-author img {
	border-radius: 999px;
}

.comments-list .reply a {
	font-size: 0.92rem;
	text-decoration: none;
}

.comment-form {
	display: grid;
	gap: 16px;
}

.comment-form__title {
	margin: 0 0 6px;
	font-size: 1.35rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
	margin: 0;
	display: grid;
	gap: 8px;
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid rgba(80, 58, 26, 0.14);
	background: rgba(255, 255, 255, 0.72);
	font: inherit;
	color: var(--text);
}

.comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

.comment-notes {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.comment-form .submit {
	border: 0;
	cursor: pointer;
}

.post-single__content blockquote {
	margin: 26px 0;
	padding: 20px 24px;
	border-left: 4px solid #c76f1d;
	border-radius: 14px;
	background: rgba(255,255,255,0.06);
	position: relative;
	font-style: italic;
	line-height: 1.65;
}

.post-single__content blockquote p {
	margin: 0;
}

.post-single__content blockquote::before {
	content: "“";
	position: absolute;
	left: 14px;
	top: -8px;
	font-size: 48px;
	line-height: 1;
	color: rgba(199,111,29,0.25);
	font-style: normal;
}

.post-single__content blockquote cite {
	display: block;
	margin-top: 10px;
	font-size: 0.9rem;
	font-style: normal;
	color: rgba(255,255,255,0.7);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directions,
  .stories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
    width: 60px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(46, 37, 25, 0.98);
    box-shadow: 0 18px 45px rgba(44, 28, 10, 0.22);
  }

  .site-header.menu-open .nav {
    display: block;
  }

  .nav__list {
    display: block;
  }

  .nav__list > li + li {
    margin-top: 6px;
  }

  .nav__list a {
    display: flex;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav__list .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 4px;
    padding: 8px 0 0 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list .menu-item-has-children.open > .sub-menu {
    display: block;
  }

  .nav__list .sub-menu a {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav__list .menu-item-has-children > a::after {
    right: 16px;
	  display:none;
  }

  .site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 900px) {
  .gallery.gallery-columns-5,
  .gallery.gallery-columns-6,
  .gallery.gallery-columns-7,
  .gallery.gallery-columns-8,
  .gallery.gallery-columns-9 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    z-index: 1000;
  }

  .site-header__row,
  .section-head,
  .site-footer__inner {
    display: flex;
  }

  .nav {
    margin-top: 14px;
  }

  .hero__card {
    min-height: 520px;
  }

  .hero__inner {
    padding: 28px;
  }

  .hero__stats,
  .directions,
  .stories,
  .news-grid,
  .sidebar,
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .feature {
    display: block;
  }

  .feature__media {
    min-height: 260px;
  }

  .section-link {
    display: inline-block;
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  .post-single__content .alignleft,
  .post-single__content .alignright {
    float: none;
    display: block;
    margin: 1.5rem auto;
  }
}

@media (max-width: 640px) {
  .gallery.gallery-columns-3,
  .gallery.gallery-columns-4,
  .gallery.gallery-columns-5,
  .gallery.gallery-columns-6,
  .gallery.gallery-columns-7,
  .gallery.gallery-columns-8,
  .gallery.gallery-columns-9 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-button.is-arrow {
    display: none;
  }
}

@media (max-width: 420px) {
  .gallery {
    grid-template-columns: 1fr !important;
  }
	
	.logo__title {font-size: 18px;}	
}


.header-search {
	display: flex;
	align-items: center;
	position: relative;
	margin-left: auto;
}

.header-row {display:flex;align-items: center;column-gap: 5px;}

.header-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff9ef;
	cursor: pointer;
	transition: 0.2s ease;
	flex-shrink: 0;
}

.header-search__toggle:hover {
	background: rgba(255, 255, 255, 0.14);
}

.header-search__form {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 0;
	opacity: 0;
	overflow: hidden;
	margin-left: 10px;
	padding: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition:
		width 0.28s ease,
		opacity 0.2s ease,
		padding 0.28s ease,
		margin 0.28s ease;
}

.header-search.is-open .header-search__form {
	width: 280px;
	opacity: 1;
	padding: 6px;
}

.header-search__input {
	width: 100%;
	min-width: 0;
	height: 38px;
	padding: 0 14px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff9ef;
	font: inherit;
}

.header-search__input::placeholder {
	color: rgba(255, 245, 230, 0.62);
}

.header-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff9ef;
	cursor: pointer;
	flex-shrink: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 980px) {
	.header-search {
		order: 2;
		margin-left: 0;
	}

	.header-search.is-open .header-search__form {
		width: min(56vw, 260px);
	}
}

@media (max-width: 640px) {
	.header-search.is-open .header-search__form {
		position: absolute;
		top: calc(100% + 10px);
		right: 0;
		width: min(calc(100vw - 32px), 320px);
		background: rgba(46, 37, 25, 0.98);
		box-shadow: 0 18px 45px rgba(44, 28, 10, 0.22);
		z-index: 1100;
	}
}


.submenu-toggle {display:none}

@media (max-width: 980px) {

	.nav__list .sub-menu {
		display: none;
	}

	.nav__list .menu-item-has-children.open > .sub-menu {
		display: block;
	}
	
.submenu-toggle {
	position: absolute;
        right: 7px;
        top: 6px;
	width: 35px;
	height: 35px;
	border: 0;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: #dfdfdf;
	border-radius: 14px;
}

.nav__list .menu-item-has-children > a {
	padding-right: 40px; /* место под стрелку */
}
	
.menu-item-has-children.open .submenu-toggle svg {
	transform: rotate(180deg);
	transition: transform 0.2s ease;
}	

}


.under-conscruct {
	    font-size: 18px;
    color: #bd2b2b!important;
    font-weight: 500;	
}

