/*
Theme Name: Blogs V5
Theme URI:  https://shifton.com
Author:     Shifton Team
Description: Blogs theme for Shifton - cleaned from main site code
Version:    5.0
Text Domain: blogs-v5
*/

@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;700&family=Inter:wght@400;700&display=swap');

.footer-menu li a:not([class*=btn]) {
    font-weight: 400; /* или 300, 200, 100 для еще меньшей жирности */
}

:root {
  --base-font: Mulish;
  --fw-medium: 600;
  --fw-normal: 400;
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-22: 1.375rem;
  --fs-24: 1.5rem;
  --main-color: #369fff;
  --placeholder-color: rgba(15, 20, 28, 0.3);
  --text-main-color: #0f141c;
  --text-dark-color: #899096;
  --text-white: #ffffff;
  --stroke-main-color: #e8ebee;
  --bg-white: #ffffff;
  --bg-gray: #f7f9fd;
  --btn-shadow: rgba(54, 159, 255, 0.3);
  --border-size: 1px;
  --radius: 10px;
  --radius-big: 22px;
  --grid-step: 12px;
  --grid-step-md: 24px;
  --grid-step-xl: 2rem;
  --margin: 5.625rem;
  --btn-pad: 2.5rem;
  --transition: 0.2s ;
}

@media (max-width: 767px) {
  :root {
    --margin: 1.875rem;
  }
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 16px;
  background: var(--bg-white);
  font-family: var(--base-font);
  font-weight: var(--fw-normal);
  letter-spacing: 0;
}

html {
  height: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100%;
  position: relative;
  opacity:1;
  transition: opacity 0.5s;
}

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

hr {
  background-color: currentColor;
  border: 0;
}

p {
  margin-top: 0;
}

ol,
ul {
  padding-left: 2rem;
}

ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

blockquote {
  margin: 0 0 1rem;
}

b,
strong {
  font-weight: 700;
}

sub,
sup {
  position: relative;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

a:not([href]):not([class]), a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
}
pre code {
  color: inherit;
  word-break: normal;
}

code {
  word-wrap: break-word;
}
a > code {
  color: inherit;
}

figure {
  margin: 0 0 1rem;
}

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

table {
  caption-side: bottom;
  border-collapse: collapse;
}

caption {
  text-align: left;
}

th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

input,
button,
select,
optgroup,
textarea {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  outline: none;
}

button,
select {
  text-transform: none;
}

[role=button] {
  cursor: pointer;
}

select {
  word-wrap: normal;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}
button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
  cursor: pointer;
}

iframe {
  border: 0;
}

summary {
  display: list-item;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.container-fluid {
  max-width: 1560px;
}

h1, .h1 {
  font-size: 4.5rem;
  font-weight: var(--fw-medium);
  margin: 0 0 2rem 0;
  color: var(--text-main-color);
}

h2, .h3, .h2 {
  font-size: 3.75rem;
  font-weight: var(--fw-medium);
  margin: 0 0 1.5rem 0;
  line-height: 115%;
  color: var(--text-main-color);
}

h3 {
  font-size: 3rem;
  font-weight: var(--fw-medium);
  margin: 0 0 2rem 0;
  color: var(--text-main-color);
}

h4, .h4 {
  font-size: 2rem;
  font-weight: var(--fw-medium);
  margin: 3rem 0 1.5rem 0;
  color: var(--text-main-color);
}
* > h4:first-of-type, * > .h4:first-of-type {
  margin-top: 0;
}

h5, .h5 {
  font-size: 1.375rem;
  font-weight: var(--fw-medium);
  margin: 0 0 0.75rem;
  color: var(--text-main-color);
}

h6, .h6 {
  font-size: 1.175rem;
  font-weight: var(--fw-medium);
  color: var(--text-main-color);
}

a {
  color: var(--text-main-color);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--main-color);
}

.text-info {
  color: var(--main-color);
}

@media (max-width: 1599px) {
  h1, .h1 {
    font-size: 4rem;
  }
  h2, .h2, .h3 {
    font-size: 3.25rem;
  }
}
@media (max-width: 1199px) {
  h1, .h1 {
    font-size: 3rem;
  }
  h2, .h2, .h3 {
    font-size: 2.25rem;
  }
  h3, .h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 767px) {
  h1, .h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  h3, .h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }
  h4, .h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
  }
  h5, .h5 {
    font-size: 1.125rem;
  }
}
/*wp styles*/
.alignnone {
  margin: 5px 10px 10px 0;
}

.aligncenter, div.aligncenter {
  margin: auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 30px;
}

.alignleft {
  float: left;
  margin: 5px 30px 20px 0;
}

.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 30px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 30px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  width: 100% !important;
  margin: 2rem 0 !important;
}

.wp-caption img {
  display: block;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
}

.wp-caption p.wp-caption-text {
  padding-left: 20px;
  border-left: var(--border-size) solid var(--main-color);
  line-height: 120%;
  font-weight: var(--fw-medium);
  font-size: var(--fs-22);
  color: var(--text-main-color);
  font-style: italic;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  display: block;
  border-radius: var(--radius);
}

.video-responsive > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 576px) {
  .wp-caption p.wp-caption-text {
    font-size: var(--fs-18);
  }
}

.dropdown {
  position: relative;
}
.dropdown select {
  display: none !important;
}
.dropdown-selected {
  border: var(--border-size) solid var(--stroke-main-color);
  border-radius: var(--radius);
  width: 100%;
  height: 55px;
  padding: var(--grid-step) var(--grid-step-md);
  font-size: var(--fs-18);
  transition: border-color var(--transition);
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: var(--bg-white);
  position: relative;
  z-index: 2;
  font-weight: var(--fw-medium);
  justify-content: space-between;
}
.dropdown-selected:hover, .dropdown-selected:focus {
  border-color: var(--main-color);
}
.dropdown-selected:after {
  content: "";
  display: block;
  transition: transform var(--transition);
  margin-left: 7.5px;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23899096' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}
.dropdown-center {
  display: inline-block;
}
.dropdown-center .dropdown-selected {
  display: inline-flex;
  width: auto;
  justify-content: center;
}
.dropdown-center .dropdown-selected.w-100 {
  width: 100%;
}
.dropdown-center .dropdown-list__item {
  text-align: center;
}
.dropdown-list {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  top: 100%;
  margin-top: -10px;
  padding: 10px var(--grid-step-md);
  left: 0;
  width: 100%;
  border: var(--border-size) solid var(--stroke-main-color);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  background: var(--bg-white);
}
.dropdown-list__item {
  padding: var(--grid-step) 0;
  font-size: var(--fs-18);
  font-weight: var(--fw-medium);
  border-bottom: 1px solid var(--stroke-main-color);
  transition: color var(--transition);
  cursor: pointer;
}
.dropdown-list__item:hover, .dropdown-list__item.selected {
  color: var(--main-color);
}
.dropdown-list__item:hover a, .dropdown-list__item.selected a {
  color: var(--main-color);
}
.dropdown-list__item:last-of-type {
  border: 0;
}
.dropdown[aria-expanded="true"] .dropdown-selected {
  border-color: var(--main-color);
}
.dropdown[aria-expanded="true"] .dropdown-selected:after {
  transform: rotate(180deg);
}
.dropdown[aria-expanded="true"] .dropdown-list {
  opacity: 1;
  visibility: visible;
}

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--fs-18);
  height: 55px;
  font-weight: var(--fw-medium);
  border: 0;
  box-shadow: none;
  outline: none;
  padding: 0 var(--btn-pad);
}
.btn-primary {
  background-color: #1991ff;
  color: var(--text-white);
  transition: background-color var(--transition);
}
.btn-primary:not(:disabled):hover {
  color: var(--text-white);
  background-color: #1683e5;
}
.btn-primary:disabled {
  color: var(--text-dark-color);
  background-color: var(--bg-gray);
  cursor: default;
}
.btn-secondary {
  background-color: transparent;
  color: #1991ff;
  transition: var(--transition);
  border: 1px solid var(--stroke-main-color);
}
.btn-secondary:not(:disabled):hover {
  color: var(--text-white);
  background-color: #1991ff;
  border-color: #1991ff;
}
.btn-secondary:disabled {
  color: var(--text-dark-color);
  background-color: transparent;
  cursor: default;
}
.btn-white {
  background-color: var(--bg-white);
  color: var(--text-main-color);
  transition: var(--transition);
}
.btn-white:hover {
  color: var(--text-white);
  background-color: var(--text-main-color);
}
.btn svg {
  transition: var(--transition);
}
.btn.active svg.rotate18 {
  transform: rotate(180deg);
}

.menu-btn {
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--fs-18);
  height: 55px;
  font-weight: var(--fw-medium);
  border: 0;
  box-shadow: none;
  outline: none;
  padding: 0 var(--btn-pad);
  transition: var(--transition);
  background-color: var(--bg-gray);
  justify-content: space-between;
}
.menu-btn > span {
  display: block;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 94%;
  white-space: nowrap;
}
.menu-btn > span svg {
  margin-right: 8px;
}
.menu-btn svg {
  transition: var(--transition);
}
.menu-btn-2 {
  background-color: var(--bg-white);
  padding: 0 var(--grid-step-xl);
  height: 76px;
}
.menu-btn:hover {
  color: var(--text-white);
  background-color: var(--main-color);
  box-shadow: 0 0 24px 0 var(--btn-shadow);
}
.menu-btn:hover span > svg path {
  fill: var(--bg-white);
}
.menu-btn:hover > svg path {
  stroke: var(--bg-white);
}
@media (max-width: 767px) {
  .menu-btn-2 {
    height: 50px;
    padding: 0.75rem;
  }
}

.text-btn {
  font-weight: var(--fw-medium);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
  color: var(--text-main-color);
}
.text-btn svg {
  margin-left: 6px;
}
.text-btn svg path {
  transition: var(--transition);
  stroke: var(--text-main-color);
}
.text-btn.reverse-btn svg {
  margin-right: 6px;
}
.text-btn:hover {
  color: var(--main-color);
}
.text-btn:hover svg path {
  stroke: var(--main-color);
}
.text-btn[aria-disabled=true], .text-btn[disabled] {
  color: var(--text-dark-color) !important;
}
.text-btn[aria-disabled=true] svg path, .text-btn[disabled] svg path {
  stroke: var(--text-dark-color) !important;
}

.pagination {
  list-style: none;
  margin-top: var(--grid-step-md);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination li {
  display: block;
}
.pagination li a {
  display: flex;
  width: 3rem;
  height: 3rem;
  border-radius: 1.5rem;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-medium);
  font-size: var(--fs-18);
}
.pagination li.active a {
  background-color: var(--main-color);
  color: var(--text-white);
  cursor: default;
}
.pagination li.prev a, .pagination li.next a {
  border: 1px solid var(--stroke-main-color);
  transition: var(--transition);
}
.pagination li.prev a svg path, .pagination li.next a svg path {
  transition: var(--transition);
}
.pagination li.prev a:hover, .pagination li.next a:hover {
  background-color: var(--main-color);
  color: var(--text-white);
  border-color: var(--main-color);
}
.pagination li.prev a:hover svg path, .pagination li.next a:hover svg path {
  stroke: var(--bg-white);
}
.pagination li.prev {
  margin-right: 1rem;
}
.pagination li.next {
  margin-left: 1rem;
}

.post-card {
  height: 100%;
  display: flex;
  border-radius: 1rem;
}
.post-card.shadowed {
  transition: var(--transition);
}
.post-card.shadowed:hover {
  box-shadow: 0 0 24px 0 var(--btn-shadow);
}
.post-card.shadowed:hover .post-card__title {
  color: var(--main-color);
}
.post-card__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding: 2rem;
}
.post-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-bottom: var(--grid-step-md);
}
.post-card__title {
  font-weight: var(--fw-medium);
  font-size: var(--fs-22);
  display: block;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: var(--border-size) solid var(--stroke-main-color);
}
.post-card__title.noborder {
  border: 0;
  padding: 0;
  margin-bottom: 1rem;
}
.post-card__excerpt {
  color: #000000 !important;
  padding-bottom: 2rem;
  line-height: 175%;
  display: block;
}
.post-card__summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.post-card__summary.f-top {
  align-items: flex-start;
}
.post-card__summary a {
  margin-bottom: 0.5rem;
}
.post-card__summary a:not(:hover) {
  color: var(--text-dark-color);
}
.post-card__summary a:not(:hover) svg path {
  stroke: var(--text-dark-color);
}
.post-card__author {
  display: inline-flex;
  align-items: center;
  color: var(--text-dark-color);
  font-size: var(--fs-14);
}
.post-card__author_img {
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  height: 53px !important;
  width: auto !important;
  margin-right: 10px;
  margin-bottom: 0 !important;
}
.post-card__author_name {
  display: block;
  color: var(--text-main-color);
  font-size: var(--fs-16);
}
.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.5rem;
}
.post-card__tags a {
  display: inline-block;
  height: 2.75rem;
  line-height: 2.75rem;
  border-radius: 1.375rem;
  background-color: rgba(54, 159, 255, 0.1);
  color: var(--main-color);
  margin-bottom: 2rem;
  font-weight: var(--fw-medium);
  padding: 0 var(--grid-step-md);
  transition: background-color, color var(--transition);
}
.post-card__tags a:hover {
  background-color: var(--main-color);
  color: var(--text-white);
}
.post-card__info {
  color: var(--text-dark-color);
  display: flex;
  align-items: center;
  font-weight: var(--fw-medium);
  margin: 1.5rem 0;
}
.post-card__info:before {
  display: block;
  content: "";
  margin-right: 10px;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' stroke='%23899096' stroke-width='1.2' fill='none'/%3E%3Cpath d='M10 5.5V10l3 2' stroke='%23899096' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}
.post-card__info > span {
  display: inline-flex;
  align-items: center;
  padding-left: 10px;
}
.post-card__info > span:before {
  display: block;
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-dark-color);
  margin-right: 10px;
}
.post-card__info > span:first-of-type {
  padding: 0;
}
.post-card__info > span:first-of-type:before {
  display: none;
}

.breadcrumbs {
  margin-bottom: 2rem;
  width: 100%;
}
.breadcrumbs ul, .breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.breadcrumbs ul li, .breadcrumbs ol li {
  display: block;
  font-size: var(--fs-16);
}
.breadcrumbs ul li a:not(:hover), .breadcrumbs ol li a:not(:hover) {
  color: var(--text-dark-color);
}
.breadcrumbs ul li.breadcrumb-item + .breadcrumb-item, .breadcrumbs ol li.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;
}
.breadcrumbs ul li.breadcrumb-item + .breadcrumb-item:before, .breadcrumbs ol li.breadcrumb-item + .breadcrumb-item:before {
  display: inline-block;
  padding-right: 0.5rem;
  color: #6c757d;
  content: "/";
}
.breadcrumbs.left ul, .breadcrumbs.left ol {
  justify-content: flex-start;
}
@media (max-width: 767px) {
  .breadcrumbs {
    margin-bottom: 1rem;
  }
}

.header {
  background-color: var(--bg-white);
  position: fixed;
  padding: 15px 0;
  border-bottom: var(--border-size) solid var(--stroke-main-color);
  z-index: 9999;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  isolation: isolate;
}

/* Основной контент — ниже хедера по слоям */
main.main,
#main.main,
.main#main {
  position: relative;
  z-index: 1;
}

.header .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.header .row {
  margin-left: -15px;
  margin-right: -15px;
}

.header [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  min-width: 0;
}

/* Лого не налезает на текст: ограничение по ширине */
.header .logo-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.header .header-logo {
  max-width: 100%;
  min-width: 0;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-buttons .text-btn,
.header-buttons .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
}

.header-nav ul li {
  position: relative;
  margin-right: 2rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-nav ul li:last-of-type {
  margin: 0;
}
.header-nav ul li a {
  display: flex;
  align-items: center;
  font-weight: var(--fw-medium);
  font-size: var(--fs-18);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.header-nav ul li.menu-item-has-children > a > svg, .header-nav ul li.has-children > a > svg {
  display: block;
  transition: transform var(--transition);
  width: 11px;
  height: 5px;
  flex-shrink: 0;
  margin-left: 10px;
}
.header-nav ul li.menu-item-has-children > a > svg path, .header-nav ul li.has-children > a > svg path {
  transition: var(--transition);
}
.header-nav ul li.menu-item-has-children:hover > a > svg, .header-nav ul li.has-children:hover > a > svg {
  transform: rotate(180deg);
}
.header-nav ul li.menu-item-has-children:hover > a > svg path, .header-nav ul li.has-children:hover > a > svg path {
  stroke: var(--main-color);
}
   
/* Выпадающее меню хедера — десктоп: position:absolute, открывается по hover */
@media (min-width: 993px) {
  .header ul li,
  .header .header-nav ul li {
    position: relative;
  }
  .header ul li .sub-menu,
  .header .header-nav ul li .sub-menu {
    position: absolute !important;
    left: 0 !important;
    top: calc(100% + 8px) !important;
    transform: none !important;
    background-color: var(--bg-white);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 24px 20px 20px;
    margin-top: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    min-width: 180px;
    max-width: min(1100px, calc(100vw - 32px));
    width: max-content;
    box-sizing: border-box;
  }
  .header ul li:hover > .sub-menu,
  .header ul li .sub-menu:hover,
  .header .header-nav ul li:hover > .sub-menu,
  .header .header-nav ul li.hover-open > .sub-menu,
  .header .header-nav ul li .sub-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition-delay: 0s;
  }
}
/* Внутренняя вёрстка мега-меню (синхронизированный хедер) */
.header-nav ul li .sub-menu .container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}
.header-nav ul li .sub-menu .container-fluid .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px 24px;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
}
.header-nav ul li .sub-menu .container-fluid .row > [class*="col"] {
    flex: 1 1 auto;
    min-width: 240px;
    max-width: 320px;
    padding-left: 0;
    padding-right: 0;
}
.header-nav ul li .sub-menu .menu-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    margin-bottom: 0.5rem;
    gap: 10px;
}
.header-nav ul li .sub-menu .menu-btn:last-of-type {
    margin: 0;
}
/* Текст в кнопках выпадающего меню — максимум 2 строки */
.header-nav ul li .sub-menu .menu-btn > span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: none !important;
    white-space: normal !important;
    word-break: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}
.header-nav ul li .sub-menu .menu-btn {
    min-width: 0;
    overflow: visible;
}

/* На узких экранах мега-меню не выходит за край */
@media (max-width: 1024px) {
    .header-nav ul li .sub-menu {
        max-width: calc(100vw - 24px) !important;
    }
}
.header-nav ul li .sub-menu__title {
  display: block;
  font-weight: var(--fw-medium);
  font-size: var(--fs-22);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--border-size) solid var(--stroke-main-color);
}
.header-nav ul li .sub-menu .menu-btn {
  margin-bottom: 0.5rem;
}
.header-nav ul li .sub-menu .menu-btn:last-of-type {
  margin: 0;
}
/* Видимость sub-menu задана выше рядом с .sub-menu */
  .header-buttons .languages {
    margin-left: 1rem;
  }
    .header-buttons .demo-btn {
      margin-left: 0.5rem;
      height: 47px;
      line-height: 47px;
      padding: 0 1rem;
    }
    .header-buttons .start-free-btn {
      margin-left: 1rem;
      height: 47px;
      line-height: 47px;
    padding: 0 1rem;
  }
  @media (max-width: 1365px) {
  .header-nav ul li {
    margin-right: 1rem;
  }
  .header-nav ul li a {
    font-size: var(--fs-16);
  }
}
@media (max-width: 1280px) {
  .header .languages .dropdown-list__item {
    padding: calc(var(--grid-step) / 2) 0;
    font-size: var(--fs-14);
  }

}

/* Стили для языкового выпадающего списка - вынесены за пределы медиазапроса */
.col-lg-8_lang {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: .25rem !important;
  max-height: 90vh !important;
  height: 100% !important;
  align-items: center !important;
  padding: 20px !important;
}

.header_lang_lingl_link {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 6px 8px !important;
  width: 150px !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 0 !important;
  transition: all 0.2s ease !important;
}

.header_lang_lingl_link:hover {
  background-color: #f0f0f0 !important;
  color: #369FFF !important;
}

.header_lang_lingl_link.disabled {
  background-color: #369FFF !important;
  color: white !important;
}

.header_lang_lingl_link img {
  width: auto !important;
  height: auto !important;
  margin-right: 5px;
}

.languages .dropdown-list {
  opacity: 0;
  background: #fff;
}

.header .languages .dropdown-list {
  min-width: 560px; /* шире, чтобы вмещать несколько колонок */
  overflow-x: hidden;            /* без горизонтального скролла */
}

/* Новые стили для языкового меню */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px 24px;
  padding: 20px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.language-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  color: #0F141C;
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-link:hover {
  background-color: #f0f0f0;
  color: #369FFF;
}

.language-link.disabled {
  background-color: #369FFF;
  color: white;
}

.language-link img {
  width: 20px;
  height: auto;
  flex-shrink: 0;
}

/* Адаптивные стили для языкового меню */
@media (max-width: 768px) {
  .languages-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 8px 16px;
    padding: 16px 20px;
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .language-link {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  .language-link img {
    width: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .languages-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 10px 20px;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .languages-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
  }
}

/* Полноширинная панель под хедером при раскрытии */
.header .dropdown.dropdown-center.languages[aria-expanded="true"] .dropdown-list {
  position: fixed !important;
  top: 90px;
  left: 50% !important;
  transform: translateX(-50%);
  width: min(1400px, 95vw) !important;
  margin: 0 !important;
  border-radius: 12px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.header .languages .dropdown-list .col-lg-8_lang {
  display: grid !important;                /* используем Grid для ровных колонок */
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px 24px;                          /* row / column gap */
  align-items: center;
  justify-items: start;
  background: #fff !important;
  padding: 20px 28px !important;
  box-sizing: border-box !important;
  margin: 8px !important;
}

.header .languages .dropdown-list .col-lg-8_lang .header_lang_lingl_link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  width: 100% !important;             /* одинаковая ширина ячейки */
  height: 40px !important;            /* одинаковая высота */
  padding: 0 10px !important;         /* одинаковые внутренние отступы */
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: var(--text-main-color);
  background: transparent;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  /* ИСПРАВЛЕНИЕ МОБИЛЬНОГО HEADER */
  .header .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
  }
  
  .header [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Мобильная кнопка Start free */
  .start-free-btn-mobile {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 20px !important;
    font-size: 16px !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
  }

  /* Логотип на мобилке */
  .header .logo-img { 
    max-width: 140px !important; 
    height: auto !important; 
  }
  
  .header .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Исправляем отображение мобильного меню */
  .header-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
  }
  
  .header-nav.active {
    transform: translateX(0);
  }
  
  /* Языковой dropdown на мобилке */
  .header .languages .dropdown-list .col-lg-8_lang { 
    grid-template-columns: repeat(2, minmax(140px, 1fr)) !important; 
  }
}

@media (min-width: 992px) and (max-width: 1299px) {
  .header .languages .dropdown-list .col-lg-8_lang { 
    grid-template-columns: repeat(4, minmax(160px, 1fr)); 
  }
  
  /* Улучшенные стили для планшетов */
  
  .header-buttons {
    gap: 2px;
  }
  
  .header-buttons .text-btn,
  .header-buttons .btn {
    font-size: 12px;
    padding: 6px 8px;
    height: 32px;
    line-height: 1;
  }
}

.dev_lang_single {
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--fs-18);
  height: 50px;
  font-weight: var(--fw-medium);
  border: 0;
  box-shadow: none;
  outline: none;
  padding: 0 var(--grid-step-md);
  transition: var(--transition);
  background-color: var(--bg-gray);
  justify-content: space-between;
  display: flex;
  margin-bottom: .75rem;
  align-items: center;
}

/* Флаги в языковом списке (мобайл и десктоп) */
.dev_lang_flag {
  width: 18px;
  height: 18px;
  margin-left: 8px; /* флаг после названия */
  display: inline-block;
  object-fit: contain;
}

/* Имя языка рядом с флагом */
.dev_lang_name { display: inline-block; }

.dev_lang_single:hover {
  color: var(--text-white);
  background-color: var(--main-color);
  box-shadow: 0 0 24px 0 var(--btn-shadow);
}

@media (max-width: 1280px) {
  .header-buttons .text-btn,
  .header-buttons .demo-btn,
  .header-buttons .start-free-btn {
    font-size: 12px;
    height: 32px;
    line-height: 32px;
  }
  .header-buttons .demo-btn,
  .header-buttons .start-free-btn {
    padding: 0 0.3rem;
  }
  .header-buttons .start-free-btn, .header-buttons .languages {
    margin-left: 0.1rem;
  }
  
  .header-nav ul li {
    margin-right: 0.5rem;
  }
  .header-nav ul li a {
    font-size: var(--fs-14);
  }
  .header-nav ul li.has-children > a > svg, .header-nav ul li.menu-item-has-children > a > svg {
    margin-left: 5px;
  }
}
@media (max-width: 991px) {
  .header-nav {
    visibility: hidden;
    opacity: 0;
    transition: calc(var(--transition) * 2);
    position: fixed;
    left: 0;
    right: 0;
    top: 70px;
    bottom: 0;
    height: calc(100vh - 70px);
    overflow: hidden;
    overflow-y: auto;
    background-color: var(--bg-white);
    transform: translateX(-100%);
    padding: 30px 20px 40px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    z-index: 999;
  }
  .header-nav ul.primary-menu {
    margin-top: 2rem;
    display: block;
  }
  .header-nav ul.primary-menu > li {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  .header-nav ul.primary-menu > li > a {
    width: 100%;
    justify-content: space-between;
    font-size: var(--fs-22);
  }
  .header-nav ul.primary-menu > li.has-children > a > svg, .header-nav ul.primary-menu > li.menu-item-has-children > a > svg {
    width: 18px;
    height: 10px;
  }
  .header-nav ul.primary-menu > li.has-children > a.active, .header-nav ul.primary-menu > li.menu-item-has-children > a.active {
    color: var(--main-color);
  }
  .header-nav ul.primary-menu > li.has-children > a.active > svg, .header-nav ul.primary-menu > li.menu-item-has-children > a.active > svg {
    transform: rotate(180deg);
  }
  .header-nav ul.primary-menu > li.has-children > a.active > svg path, .header-nav ul.primary-menu > li.menu-item-has-children > a.active > svg path {
    stroke: var(--main-color);
  }
  .header-nav ul li .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    border: 0;
    transition: calc(var(--transition) * 2) !important;
    padding: 2rem 0;
    box-shadow: none;
    margin-top: 0;
  }
  #main-menu ul li.has-children.active .sub-menu {
    display: block;
	width: 100%;
    transform: none !important;
	padding: 15px 0px 0px !important;
  }
  #main-menu ul li.has-children.active .sub-menu .container-fluid .row{
    flex-wrap: wrap;
  }
  #main-menu ul li.has-children.active .sub-menu .container-fluid div div{
    padding: 0 !important;
  }
  #main-menu ul li.has-children.active .sub-menu .container-fluid div div a {
    padding: 0 20px;
  }
  .header-nav ul li .sub-menu__title {
    display: none;
  }
  .header-nav ul li .sub-menu .container-fluid {
    padding: 0;
  }
  .header-nav ul li .sub-menu .menu-btn {
    margin-bottom: 1rem !important;
  }
  
  /* Стили для языкового меню в мобильной версии */
  .header-nav .d-lg-none .dropdown {
    position: relative;
  }
  .header-nav .d-lg-none .dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-height: 220px; /* минимальная высота, даже если пунктов мало */
    max-height: 60vh; /* большее окно для видимости всех языков */
    overflow-y: auto; /* скроллим при переполнении */
    display: none; /* Скрыто по умолчанию */
  }
  .header-nav .d-lg-none .dropdown-list .dev_lang_single {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
  }
  .header-nav .d-lg-none .dropdown-list .dev_lang_single:hover {
    background: #f8f9fa;
  }
  .header-nav .d-lg-none .dropdown-list .dev_lang_single:last-child {
    border-bottom: none;
  }
  
  .header-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  .header .btn-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    padding-left: 0;
    padding-right: 0;
    border: none;
    background-color: transparent;
    color: inherit;
    cursor: pointer;
    transition: var(--transition) ease;
    padding-top: 14px;
    position: relative;
    padding-bottom: 7px;
  }

  .header .btn-menu:focus {
    outline: none;
  }
  .header .btn-menu__bars {
    display: block;
    position: relative;
    width: 30px;
    height: 2px;
    background-color: #292D32;
    transition: 0.3s;
  }
  .header .btn-menu__bars:before, .header .btn-menu__bars:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #292D32;
    transition: var(--transition);
  }
  .header .btn-menu__bars:before {
    transform: translate(0, -7px);
  }
  .header .btn-menu__bars:after {
    transform: translate(0, 7px);
  }
  .header .btn-menu.active {
    padding-top: 7px;
  }
  .header .btn-menu.active:before {
    width: 0;
  }
  .header .btn-menu.active .btn-menu__bars {
    background-color: transparent;
  }
  .header .btn-menu.active .btn-menu__bars:before {
    transform: rotate(45deg);
  }
  .header .btn-menu.active .btn-menu__bars:after {
    transform: rotate(-45deg);
  }
}

.footer-menu {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.footer-menu.sp-menu {
  margin-bottom: 4.5rem;
}
.footer-menu li {
  margin-bottom: var(--grid-step);
  font-size: 1rem;
  font-weight: var(--fw-medium);
}
.footer-menu li a:not([class*=btn]) {
  color: #000000 ;
}
.footer-menu li:last-of-type {
  margin: 0;
}
.footer-menu__title {
  font-weight: var(--fw-medium);
  font-size: var(--fs-22);
  margin-bottom: var(--grid-step-md);
  padding-bottom: var(--grid-step-md);
  border-bottom: var(--border-size) solid var(--stroke-main-color);
}
.footer-menu__title.simple {
  padding-bottom: 0;
  border: 0;
  margin-bottom: 12px;
}
.footer-middle {
  margin-top: 5.625rem;
}
.footer-socials {
  display: flex;
  column-gap: 0.75rem;
  row-gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.footer-socials a {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-size) solid var(--stroke-main-color);
  border-radius: var(--radius);
}
.footer-socials a svg path {
  transition: fill var(--transition);
}
.footer-socials a:hover svg path {
  fill: var(--text-main-color);
}
.footer-app {
  display: inline-flex;
  flex-direction: column;
  row-gap: 1rem;
}
.footer-app a {
  display: block;
  border: var(--border-size) solid var(--stroke-main-color);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
}
.footer-bottom {
  background-color: var(--bg-gray);
  padding: 2rem 0 0;
  margin-top: var(--margin);
  align-items: center;
}
.footer-bottom__right {
  display: flex;
  column-gap: 1rem;
  justify-content: flex-end;
}
.footer-bottom__left {
  display: flex;
  column-gap: 2rem;
}
.footer-copyright {
  margin-top: 2rem;
  color: var(--text-dark-color);
  font-weight: var(--fw-medium);
  font-size: var(--fs-18);
  padding: var(--grid-step-md);
  border-top: var(--border-size) solid var(--stroke-main-color);
}
.footer-copyright a:not(:hover) {
  color: var(--text-dark-color);
}
@media (min-width: 576px) and (max-width: 991px) {
  .footer-app {
    flex-direction: row;
    column-gap: 1rem;
    display: flex;
  }
}
@media (max-width: 575px) {
  .footer-menu {
    display: none;
  }
  .footer-menus {
    display: none;
  }
  .footer-menu__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  .footer-menu__title[data-el=menu-title]:after {
    display: block;
    transition: transform var(--transition);
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='9' viewBox='0 0 17 9'%3E%3Cpath d='M1 1l7.5 7L16 1' stroke='%23899096' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    width: 17px;
    height: 9px;
  }
  .footer-menu__title.active:after {
    transform: rotate(180deg);
  }
  .footer-middle {
    margin-top: 0;
  }
  .footer-middle .footer-menu {
    display: block;
  }
  .footer-bottom__left {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-bottom__right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 0.25rem;
    margin-top: 1rem;
  }
  .footer-bottom__right > * {
    width: 50%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.start-free {
  border-radius: var(--radius-big);
  background-color: var(--main-color);
  background-image: none;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  color: var(--text-white);
  padding: 4rem;
  position: relative;
}
.start-free h4 {
  margin: 0 0 1rem;
}
.start-free__title {
  margin: 0 0 1rem;
  color: #fff;
}

@media (max-width: 767px) {
  .start-free {
    padding: 1.25rem;
  }
  .start-free .btn {
    margin-top: 1.25rem;
  }
}

.page-section {
  margin-top: var(--margin);
  margin-bottom: var(--margin);
}
.page-section__inner {
  padding-top: var(--margin);
  padding-bottom: var(--margin);
}
.page-label {
  display: inline-block;
  height: 2.75rem;
  line-height: 2.75rem;
  border-radius: 1.375rem;
  color: var(--main-color);
  background-color: var(--bg-gray);
  margin-bottom: 2rem;
  font-weight: var(--fw-medium);
  padding: 0 var(--grid-step-md);
}
.page-label__transparent {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.1);
}
.page-label__main {
  background-color: rgba(54, 159, 255, 0.1);
  color: var(--main-color);
}
@media (max-width: 767px) {
  .page-label {
    height: 2rem;
    line-height: 2rem;
    margin-bottom: 1rem;
    font-size: var(--fs-14);
  }
}

.blog-filter {
  margin: 4rem 0 2.5rem;
}
.blog-filter {
  margin: 4rem 0 2.5rem;
}
.blog-img {
  display: block;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}
.blog-info {
  font-size: var(--fs-18);
}
.blog-info .text-info {
  margin-bottom: 0.5rem;
}
.blog-sidebar {
  position: sticky;
  top: 100px;
  background-color: var(--bg-gray);
  border-radius: 1.125rem;
  padding: 2rem;
  font-size: var(--fs-16);
  font-weight: var(--fw-normal);
}
.blog-sidebar a.current {
  color: var(--main-color);
}
.blog-sidebar p {
  margin-bottom: 0.5rem;
}
.blog-sidebar p:last-of-type {
  margin: 0;
}
.blog-content ul {
  list-style: none;
  padding-left: 0;
}
.blog-content ul li {
  padding-left: 15px;
  margin-bottom: 0.75rem;
}
.blog-content ul li:last-of-type {
  margin-bottom: 0;
}
.blog-content ul li:before {
  position: absolute;
  content: "";
  display: block;
  left: 0;
  background: var(--text-dark-color);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  top: 0.75rem;
}
.blog-content ol {
  list-style: none;
  padding-left: 0;
  counter-reset: ol-counter;
}
.blog-content ol li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}
.blog-content ol li:last-of-type {
  margin-bottom: 0;
}
.blog-content ol li:before {
  content: "0" counter(ol-counter);
  counter-increment: ol-counter;
  color: var(--main-color);
  margin-right: 0.5rem;
  position: absolute;
  left: 0;
  top: 0;
}
.blog-share {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--border-size) solid var(--stroke-main-color);
  padding-top: 1.5rem;
}
.blog-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-size) solid var(--stroke-main-color);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}
.blog-share a svg path {
  transition: fill var(--transition);
}
.blog-share a:hover svg path {
  fill: var(--text-main-color);
}
.blog-share__links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  column-gap: 0.5rem;
}
.blog-review {
  border-top: var(--border-size) solid var(--stroke-main-color);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  display: flex;
  column-gap: 0.75rem;
  font-size: var(--fs-14);
}
.blog-review p {
  font-size: var(--fs-14);
  line-height: 180%;
}
.blog-review__img {
  flex-shrink: 0;
}
.blog-review__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.blog-review__author {
  font-weight: var(--fw-medium);
  font-size: var(--fs-18);
  color: var(--text-main-color);
}
.blog-review__date {
  color: var(--text-dark-color);
  display: flex;
  align-items: center;
  font-weight: var(--fw-medium);
}
.blog-review__date > span {
  display: inline-flex;
  align-items: center;
  padding-left: 10px;
  font-size: var(--fs-14);
}
.blog-review__date > span:before {
  display: block;
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-dark-color);
  margin-right: 10px;
}
.blog-review__date > span:first-of-type {
  padding: 0;
}
.blog-review__date > span:first-of-type:before {
  display: none;
}
.blog-review__content {
  height: auto;
  overflow: hidden;
}
.blog-review__content a {
  display: none;
}
.blog-reviews {
  border-radius: var(--radius);
  margin-top: 4rem;
  padding: 2rem;
}
.blog-reviews .form {
  padding: 0;
}
.blog-reviews__title {
  font-size: 1.375rem;
  font-weight: var(--fw-medium);
  color: var(--text-main-color);
  margin: 2rem 0 1.375rem;
}
.blog-reviews__more {
  border-top: var(--border-size) solid var(--stroke-main-color);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}
.blog-reviews__more a {
  font-size: var(--fs-16);
  font-weight: var(--fw-medium);
  text-decoration: underline;
}
.blog-reviews__more a:not(:hover) {
  color: var(--text-dark-color);
}
.blog-author {
  margin-top: 4rem;
  padding: 2rem;
  border-radius: var(--radius);
  background-color: var(--bg-gray);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.blog-author p {
  font-size: var(--fs-16);
  color: var(--text-dark-color);
}
.blog-author img {
  margin-bottom: 1.25rem;
}
@media (max-width: 767px) {
  .blog-filter {
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
  }
}
@media (max-width: 576px) {
  .blog-post__intro p {
    font-size: var(--fs-16);
  }
  .blog-post__content h4 {
    font-size: var(--fs-22);
    margin-bottom: 0.75rem;
  }
  .blog-info {
    font-size: var(--fs-16);
  }
  .blog-review {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
  }
  .blog-reviews {
    padding: 1rem;
  }
  .blog-reviews__title {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
  }
  .blog-reviews [type=submit] {
    width: 100%;
  }
  .blog-review__img {
    width: 44px;
  }
  .blog-review__author {
    font-size: var(--fs-16);
  }
  .blog-review__date {
    font-size: var(--fs-14);
  }
  .blog-review__date > span:last-of-type {
    display: none;
  }
  .blog-review__content {
    max-height: 100px;
    transition: max-height var(--transition);
    position: relative;
  }
  .blog-review__content.active {
    max-height: 400px;
  }
  .blog-review__content a {
    position: absolute;
    z-index: 1;
    background: var(--bg-gray);
    right: 0;
    bottom: 0;
    font-size: var(--fs-14);
    line-height: 165%;
    color: var(--main-color);
  }
  .blog-author {
    padding: 1rem;
  }
  .blog-author p {
    font-size: var(--fs-14);
    margin: 0;
  }
  .blog-author__head {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  .blog-author__head img {
    width: 60px;
    flex-shrink: 0;
    margin-right: 0.5rem;
    margin-bottom: 0;
  }
  .blog-author__head h5 {
    margin: 0;
    font-size: var(--fs-18);
  }
}
@media (max-width: 400px) {
  .blog-info {
    font-size: var(--fs-14);
  }
}

.rounded {
  border-radius: var(--radius-big);
}
.mt-block {
  margin-top: 5.625rem;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-gray {
  color: #000000 !important;
  font-weight: 400 !important;
}

.text-gray h1, .text-gray h2, .text-gray h3, .text-gray h4, .text-gray h5, .text-gray h6 {
  font-weight: 400 !important;
}
.bg-white {
  background-color: var(--bg-white);
}
.bg-gray {
  background-color: var(--bg-gray);
}
.smb-5 {
  margin-bottom: 2.5rem;
}
.smt-5 {
  margin-top: 2.5rem;
}
.smb-6 {
  margin-bottom: 3rem;
}
.smt-6 {
  margin-top: 3rem;
}
.fs-12 {
  font-size: var(--fs-12);
}
.fs-14 {
  font-size: var(--fs-14);
}
.fs-16 {
  font-size: var(--fs-16);
}

.fs-18 {
  font-size: var(--fs-18);
}
.fs-20 {
  font-size: var(--fs-20);
}
.fs-22 {
  font-size: var(--fs-22);
}
.fs-24 {
  font-size: var(--fs-24);
}
.dropdown-center.languages {
  min-width: 70px;
  max-width: 120px;
  text-align: center;
  margin-left: 5px;
}
.dropdown-selected {
  display: block;
  max-width: 180px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 992px) {
  .dropdown-center.languages {
    min-width: 60px;
    max-width: 100px;
  }
  .dropdown-selected {
    padding: 5px 15px 5px 8px;
    font-size: 14px;
  }
}
@media (max-width: 576px) {
  .dropdown-center.languages {
    min-width: 50px;
    max-width: 90px;
  }
  .dropdown-selected {
    padding: 4px 12px 4px 6px;
    font-size: 13px;
  }
}
@media (max-width: 991px) {
  .header-buttons {
    flex-wrap: wrap !important;
  }
  .dropdown-center.languages {
    min-width: 90px !important;
    max-width: 100vw !important;
    width: auto !important;
  }
  .dropdown-selected {
    max-width: 100vw !important;
    overflow-x: auto !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }
}
@media (max-width: 500px) {
  .dropdown-selected {
    max-width: 100px;
    font-size: 11px;
  }
}
.header-buttons .dropdown-center.languages {
  min-width: 120px !important;
  max-width: none !important;
  width: auto !important;
  margin-left: 16px !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
}
.header-buttons .dropdown-selected {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: nowrap !important;
  margin-left: 0 !important;
  padding-right: 12px !important;
  position: relative;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  min-width: 100px;
  max-width: none !important;
  font-size: 14px;
}
.header_lang_lingl_link img {
  width: auto !important;
  height: auto !important;
  margin-right: 5px;
}
body .header-nav ul li {
  padding: 10px 0px;
}
body .header-nav ul li .sub-menu {
  -webkit-transition-property: none;
  -moz-transition-property: none;
  -o-transition-property: none;
  transition-property: none;
}
@media (min-width: 993px) {
  body .header .header-nav ul li:hover > .sub-menu,
  body .header .header-nav ul li .sub-menu:hover,
  body .header ul li:hover > .sub-menu,
  body .header ul li .sub-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
.header-nav .sub-menu {
  top: 100% !important;
  margin-top: 0 !important;
  transform: translateY(0) !important;
}
.header-nav ul li .sub-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}
.header-buttons .languages {
  position: unset;
}
.dropdown[aria-expanded] .dropdown-list {
  border-top: none;
}
.languages .dropdown-list {
  opacity: 0;
  background: #fff;
}
.languages .dropdown-list .col-lg-8_lang {
  overflow: auto;
  background: #fff;
  max-width: 100%;
}
.header_lang_lingl_link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  width: 150px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .d-lg-none .dropdown-list {
    position: relative;
    max-height: 330px;
    overflow-y: scroll;
    padding: 20px 0px 10px;
    border: none;
  }
  .languages .dropdown-list .col-lg-8_lang {
    max-width: 100% !important;
    overflow: auto !important;
    background: #fff !important;
  }
}
@media (max-width: 480px) {
  .header .logo-img {
    max-width: 100px !important;
  }
  .start-free-btn-mobile {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
  .btn-menu {
    width: 40px !important;
    height: 40px !important;
  }
}
@media (max-width: 768px) {
  .footer-top-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
  }
  .footer-bottom__left {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }
  .footer-bottom__right {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .footer-bottom__right .btn {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  .footer-logo img {
    max-width: 160px !important;
    height: auto !important;
  }
  .footer-dropdown {
    margin: 0 !important;
  }
  .footer-dropdown .dropdown-selected {
    padding: 10px 15px !important;
    font-size: 14px !important;
  }
  .footer-app {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin-top: 50px !important;
  }
  .footer-app a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-app img {
    max-width: 140px !important;
    height: auto !important;
  }
}
@media (max-width: 480px) {
  .footer-bottom__right .btn {
    max-width: 100% !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
  }
  .footer-logo img {
    max-width: 140px !important;
  }
  .footer-dropdown .dropdown-selected {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }
  .footer-app {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 40px !important;
  }
  .footer-app a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-app img {
    max-width: 120px !important;
    height: auto !important;
  }
}
 @media screen and (max-width: 576px) {
  .footer-app {
    margin-bottom: 30px !important;
  }
   .footer-dropdown .dropdown-selected {
	  width: 200px !important;
   }
}

/* Контейнер пагинации */
.page-numbers {
  display: flex;
  flex-wrap: wrap; /* Чтобы на мобилках не ломалось */
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

/* Общий стиль */
.page-numbers li a,
.page-numbers li span {
  display: inline-block;
  min-width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #333;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Текущая страница */
.page-numbers li .current {
  background: #2f80ed; /* фирменный синий */
  color: #fff;
  border-color: #2f80ed;
  font-weight: 600;
}

/* Ховер */
.page-numbers li a:hover {
  background: #2f80ed;
  color: #fff;
  border-color: #2f80ed;
}

/* Троеточие */
.page-numbers li .dots {
  background: transparent;
  border: none;
  color: #666;
  cursor: default;
}

/* Кнопка Следующая */
.page-numbers li .next {
  padding: 0 14px;
  min-width: auto;
}

/* ===== BLOG PAGE GRID & CARDS (from blog.php) ===== */

.main .row-cols-1.row-cols-md-2.row-cols-xl-3 {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
}

.main .row-cols-1.row-cols-md-2.row-cols-xl-3 > .col {
    display: flex;
    margin-bottom: 20px;
    padding: 0 10px;
    box-sizing: border-box;
    flex: 0 0 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.main .row-cols-1.row-cols-md-2.row-cols-xl-3 > .col > * {
    width: 100%;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .main .row-cols-1.row-cols-md-2.row-cols-xl-3 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1200px) {
    .main .row-cols-1.row-cols-md-2.row-cols-xl-3 > .col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.main .post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    box-sizing: border-box;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.main .post-card__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.main .post-card__content > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.main .post-card:hover .post-card__content > img {
    transform: scale(1.02);
}

.main .post-card__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

.main .post-card__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
    flex-shrink: 0;
}

.main .post-card__excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    min-height: 60px;
}

.main .post-card__summary {
    margin-top: auto;
    flex-shrink: 0;
}

.main .post-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main .post-card__author_img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.main .post-card__author span {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.main .post-card__author span span:first-child {
    font-weight: bold;
    color: #333;
}

.main .post-card__author span span:last-child {
    color: #666;
}

@media (max-width: 768px) {
    .main .post-card {
        min-height: 350px;
    }

    .main .post-card__content {
        padding: 15px;
    }

    .main .post-card__content > img {
        height: 180px;
    }

    .main .post-card__title {
        font-size: 16px;
    }

    .main .post-card__excerpt {
        min-height: 50px;
    }
}

/* ===== SINGLE POST CONTENT STYLES (from single.php) ===== */
.main .blog-post__content table{width:100%;border-collapse:collapse;margin-bottom:1em;display:table;overflow:visible}
.main .blog-post__content table th,.main .blog-post__content table td{padding:8px;border:1px solid #ddd;text-align:left;vertical-align:middle;white-space:normal;width:auto}
.main .blog-post__content table th{background-color:#f9f9f9;color:#333;font-weight:bold}
.main .blog-post__content table tr:nth-child(even){background-color:#f2f2f2}
.main .blog-post__content ol,.main .blog-post__content ul{margin-left:20px;padding-left:20px;margin-bottom:15px;list-style-type:decimal}
.main .blog-post__content li{margin-bottom:5px;display:list-item}
.main .blog-post__content li::before{content:none}
.main .blog-sidebar p{margin-bottom:10px}
.main .blog-sidebar a{color:#333;text-decoration:none;transition:color .3s ease}
.main .blog-sidebar a:hover{color:#007bff}
.main .blog-sidebar a.current{color:#007bff;font-weight:bold}

/* Blog content links styling */
.main .blog-post__content a {
  color: #007bff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.main .blog-post__content a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Classic Editor style formatting */
.main .blog-post__content {
  font-family: inherit;
  line-height: 1.6;
  font-size: inherit;
  color: inherit;
}

.main .blog-post__content p {
  margin-bottom: 1em;
  text-align: left;
  text-indent: 0;
}

.main .blog-post__content h1, .main .blog-post__content h2, .main .blog-post__content h3,
.main .blog-post__content h4, .main .blog-post__content h5, .main .blog-post__content h6 {
  font-family: inherit;
  font-weight: 700;
  color: inherit;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.3;
  text-align: left;
  border-bottom: none;
  padding-bottom: 0;
}

.main .blog-post__content h1 {
  font-size: 2.5rem;
}

.main .blog-post__content h2 {
  font-size: 2.2rem;
}

.main .blog-post__content h3 {
  font-size: 1.8rem;
}

.main .blog-post__content h4 {
  font-size: 1.5rem;
}

.main .blog-post__content blockquote {
  border-left: 4px solid #ccc;
  background-color: transparent;
  padding: 10px 20px;
  margin: 1em 0;
  font-style: italic;
  font-size: inherit;
  color: inherit;
  box-shadow: none;
}

.main .blog-post__content blockquote p {
  margin-bottom: 0;
  text-indent: 0;
}

.main .blog-post__content ul, .main .blog-post__content ol {
  margin: 1em 0;
  padding-left: 40px;
}

.main .blog-post__content li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.main .blog-post__content ul li {
  list-style-type: disc;
  color: inherit;
}

.main .blog-post__content ol li {
  list-style-type: decimal;
  color: inherit;
}

.main .blog-post__content strong, .main .blog-post__content b {
  font-weight: 700;
  color: inherit;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.main .blog-post__content em, .main .blog-post__content i {
  font-style: italic;
  color: inherit;
}

.main .blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  margin: 1em 0;
  display: block;
}

.main .blog-post__content img.alignleft {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}

.main .blog-post__content img.alignright {
  float: right;
  margin-left: 1em;
  margin-bottom: 1em;
}

.main .blog-post__content img.aligncenter {
  display: block;
  margin: 1em auto;
}

.main .blog-post__content .wp-caption {
  max-width: 100%;
  margin: 1em 0;
}

.main .blog-post__content .wp-caption-text {
  font-size: 14px;
  color: inherit;
  text-align: center;
  font-style: italic;
  margin-top: 5px;
}

.main .blog-post__content pre {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 1em;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  margin: 1em 0;
}

.main .blog-post__content code {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 2px 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: inherit;
}

.main .blog-post__content hr {
  border: none;
  height: 1px;
  background: #ccc;
  margin: 2em 0;
}

/* Responsive styles for blog content */
@media (max-width: 768px) {
  .main .blog-post__content {
    font-size: inherit;
    line-height: 1.6;
  }

  .main .blog-post__content p {
    text-indent: 0;
    margin-bottom: 1em;
  }

  .main .blog-post__content h1 {
    font-size: 2rem;
    margin-top: 1.5em;
  }

  .main .blog-post__content h2 {
    font-size: 1.8rem;
    margin-top: 1.5em;
  }

  .main .blog-post__content h3 {
    font-size: 1.5rem;
    margin-top: 1.5em;
  }

  .main .blog-post__content h4 {
    font-size: 1.3rem;
    margin-top: 1.5em;
  }

  .main .blog-post__content blockquote {
    padding: 10px 15px;
    margin: 1em 0;
  }

  .main .blog-post__content ul, .main .blog-post__content ol {
    padding-left: 30px;
    margin: 1em 0;
  }

  .main .blog-post__content img {
    margin: 1em 0;
  }

  .main .blog-post__content img.alignleft,
  .main .blog-post__content img.alignright {
    float: none;
    margin: 1em auto;
    display: block;
  }
}

.main .blog-sidebar__title{font-size:18px;font-weight:bold;margin-bottom:15px;color:#333}
.main .blog-sidebar__nav{position:sticky;top:20px}
.main .blog-sidebar__nav ul{list-style:none;padding:0;margin:0}
.main .blog-sidebar__nav li{margin-bottom:8px}
.main .blog-sidebar__nav a{display:block;padding:5px 0;color:#666;text-decoration:none;font-size:14px;line-height:1.4;transition:all 0.3s ease}
.main .blog-sidebar__nav a:hover{color:#007bff;padding-left:5px}
.main .blog-sidebar__nav a.current{color:#007bff;font-weight:bold;padding-left:5px}

/* ПК: крошки слева, H1 по центру макс 2 строки */
.main .blog-post__intro .breadcrumbs-custom {
  flex: 0 0 100%;
  max-width: 100%;
}
.main .blog-single-breadcrumbs__text {
  text-align: left;
}
.main .blog-post__intro .col-lg-16.col-xl-12 {
  flex: 0 0 100%;
  max-width: 90%;
}
.main .blog-post__intro h1 {
  text-align: center;
  text-wrap: balance;
}
/* Мобилка */
@media (max-width: 768px) {
  .main .blog-post__intro > .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
  }
  .main .blog-post__intro .breadcrumbs-custom {
    padding-top: 90px !important;
    padding-bottom: 15px !important;
  }
  .main .blog-post__intro .breadcrumbs-custom .container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }
  .main .blog-post__intro .breadcrumbs-custom .row {
    margin-left: 0;
    margin-right: 0;
  }
  .main .blog-post__intro .breadcrumbs-custom .col-12 {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }
  .main .blog-single-breadcrumbs__text {
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .main .blog-single-breadcrumbs__text a,
  .main .blog-single-breadcrumbs__text span {
    white-space: normal;
  }
  .main .blog-single-breadcrumbs__text span[style*="margin"] {
    margin-left: 4px !important;
    margin-right: 4px !important;
  }
  .main .blog-post__intro .col-lg-16.col-xl-12 {
    max-width: 100%;
  }
  .main .blog-post__intro h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    text-wrap: balance;
  }
}