html {
  scroll-padding-top: 200px;
  /* Укажите точную высоту вашего хедера */
  scroll-behavior: smooth;
  /* Плавная прокрутка (опционально) */
}

body {
  font-family: "Open Sans", sans-serif;
  color: #1b1b1b;
  font-size: 16px;
}

h1 {
  font-family: "DM Sans", sans-serif;
  margin-top: 0;
  line-height: 1;
  animation: slideUp 2s ease forwards;
  opacity: 0;
  /* Начальное состояние - невидим */
}

h1.entry-title {
  font-size: 48px;
}

h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 48px;
  line-height: 1.2;
}

p,
span {
  font-family: "Inter", sans-serif;
  /* font-family: "DM Sans", sans-serif; */
}

a {
  color: #333;
  font-family: "Inter", sans-serif;
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  color: #333;
  outline: none;
}

a:visited {
  color: #000;
}

button {
  font-family: "Inter", sans-serif;
  border: none;
  padding: 0;
  border-radius: 0;
}

input {
  font-family: "DM Sans", sans-serif;
}

#page figcaption {
  margin-top: 20px;
  font-style: italic;
}

.list_number {
  list-style: none;
  counter-reset: number;
  padding-left: 0;
}

.list_number li {
  counter-increment: number;
  position: relative;
  padding-left: 50px;
  margin-bottom: 25px;
}

.list_number li::before {
  content: counter(number);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  background: #fff;
  color: #d0002b;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #d0002b;
}

.list_number strong::before {
  content: "";
  width: 1px;
  height: 57%;
  background: transparent;
  border-left: 1px dashed #d0002b;
  position: absolute;
  top: 48px;
  left: 17px;
}

.list_number li:last-child strong::before {
  display: none;
}

.m-b-0 {
  margin-bottom: 0;
}

.m-t-0 {
  margin-top: 0;
}

.m-l-0 {
  margin-left: 0;
}

.m-r-0 {
  margin-right: 0;
}

.p-b-0 {
  padding-bottom: 0;
}

.p-t-0 {
  padding-top: 0;
}

.p-l-0 {
  padding-left: 0;
}

.p-r-0 {
  padding-right: 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.wp-block-uagb-container.container {
  max-width: 1440px !important;
  margin: 0 auto !important;
  position: relative;
}

.bottom-red {
  background: #d0002b;
  color: #fff;
  padding: 10px 8px;
  border-radius: 30px;
  width: 233px;
  text-align: center;
  border: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.bottom-red:visited {
  color: #fff;
}

.bottom-red:hover {
  background: #fff;
  border-color: #d0002b;
  border: 1px solid #d0002b;
  color: #d0002b;
}

header#masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #efefefe6;
  backdrop-filter: blur(5px);
  padding: 7px 24px;
  border-radius: 10px;
  position: fixed;
  max-width: 1440px;
  top: 10px;
  width: 100%;
  z-index: 999;
}

.main-navigation {
  width: 100%;
  display: flex;
  justify-content: right;
}

/* Выпадающее меню */
.dropdown-menu-navigation {
  display: inline-block;
  margin-left: 395px;
}

.dropdown-toggle {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.dropdown-menu-block {
  display: none;
  position: fixed;
  max-width: 1440px;
  margin: 0 auto;
  background-color: #efefefe8;
  backdrop-filter: blur(5px);
  z-index: 9999;
  right: 0;
  left: 0;
  border-radius: 10px;
  overflow: visible;
  top: 10px;
  width: 100%;
}

.dropdown-menu-block.toggled {
  display: flex;
}

.dropdown-menu-double {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding: 20px;
}

button.dropdown-menu-close {
  border: none;
  background: #efefef00;
  padding: 0;
}

.dropdown-menu-item {
  padding: 120px 0 0 0;
}

.dropdown-menu-item:nth-child(4) {
  display: none;
}

.dropdown-menu-item p {
  font-size: 36px;
  font-weight: 500;
  padding: 0;
  margin: 0 0 10px 0;
  font-family: "Open Sans", sans-serif;
}

.dropdown-menu-item-contacts-desk p {
  font-size: 36px;
  font-weight: 500;
  padding: 0;
  margin: 0 0 10px 0;
  font-family: "Open Sans", sans-serif;
}

.dropdown-menu-double .bottom-red {
  width: 200px;
}

.dropdown-menu-item-contacts-mobile {
  display: none;
}

.dropdown-menu-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 20px 150px 50px 25px;
}

.dropdown-menu-item-contacts-desk {
  padding: 120px 0 0 0;
}

/* Стили для вложенного меню */
.dropdown-content {
  padding: 10px 0;
  list-style: none;
  margin: 0;
}

.dropdown-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#dropdown-menu-content li {
  padding: 5px 0;
}

.dropdown-content a {
  display: flex;
  padding: 0;
  font-size: 20px;
  font-weight: 500;
  align-items: center;
  color: #000;
  gap: 20px;
}

.dropdown-content a:hover {
  color: #d0002b;
}

.submenu-icon {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.menu-item-has-children.open .submenu-icon {
  transform: rotate(45deg);
}

.main-navigation ul {
  display: flex;
  gap: 15px;
}

.main-navigation ul a:hover {
  color: #d0002b;
}

.main-navigation ul a span {
  color: #fff;
  background: #d0002b;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 30px;
}

.site-navigation-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dropdown-content .sub-menu {
  display: none;
  left: 100%;
  top: 0;
  min-width: 200px;
  z-index: 1001;
  padding: 10px 0;
}

.sub-menu.show {
  display: block;
}

.dropdown-content .sub-menu.toggled {
  display: block;
}

.dropdown-content .sub-menu a {
  padding: 0;
  color: #717171;
  font-size: 18px;
  font-family: "DM Sans", sans-serif;
}

.dropdown-content .sub-menu a:hover {
  color: #d0002b;
}

.dropdown-content .menu-item-has-children > a span {
  float: right;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.dropdown-content .menu-item-has-children > a span.toggled {
  transform: rotate(180deg);
}

.company-content {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 500;
}

.company-content li {
  padding: 5px 0;
}

.company-content li a:hover {
  color: #d0002b;
}

.cases-content li a {
  color: #000;
}

.cases-content li a:hover {
  color: #d0002b;
}

.cases-content {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 500;
}

.cases-content li {
  padding: 5px 0;
  line-height: 1;
}

.cases-content li a {
  color: #000;
}

.dropdown-menu-item a.phone-block {
  font-size: 24px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  color: #000;
}

.dropdown-menu-item a.phone-block:hover {
  color: #d0002b;
}

.dropdown-menu-item p.address-block {
  font-size: 14px;
}

.dropdown-menu-item a.email-block {
  font-size: 24px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  color: #000;
}

.dropdown-menu-item a.email-block:hover {
  color: #d0002b;
}

.dropdown-menu-item-contacts-desk a.phone-block {
  font-size: 24px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  color: #000;
}

.dropdown-menu-item-contacts-desk a.phone-block:hover {
  color: #d0002b;
}

.dropdown-menu-item-contacts-desk p.address-block {
  font-size: 14px;
}

.dropdown-menu-item-contacts-desk a.email-block {
  font-size: 24px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  color: #000;
}

.dropdown-menu-item-contacts-desk a.email-block:hover {
  color: #d0002b;
}

/* --- HERO ---*/

.hero-block {
  background-image:
    linear-gradient(180deg, #0000004d), url(../img/hero-fone.gif);
  background-position:
    0 0,
    0 0;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  /* min-height: 784px; */
  padding-top: 185px;
  padding-bottom: 50px;
  color: #fff;
  z-index: 1;
  position: relative;
}

.hero-block-mobile {
  display: none;
}

.hero-block h1 {
  color: #fafafa;
  font-size: 64px;
  margin-bottom: 16px;
}

.hero-wrapper {
  display: flex;
  align-items: flex-start;
  margin-top: 85px;
}

.hero-wrapper .hero-wrapper-item:last-child {
  flex: 0 0 27%;
}

.hero-wrapper .hero-wrapper-item:last-child img {
  max-width: fit-content;
}

.title-block-container {
  display: grid;
  grid-template-columns: 1fr auto;
  /* или: minmax(0, 1fr) auto */
  gap: 20px;
  /* отступ между колонками */
  align-items: start;
  /* выравнивание по верху */
}

.title-block-item:first-child {
  min-width: 0;
  /* предотвращает переполнение флекс/грид-элемента */
}

.title-block-item:last-child {
  width: 330px;
}

.title-block-item:last-child {
  display: flex;
  align-items: baseline;
  justify-content: end;
}

.title-block-content {
  background: #d0002b;
  padding: 10px 24px;
  border-radius: 30px;
  max-width: 85%;
}

.title-block-namber {
  font-size: 64px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 50px;
}

.title-block-namber span {
  font-size: 16px;
  font-weight: 400;
}

.title-block-text {
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.case-hero-wrapper a {
  color: #fff;
}

.hero-description-container {
  padding-bottom: 48px;
}

.hero-description-mobile {
  display: none;
}

p.hero-description {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 15px;
}

.case-hero-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  background-color: #1b1b1b;
  padding: 18px;
  border-radius: 30px;
}

.hero-wrapper .case-hero-item:first-child {
  display: flex;
}

.case-hero-title {
  margin: 0;
  font-size: 12px;
  padding-top: 10px;
}

.case-hero-description {
  font-size: 20px;
  margin: 0;
  line-height: normal;
  margin-top: 5px;
  padding-bottom: 5px;
}

a.hero-button {
  padding: 15px 16px;
  border-radius: 35px;
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 20px;

  color: #1b1b1b;
  background-color: #f3f4f8;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

a.hero-button:hover {
  background-color: #d0002b;
  color: #fff;
}

a.hero-button span {
  background: #d0002b;
  padding: 10px;
  border-radius: 50%;
  height: 45px;
}

a.hero-button:hover span {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  background: #d0002b;
}

a.hero-button span svg path {
  /* transition: stroke 0.3s ease; */
  stroke: #fff;
}

a.hero-button:hover span svg path {
  stroke: #fff;
}

/* Основной контейнер слайдера */
.hero-slider.custom-slider {
  position: relative;
  max-width: 558px;
  margin: 0 auto;
}

/* Контейнер для слайдов */
.slider-container {
  overflow: hidden;
  border-radius: 15px;
  height: 137px !important;
  max-width: 537px;
}

/* Трек для слайдов */
.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  padding-left: 3px;
  padding-right: 17px;
  gap: 36px;
  min-width: 556px;
}

/* Стили для слайдов */
.slide {
  flex: 0 0 auto;
  width: calc(111% - 76px);
  background-color: #f3f4f8;
  border-radius: 30px;
  padding: 6px 15px;
  color: #000;
  text-align: center;
  min-height: 137px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.slide span {
  flex-shrink: 0;
  margin-bottom: 0px;
  text-align: left;
  margin-top: 5px;
  font-size: 24px;
}

.slide p {
  text-align: left;
  margin-bottom: 10px;
  line-height: 1.2;
  margin-top: auto;
  width: 400px;
}

/* Счетчик слайдов */
.slider-counter {
  text-align: center;
  margin: 15px 0;
  font-weight: 500;
  font-size: 16px;
  position: absolute;
  color: #000;
  right: 35px;
  top: 0;
}

/* Кнопки навигации */
.slider-prev,
.slider-next {
  position: absolute;
  top: 79%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #000;
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0 5px;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-prev {
  left: 443px;
}

.slider-next {
  right: 31px;
}

/* --- AGENCE ---*/

.agence-block {
  margin-top: 42px;
}

.agence-top-container {
  display: grid;
  grid-template-columns: 34% 66%;
}

.agence-top-container-item h2 {
  font-size: 48px;
  line-height: 120%;
  margin-top: 25px;
  margin-bottom: 25px;
}

.agence-top-container-item h2 span {
  color: #717171;
}

.agence-top-container-item p {
  width: 65%;
  line-height: 1.2;
}

.agence-bottom-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 25px;
  align-items: stretch;
  margin-top: 13px;
}

.agence-bottom-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  padding: 10px 27px;
  padding-bottom: 0;
  line-height: 1.3;
}

.agence-bottom-card-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 0;
  padding-bottom: 15px;
  flex: 1;
}

.agence-bottom-card.card-one {
  background: #f3f4f8;
}

.agence-bottom-card.card-two {
  background: #1b1b1b;
  color: #fff;
}

.agence-bottom-card.card-three {
  background: #d0002b;
  color: #fff;
}

img.agence-bottom-team {
  width: 79%;
  margin-top: 50px;
}

/* --- CASES ---*/

.cases-block {
  margin-top: 95px;
}

.single-service .cases-block h2 {
  width: 55%;
}

.cases-block-container {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 22px;
}

.cases-block-card__image {
  position: absolute;
  top: 105px;
  left: 20px;
  height: 80%;
  object-fit: cover;
  object-position: right bottom;
  /* z-index: 111; */
}

/* Полупрозрачный слой поверх фона */
.cases-block-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.cases-block-card:hover::before {
  background-color: rgba(0, 0, 0, 0.5);
}

.cases-block-card:nth-child(2) {
  background-color: none;
}

.cases-block-card:nth-child(2) img {
  top: 138px;
  left: 58px;
  height: 65%;
}

.cases-block-card:nth-child(3) img {
  left: 120px;
  width: 90%;
  height: auto;
  top: 60px;
}

.cases-block-card__content {
  position: relative;
  z-index: 3333;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.cases-block-card:nth-child(1) {
  grid-column: span 6;
}

.cases-block-card:nth-child(2) {
  grid-column: span 5;
}

.cases-block-card:nth-child(3) {
  grid-column: span 4;
}

.cases-block-card:nth-child(4) .cases-block-card__image {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  object-fit: fill;
  /* object-position: right bottom; */
  /* z-index: 111; */
}

.cases-block-card:nth-child(4) {
  grid-column: span 4;
}

.cases-block-card:nth-child(5) {
  grid-column: span 3;
  color: #000;
}

.cases-block-card:nth-child(5) h2 {
  flex: 1;
}

.cases-block-card:nth-child(5) .cases-block-text {
  margin-bottom: -32px;
}

.cases-block-card:nth-child(5):hover {
  background-color: #d0002b !important;
  color: #fff;
}

.cases-block-card:nth-child(5):hover svg path {
  stroke: #fff;
  fill: #fff;
}

.cases-block-card:nth-child(5):hover::before {
  background-color: rgba(0, 0, 0, 0);
}

.cases-block-card {
  display: flex;
  flex-direction: column;
  border-radius: 35px;
  overflow: hidden;
  color: #fff;
  padding: 30px;
  position: relative;
  width: auto;
  overflow: hidden;
  height: 382px;
}

.cases-block-title {
  font-size: 24px;
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.2;
}

.cases-block-title-all {
  font-size: 36px;
}

.cases-block-text {
  flex: 1;
  margin-bottom: 20px;
  width: 63%;
  font-weight: 300;
  line-height: 1.2;
}

.cases-block-text-end {
  margin-top: 192px;
  font-size: 32px;
}

.tags-grid {
  display: flex;
  gap: 10px;
}

.tags-grid-item {
  background: #fff;
  color: #1b1b1b;
  padding: 10px;
  border-radius: 30px;
}

/* --- PROCESS ---*/

.process-block {
  margin-top: 95px;
}

.process-block h2 {
  line-height: 1.1;
  margin: 65px 0;
  width: 35%;
  margin-top: 0;
}

/* Контейнер карусели */
.caorusel-process {
  overflow: hidden;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Внутренний контейнер */
.carousel-inner {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-left: 210px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-inner::-webkit-scrollbar {
  display: none;
}

/* Стили карточек */
.process-card {
  min-width: 354px;
  min-height: 382px;
  background: #f3f4f8;
  border-radius: 30px;
  padding: 24px;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* .process-card:hover {
  transform: translateY(-5px);
} */

.card-number {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 15px;
  padding: 2px;
  border-radius: 30px;
  background: #d0002b;
  width: 62px;
  text-align: center;
  line-height: 1.2;
}

.process-card h3 {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1;
  flex: 1;
  margin-top: 55px;
  letter-spacing: -5%;
  font-weight: 500;
}

.process-card p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.2;
}

/* --- RESULT ---*/

.result-block {
  margin-top: 115px;
}

.result-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.result-container-item {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 30px;
}

.result-container-item:first-child {
  padding: 20px 20px 20px 0;
}

.result-container-item h2 {
  line-height: 1;
  margin-top: 0;
}

.result-container-title {
  font-size: 32px;
  margin-bottom: 0;
  margin-top: 30px;
  align-self: flex-start;
  font-weight: 500;
  line-height: 1.1;
}

.result-container-desc {
  align-self: flex-start;
  line-height: 1.2;
  flex: 1;
}

.image-container {
  max-width: 403px;
  height: auto;
  position: relative;
}

.image-container:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/mask-pattern-nout.png");
  background-size: 100%;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}

.image-container-2 {
  max-width: 410px;
  height: auto;
  position: relative;
}

.image-container-2:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/tablet-mask.png");
  background-size: 100%;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}

.image-container-3 {
  max-width: 343px;
  height: auto;
  position: relative;
}

.image-container-3:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/phone-call-mask.png");
  background-size: 100%;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}

.image-container-4 {
  max-width: 349px;
  height: auto;
  position: relative;
}

.image-container-4:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/planshet-mask.png");
  background-size: 100%;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}

.result-container-link {
  background: #f3f4f8;
  padding: 9px 15px;
  border-radius: 30px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 25px;
  width: 100%;
  justify-content: space-between;
  background-size: 0 100%;
  background-repeat: no-repeat;
  background-position: left;
  position: relative;
  overflow: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.result-container-link:hover {
  background: #d0002b;
  color: #fff;
}

.result-container-link span {
  background: #d0002b;
  padding: 10px;
  border-radius: 50%;
  height: 45px;
}

.result-container-link:hover span {
  background: #d0002b;
}

.result-container-link:hover span svg path {
  stroke: #fff;
}

/* --- SERVICES ---*/

.services-block,
.services-archive {
  margin-top: 100px;
}

.services-archive #breadcrumbs a {
  color: #000;
}

.services-archive__title {
  font-size: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 65px;
}

.service-card {
  background: #f3f4f8;
  padding: 24px;
  border-radius: 30px;
  min-height: 400px;
}

.service-card__title {
  font-size: 32px;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.1;
}

.service-card:hover .service-card__title {
  color: #d0002b;
}

.service-card__content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card__excerpt {
  flex: 1;
}

.service-card__tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding-top: 50px;
}

.service-card__tag {
  background: #fff;
  padding: 5px 10px;
  border-radius: 30px;
  border: 1px solid #d0002b;
  font-size: 12px;
}

.service-card__tag:hover {
  background: #d0002b;
  color: #fff;
}

.services-single {
  margin-top: 100px;
}

.services-wrapper {
  display: grid;
  grid-template-columns: 30% 66%;
  gap: 50px;
}

.services-left h2 {
  margin: 0;
  line-height: 1.1;
}

.services-left-desc {
  color: #717171;
}

.services-rigth {
  display: flex;
  flex-direction: column;
}

.services-rigth-item {
  display: flex;
  align-items: end;
  border-bottom: 1px solid;
  padding: 50px 0;
}

.services-rigth-item:first-child {
  border-top: 1px solid;
}

.services-rigth-title {
  flex: 0 0 450px;
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
}

.services-rigth-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.services-rigth-tag {
  border: 1px solid #d0002b;
  color: #717171;
  padding: 5px 7px;
  border-radius: 30px;
  margin: 0;
  font-size: 12px;
}

.services-rigth-tag:hover {
  background: #d0002b;
  color: #fff;
  cursor: pointer;
}

.services-single .yoast-breadcrumbs {
  margin-bottom: 100px;
}

.taxonomy-service_tag.wp-block-post-terms {
  display: flex;
  gap: 5px;
}

.taxonomy-service_tag.wp-block-post-terms a {
  background: #fff;
  color: #000 !important;
  padding: 5px 10px;
  border-radius: 30px;
}

.services-single .breadcrumb_last {
  color: #d0002b !important;
}

.wp-block-uagb-buttons
  .uagb-block-ca4f316a
  .uagb-buttons-repeater
  .uagb-button__icon-position-after {
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  transform: rotate(-45deg);
}

.wp-block-uagb-buttons
  .uagb-block-ca4f316a
  .uagb-buttons-repeater
  .uagb-button__icon
  > svg {
  fill: #d0002b;
}

/* --- REVIEWS ---*/

.reviews-block {
  margin-top: 98px;
  position: relative;
}

/* Стили для карусели отзывов */

.reviews-container {
  width: 100%;
}

.reviews-container .carousel-inner {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-left: 0;
}

.reviews-container .carousel-inner::-webkit-scrollbar {
  display: none;
}

.carousel-buttons {
  position: absolute;
  bottom: 20px;
  /* Расстояние от низа */
  right: 20px;
  /* Расстояние от правого края */
  display: flex;
  gap: 10px;
  /* Расстояние между кнопками */
  z-index: 10;
}

/* Или для размещения внизу справа */
.carousel-buttons {
  position: absolute;
  top: 5px;
  right: 0;
  display: flex;
  gap: 10px;
  z-index: 10;
}

/* Стили кнопок */
.carousel-prev,
.carousel-next {
  width: 50px;
  height: 50px;
  background: #d0002b;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #fff;
  border: 1px solid #d0002b;
}

.carousel-prev svg path,
.carousel-next svg path {
  width: 20px;
  height: 20px;
  stroke: white;
}

.carousel-prev:hover svg path,
.carousel-next:hover svg path {
  width: 20px;
  height: 20px;
  stroke: #d0002b;
}

/* Состояние disabled */
.carousel-prev.disabled,
.carousel-next.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-prev.disabled:hover,
.carousel-next.disabled:hover {
  background: rgba(0, 0, 0, 0.5);
}

.review-card {
  flex: 0 0 500px;
  background: #f3f4f8;
  border-radius: 30px;
  padding: 40px 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.review-card p {
  line-height: 1.2;
}

.review-avatar {
  margin-bottom: 40px;
}

.review-link {
  background: #d0002b;
  border: 1px solid #d0002b;
  color: #fff;
  padding: 10px 30px;
  border-radius: 30px;
  margin-top: 58px;
  display: inline-block;
}

.review-link:visited {
  color: #fff;
}

.review-link:hover {
  background: #fff;
  border-color: #d0002b;
  border: 1px solid #d0002b;
  color: #d0002b;
}

/* --- CONTACT-FORM ---*/

.contact-form-block {
  margin-top: 120px;
}

.contact-form-block .container {
  background: #1b1b1b;
  color: #fff;
  border-radius: 30px;
}

.contact-form {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding-bottom: 25px;
}

.contact-form-title {
  margin-top: 25px;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact-form-desc {
  text-align: center;
  width: 69%;
  margin-top: 0;
  margin-bottom: 20px;
}

.form-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 5px;
}

.wpcf7-form p {
  margin-top: 10px;
  margin-bottom: 0;
}

.single-service .servise-form-grid p {
  margin-top: 10px;
  margin-bottom: 10px;
}

.single-service .servise-form-grid input {
  min-width: 312px;
}

.custom-submit-wrapper p {
  margin-top: 7px;
  margin-bottom: -20px;
}

.form-input-grid p {
  margin-top: 0;
}

.form-input-grid input {
  height: 75px;
  border-radius: 35px;
  padding: 20px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
}

.wpcf7-textarea {
  overflow-y: hidden;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}

.acceptance-form:checked {
  accent-color: #ff0000;
  /* Красный цвет для современных браузеров */
}

.contact-form textarea {
  border-radius: 60px;
  padding-top: 23px;
  padding-left: 20px;
}

span.file-name {
  padding-top: 12px;
  padding-left: 10px;
  color: #d0002b;
  height: 20px;
  display: inline-block;
}

input[type="submit"] {
  background: #d0002b;
  border: none;
  width: 100%;
  border-radius: 35px;
  height: 75px;
  color: #fff;
  text-align: left;
  padding-left: 25px;
  cursor: pointer;
}

.custom-submit-wrapper {
  position: relative;
}

span.svg-form {
  background: #fff;
  display: inline-block;
  padding: 6px 6px 0 6px;
  border-radius: 30px;
  position: absolute;
  top: 21px;
  right: 23px;
}

.svg-form path {
  stroke: #ff0000;
}

.wpcf7-form-control .wpcf7-list-item {
  display: flex;
  justify-content: center;
}

.wpcf7-form-control .wpcf7-list-item > label {
  display: flex;
  gap: 10px;
}

.wpcf7-form-control .wpcf7-list-item > label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #d0002b;
}

.wpcf7-form-control-wrap[data-name="your-message"] {
  bottom: -3px;
}

.file-form {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.wpcf7-form-control-wrap.file-281 {
  position: relative;
  display: inline-block;
  margin: 10px 0;
}

.custom-file-button {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  padding: 25px 24px;
  background: #fff;
  color: #717171;
  border-radius: 35px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
}

img.wp-smiley,
img.emoji {
  height: 1.5em !important;
  width: 1.5em !important;
}

/* --- OUTSORCING ---*/

.outsourc-block {
  margin-top: 120px;
}

.outsourc-block .container {
  background: #f3f4f8;
  border-radius: 30px;
  padding: 32px;
}

.outsourc-container {
  display: flex;
  gap: 50px;
}

.outsourc-item {
  flex: 0 0 50%;
}

.outsourc-desc {
  margin: 0;
}

.outsourc-container h2 {
  line-height: 1.1;
  margin-bottom: 20px;
}

.outsourc-link {
  background: #d0002b;
  padding: 17px 26px;
  width: 373px;
  display: inline-flex;
  border-radius: 35px;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  background-size: 0 100%;
  background-repeat: no-repeat;
  background-position: left;
  transition: background-size 0.6s cubic-bezier(0.25, 0.9, 0.3, 1.1);
  position: relative;
  overflow: hidden;
  /* border: 1px solid #d0002b; */
  color: #fff;
}

.outsourc-link.button-contacts {
  width: 30% !important;
  margin-right: auto;
}

.outsourc-link:visited {
  color: #fff;
}

.outsourc-link:hover {
  /* border: 1px solid #d0002b; */
  color: #1b1b1b;
  background: #fff;
}

.outsourc-link:hover span {
  background: #d0002b;
}

.svg-outsourc {
  background: #fff;
  padding: 6px 6px 0 6px;
  border-radius: 30px;
}

.outsourc-link:hover .svg-outsourc svg path {
  stroke: #fff;
}

.outsourc-container .outsourc-item:last-child {
  display: flex;
  justify-content: flex-end;
  padding-right: 50px;
}

.outsourc-item img {
  max-width: 100%;
  height: auto;
}

/* --- FOOTER ---*/

.site-footer-mobile {
  display: none;
}

.site-footer {
  margin-top: 65px;
  padding-top: 60px;
  padding-bottom: 60px;
  background: #f4f4f4;
}

.site-info-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 235px;
}

.footer-col:nth-child(2) {
  display: flex;
  justify-content: center;
  padding-left: 73px;
}

.footer-col:nth-child(5) {
  display: flex;
  justify-content: end;
}

.footer-navgation {
  display: flex;
  justify-content: space-between;
}

.footer-adress {
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 6px;
}

.arda {
  margin-top: 24px;
  margin-bottom: 24px;
}

.politic,
.copyright {
  font-size: 12px;
}

.politic {
  margin-bottom: 0;
  display: inline-block;
}

.politic:hover {
  color: #d0002b;
}

.copyright {
  margin-top: 0;
}

.site-info-container li {
  padding-bottom: 2px;
}

.site-info-container li a span {
  color: #fff;
  background: #d0002b;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 30px;
}

.footer-navgation-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-navgation-services ul {
  padding: 0;
}

.footer-navgation-services ul li a {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.site-info-container li a {
  font-size: 14px;
  line-height: 1.2;
  font-family: "DM Sans", sans-serif;
  color: #1b1b1b;
}

.footer-navgation-nav a:hover {
  color: #d0002b;
}

.footer-contacts a:hover {
  color: #d0002b;
}

.footer-navgation-services ul li a span {
  display: none;
}

.footer-title {
  margin-top: 0;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-navgation-services {
  padding-left: 41px;
}

.footer-contacts {
  padding-left: 18px;
}

.social {
  padding-left: 50px;
}

.phone-block,
.email-block {
  font-size: 24px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
}

.email-block {
  margin-bottom: 20px;
  display: inline-block;
}

.hours-block {
  margin-top: 5px;
  font-weight: 300;
  font-size: 14px;
}

.social-container {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 18px;
}

.social-container.social-container-end {
  padding-left: 0;
}

.social-container a {
  display: inline-flex;
  line-height: 1;
  transition: transform 0.3s ease;
  padding: 5px;
  background: #fff;
  border-radius: 5px;
}

a.youtube-icon-link {
  padding-top: 10px;
  padding-bottom: 10px;
}

.social-container a:hover {
  background: #d0002b;
}

/* --- АНИМАШКИ ---*/

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
    /* Начальная позиция - ниже на 50px */
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    /* Конечная позиция */
  }
}

/* ARCINE CASES */

.mobile-filter {
  display: none;
  width: 100%;
  margin-bottom: 20px;
}

/* Кастомный селект */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #d0002b;
  border: 1px solid #d0002b;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.custom-select__selected {
  color: white;
  font-size: 16px;
  font-weight: 500;
}

.custom-select__arrow {
  color: white;
  font-size: 12px;
  transition: transform 0.3s;
}

.custom-select.open .custom-select__arrow {
  transform: rotate(180deg);
}

/* Выпадающий список */
.custom-select__options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.custom-select.open .custom-select__options {
  display: block;
}

/* Опции */
.custom-select__option {
  padding: 12px 35px;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.custom-select__option:last-child {
  border-bottom: none;
}

.custom-select__option:hover {
  background: #f0f7ff;
  color: #d0002b;
  padding-left: 25px;
}

.custom-select__option.selected {
  background: #e3f2fd;
  color: #d0002b;
  font-weight: 700;
  position: relative;
}

.custom-select__option.selected::before {
  content: "✓";
  position: absolute;
  left: 15px;
  color: #d0002b;
}

.cases-archive {
  padding-top: 104px;
}

.cases-archive__title {
  font-size: 48px;
  width: 70%;
  margin-bottom: 45px;
}

.cases-filter {
  display: flex;
  justify-content: flex-start;
  gap: 55px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cases-filter__btn {
  cursor: pointer;
  background: #fff;
  transition: all 0.3s;
  font-weight: 600;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
}

.cases-filter__btn:hover,
.cases-filter__btn:focus,
.cases-filter__btn--active {
  color: #d0002b;
  border-bottom: 2px solid #d0002b;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 10px;
  margin-top: 55px;
}

.case-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.case-card--regular .case-card__tags {
  position: absolute;
  top: -25%;
}

.case-card--regular .case-card__tag {
  background: #fff;
  padding: 5px 10px;
  border-radius: 30px;
}

.case-card--regular .case-card__excerpt {
  width: 100%;
}

.case-card--regular .case-card__excerp p {
  margin-top: 0;
}

.case-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.case-card--featured:hover::before {
  background-color: rgba(0, 0, 0, 0.5);
}

.case-card--regular:hover h3 {
  color: #d0002b;
}

.case-card__image-wrapper {
  position: relative;
}

.case-card__image-tags {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px;
  z-index: 2;
}

.case-card__image-tag {
  background: #fff;
  padding: 5px 10px;
  border-radius: 30px;
}

.case-card__image {
  overflow: hidden;
  border-radius: 30px;
}

.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

img.case-card__img {
  height: 359px;
  border-radius: 30px;
}

.case-card__content {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.case-card--featured .case-card__title {
  font-size: 3rem;
  width: 60%;
}

.case-card__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.case-card__title a {
  color: inherit;
  text-decoration: none;
}

.case-card__categories {
  margin-bottom: 15px;
}

.case-card__category {
  display: inline-block;
  padding: 5px 10px;
  background: #f0f0f0;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-right: 5px;
}

.case-card__excerpt {
  line-height: 1.2;
  flex: 1;
  width: 60%;
}

.case-card__link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.case-card__link:hover {
  gap: 10px;
}

.cases-tag-cloud {
  margin: 32px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-filter-btn {
  padding: 10px;
  background: #fafafa;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  font-size: 12px;
}

.tag-filter-btn:hover {
  background: #d0002b;
  color: #fff;
}

.cases-description {
  margin-top: 107px;
}

.cases-description p {
  width: 59%;
}

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

/* Стили для первой (featured) карточки */
.case-card--featured {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 30px;
}

.case-card--featured .case-card__content {
  position: relative;
  z-index: 2;
  color: white;
  background: transparent;
  padding: 30px;
}

.case-card--featured .case-card__title a {
  color: white;
  font-size: 2rem;
}

.case-card--featured .case-card__category {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.case-card--featured .case-card__tag {
  background: white;
  color: #000;
  padding: 5px 10px;
  border-radius: 30px;
}

.case-card--featured .case-card__excerpt {
  color: rgba(255, 255, 255, 0.9);
}

.case-card--featured .case-card__link {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 30px;
  display: inline-block;
}

.case-card--featured .case-card__link:hover {
  background: rgba(255, 255, 255, 0.3);
}

.case-categories-block .case-card__content {
  height: 45%;
}

.case-categories-block .case-card__excerpt {
  width: 100%;
}

.case-categories-block .case-card__tag {
  border: 1px solid;
  border-radius: 30px;
  padding: 5px 10px;
}

/* Одиночный кейс */

.single-case {
  padding: 60px 0;
  margin-top: 60px;
}

.single-case__header {
  text-align: center;
  margin-bottom: 40px;
}

.single-case__title {
  font-size: 3rem;
  margin-bottom: 20px;
  display: none;
}

.single-case__categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  display: none;
}

.single-case__tags {
  display: none;
}

.single-case__category {
  padding: 5px 15px;
  background: #f0f0f0;
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
}

.single-case__featured-image {
  margin-bottom: 40px;
  display: none;
}

.single-case__featured-image img {
  width: 100%;
  border-radius: 10px;
}

.single-case__content {
  margin: 0 auto 40px;
  line-height: 1.8;
}

.single-case__meta {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  /* Скрываем метаданные */
  display: none;
}

.meta-item {
  margin-bottom: 15px;
}

.single-case__navigation {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 40px auto;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.related-cases {
  margin-top: 130px;
}

.related-cases__title {
  margin-bottom: 80px;
  font-size: 48px;
  width: 60%;
  line-height: 1.1;
}

.related-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-case-card {
  text-align: left;
}

.related-case-card__image {
  display: block;
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.related-case-card__image img {
  width: 100%;
  height: 352px;
  object-fit: cover;
  border-radius: 30px;
}

.related-case-card__title {
  font-size: 1.5rem;
  line-height: 1.1;
}

.related-case-card__title a {
  color: inherit;
  text-decoration: none;
}

.related-case-card__excerpt {
  text-align-last: left;
}

.no-cases {
  text-align: center;
  padding: 60px;
  color: #999;
}

.wp-block-columns {
  margin: 0;
}

.case-block-title {
  margin: 0;
}

.wp-block-uagb-container h3 {
  line-height: 1.1;
  margin: 0;
  font-size: 24px;
}

.wp-block-uagb-container p {
  margin: 0;
}

.brand-name {
  margin-top: 0 !important;
}

.case-top-block p {
  margin-top: 1.5em;
}

.case-block-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-block-tags p {
  padding: 5px 10px;
  background: #fff;
  color: #333 !important;
  border-radius: 30px;
}

.wp-block-list {
  margin: 15px 0;
}

.wp-block-list li {
  margin-bottom: 10px;
}

.cases-tehno-abzac {
  line-height: 1.1;
}

/* --- Blog ---*/

.site-main {
  margin-top: 130px;
}

.page-header h1 {
  font-size: 48px;
  max-width: 65%;
}

.category-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-blog-grid article:hover h2 a {
  color: #d0002b;
}

.entry-header h2 {
  font-size: 24px;
  max-width: 90%;
}

.wp-post-image {
  width: 100%;
}

.blog-tags {
  margin-bottom: 32px;
}

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

.blog-tags__list .blog-tags__item {
  background: #f3f4f8;
  padding: 5px 10px;
  border-radius: 30px;
  cursor: pointer;
}

.blog-tags__list .blog-tags__item:hover {
  background: #d0002b;
  color: #fff;
}

.entry-footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.entry-footer__tags a {
  border: 1px solid #000;
  padding: 0 10px;
  border-radius: 30px;
}

.entry-footer__tags a:hover {
  background: #d0002b;
  color: #fff !important;
}

.post-thumbnail-blog .wp-post-image {
  height: 85%;
}

.blog-single-post {
  display: grid;
  grid-template-columns: 58% 42%;
  background: #000;
  padding: 50px 30px;
  border-radius: 30px;
  color: #fff;
  gap: 10px;
}

.post-thumbnail-blog {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-blog-single .entry-footer__tags a {
  color: #000;
  border: 1px solid #000;
}

.blog-single-post .entry-footer__tags a {
  color: #fff;
  border: 1px solid #fff;
  padding: 1px 10px;
}

.blog-single-content .entry-header h1 {
  font-size: 48px;
  margin-top: 30px;
  line-height: 120%;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 100px;
}

p.time-post {
  display: flex;
  gap: 10px;
  align-items: center;
}

.date-post {
  color: #000;
  background: #fff;
  padding: 5px 20px;
  border-radius: 30px;
}

#breadcrumbs {
  margin-bottom: 60px;
}

#breadcrumbs a {
  color: #fff;
}

.breadcrumb_last {
  color: #d0002b;
}

.site-blog #breadcrumbs a {
  color: #000;
}

.cases-archive #breadcrumbs a {
  color: #000;
}

.single-case #breadcrumbs a {
  color: #000;
}

.wp-block-uagb-icon-list.uagb-block-7a92fc43 .uagb-icon-list__source-image {
  width: 36px;
}

.post-thumbnail-desk {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-thumbnail-mobil {
  display: none;
}

/* Контейнер навигации */

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin-top: 60px;
}

.custom-post-navigation {
  width: 100%;
  border-top: 2px solid #e9ecef;
  padding-top: 80px;
}

.custom-post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.custom-post-navigation .nav-previous,
.custom-post-navigation .nav-next {
  flex: 1;
  max-width: calc(50% - 10px);
}

.custom-post-navigation a {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-decoration: none;
  color: #333;
  padding: 20px;
  transition: all 0.3s ease;
  height: 100%;
}

.custom-post-navigation .nav-next a {
  flex-direction: row;
}

.custom-post-navigation a:hover .nav-title {
  color: #d0002b;
}

.custom-post-navigation .nav-thumbnail {
  flex-shrink: 0;
  width: 240px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: #dee2e6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-post-navigation .nav-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.custom-post-navigation a:hover .nav-thumbnail img {
  transform: scale(1.1);
}

.custom-post-navigation .nav-content {
  flex-grow: 1;
  min-width: 0;
}

.custom-post-navigation .nav-subtitle {
  display: block;
  color: #6c757d;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.custom-post-navigation .nav-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #212529;
  word-wrap: break-word;
}

.custom-post-navigation .nav-previous a:not(:has(.nav-thumbnail)) .nav-content,
.custom-post-navigation .nav-next a:not(:has(.nav-thumbnail)) .nav-content {
  width: 100%;
}

/* Стили для блока похожих статей */
.related-posts {
  margin: 50px 0 40px;
  padding-top: 40px;
}

.related-posts__title {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  color: #212529;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.related-post-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.related-post-card__thumbnail {
  width: 100%;
  height: 270px;
}

.related-post-card__image {
  width: 100%;
  height: 100%;
}

.related-post-card__content {
  padding: 20px;
}

.related-post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.related-post-card__tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 30px;
  border: 1px solid #000;
}

.related-post-card__title {
  font-size: 24px;
  font-weight: 600;
  color: #212529;
  margin: 0 0 10px;
  line-height: 1.1;
}

.related-post-card__excerpt {
  margin: 0;
}

.social-block {
  margin-top: 65px;
}

.social-block p {
  font-size: 24px;
  font-weight: 600;
  margin: 25px 0;
}

.social-block-grid {
  display: inline-flex;
  border-radius: 10px;
}

a.social-link {
  padding: 16px;
  display: flex;
  background: #f3f4f8;
  align-items: center;
}

a.social-link:nth-child(1) {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

a.social-link:nth-child(3) {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

a.social-link:hover {
  background: #d0002b;
}

a.social-link:hover svg path {
  stroke: #fff;
}

a.social-link.vk:hover svg path {
  stroke: #fff;
  fill: #fff;
}

a.social-link.tg:hover svg path {
  stroke: #fff;
  fill: #fff;
}

/*--- SERVICES ---*/

.service-custom {
  margin-top: 100px;
}

.service-custom h1 {
  font-size: 96px;
}

.hero-servises-grid {
  display: flex;
  gap: 100px;
  background: #1b1b1b;
  padding: 60px 30px 60px 30px;
  border-radius: 30px;
  color: #fff;
  align-items: end;
}

.hero-servises-item {
  flex: 1;
}

.hero-servises-anchor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-servises-anchor-grid a {
  background: #fff;
  padding: 5px 8px;
  border-radius: 30px;
}

.hero-servises-anchor-grid a:hover {
  background: #d0002b;
  color: #fff;
}

/*--- Advantage block ---*/

.service-advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 130px;
  gap: 15px;
}

.service-advantage-item h2 {
  margin-top: 0;
}

.service-advantage-item {
  border-radius: 30px;
}

h2.service-advantage-title-2 {
  margin-top: 130px;
  margin-bottom: 60px;
  width: 50%;
}

.service-advantage-grid-2 {
  margin-top: 0;
}

.service-advantage-grid-2 .service-advantage-item:first-child {
  background: #d0002b;
  color: #fff;
  padding: 25px;
}

.service-advantage-item:not(:first-child) {
  padding: 25px;
}

.service-advantage-item:nth-child(2n + 2) {
  background: #f3f4f8;
}

.service-advantage-item:nth-child(2n + 3) {
  background: #d0002b;
  color: #fff;
}

.service-advantage-item p {
  margin-bottom: 0;
}

.service-advantage-title {
  margin-top: 130px;
  font-size: 24px;
  font-weight: 600;
}

/*--- What Seo block ---*/

.what-seo-block {
  margin-top: 130px;
}

.what-seo-grid {
  display: flex;
  gap: 100px;
  margin-top: 60px;
}

.what-seo-item {
  flex: 1;
}

.what-seo-title,
.what-seo-desk {
  width: 45%;
}

.what-seo-item-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.what-seo-item:first-child .what-seo-item-title {
  margin-top: 0;
}

.what-seo-item:last-child {
  background: #f3f4f8;
  display: flex;
  flex-direction: column;
  align-items: start;
  height: 220px;
  border-radius: 30px;
  padding: 0 25px;
}

.what-seo-item ul {
  margin: 0;
  padding-left: 15px;
  list-style: none;
}

.what-seo-item ul li {
  padding-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

.what-seo-item ul li::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 5px;
  background: #d0002b;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: block;
}

/*--- Service Form block ---*/

.service-form {
  margin-top: 130px;
}

.service-form .container {
  background: #1b1b1b;
  color: #fff;
  border-radius: 30px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.service-form .service-form-container {
  max-width: 950px;
  margin: 0 auto;
}

.servise-form-grid {
  display: flex;
  justify-content: space-between;
}

.servise-form-grid input {
  height: 80px;
  min-width: 300px;
  border-radius: 40px;
  padding-left: 15px;
}

.service-form-title,
.service-form-deck {
  text-align: center;
}

.service-b2b {
  margin-top: 130px;
}

.b2b-grid {
  display: flex;
  gap: 130px;
}

.b2b-item {
  width: 50%;
}

.b2b-item:first-child {
  display: flex;
  flex-direction: column;
}

.b2b-title {
  margin-top: 0;
  flex: 1;
}

.b2b-block-content.mobile {
  display: none;
}

.b2b-block-content {
  background: #f3f4f8;
  border-radius: 30px;
  padding: 16px;
  margin-bottom: 25px;
}

.b2b-block-text {
  margin-bottom: 0;
}

.b2b-block-title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 0;
}

.metod-service {
  margin-top: 130px;
  color: #fff;
}

.metod-service .container {
  background-image: url(../img/metod-service-fone.png);
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 30px;
  padding: 75px 35px;
}

.metod-service-title {
  margin-top: 0;
}

.metod-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.metod-item:nth-child(-n + 2),
.metod-item:nth-child(n + 5):nth-child(-n + 6) {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  padding: 24px;
}

.metod-top-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.top-block-number {
  padding: 15px 20px;
  color: #fff;
  background: #d0002b;
  border-radius: 15px;
  font-size: 24px;
  margin: 0;
}

.top-block-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.metod-bottom-block {
  line-height: 1.1;
  padding-top: 60px;
}

/*--- Questions Accordion ---*/

.questions {
  margin-top: 130px;
}

.services-single .questions {
  margin-top: 0;
}

.questions-accordion {
  margin: 40px auto;
  font-family: inherit;
}

.questions-title {
  font-size: 48px;
  margin-bottom: 64px;
  color: #000;
  width: 40%;
}

.accordion-item {
  margin-bottom: 12px;
  background: #f3f4f8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  padding: 20px 0;
}

.accordion-trigger {
  width: 100%;
  padding: 18px 24px;
  background: #f3f4f8;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  transition: background-color 0.3s;
}

.accordion-trigger.active {
  background-color: #f3f4f8;
  border-bottom: 1px solid #e0e0e0;
}

.accordion-title {
  flex: 1;
  padding-right: 20px;
  font-size: 24px;
}

.accordion-icon {
  width: 34px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 200;
  color: #fff;
  transition: transform 0.3s;
  background: #d0002b;
  padding-bottom: 20px;
  padding-top: 15px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 6px;
}

.accordion-trigger.active .accordion-icon {
  transform: rotate(45deg);
  color: #fff;
  background: #d0002b70;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #f3f4f8;
}

.accordion-content.active {
  max-height: 500px;
  /* Достаточно для контента */
}

.accordion-content-inner {
  padding: 20px 24px;
  border-top: 1px solid #e0e0e0;
  line-height: 1.6;
  color: #000;
}

.accordion-content-inner p {
  margin-bottom: 15px;
}

.accordion-content-inner ul {
  margin: 10px 0 15px 20px;
  list-style-type: disc;
}

.accordion-content-inner li {
  margin-bottom: 8px;
}

.accordion-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.accordion-content-inner th,
.accordion-content-inner td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.accordion-content-inner th {
  background-color: #f5f5f5;
  font-weight: 600;
}

/*--- Range Services ---*/

.range-services {
  margin-top: 130px;
}

.range-services-title {
  width: 60%;
}

.range-services-container {
  display: flex;
  gap: 16px;
}

.range-services-item {
  background: #f3f4f8;
  padding: 24px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
}

.services-item-title {
  margin-top: 0;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.1;
}

.services-item-text {
  line-height: 1.1;
  margin-top: 0;
  flex: 1;
}

.services-item-link {
  background: #d0002b;
  border: 1px solid #d0002b;
  color: #fff;
  padding: 15px 35px;
  border-radius: 30px;
  margin-top: 50px;
  margin-bottom: 10px;
  display: block;
  width: 60%;
  text-align: center;
}

.services-item-link:hover {
  background: #fff;
  border-color: #d0002b;
  border: 1px solid #d0002b;
  color: #d0002b;
}

/*--- Articles Block ---*/

.articles {
  margin-top: 130px;
}

.articles-container {
  display: flex;
  gap: 16px;
}

.articles-item {
  flex: 1;
}

.articles-item:hover .articles-item-title a {
  color: #d0002b;
}

.articles-block-tags {
  display: flex;
  gap: 10px;
}

.articles-image {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 30px;
}

.articles-tag {
  border: 1px solid #000;
  padding: 2px 10px;
  border-radius: 30px;
  margin-bottom: 0;
}

.articles-tag:hover {
  background: #d0002b;
  color: #fff;
  border-color: #d0002b;
}

.articles-item-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0;
}

/* ACCORDION PAGE VAKANSII */

.lazyblock-akkordeon-vakansij-2dV7bn.wp-block-lazyblock-akkordeon-vakansij {
  border-top: 2px solid #e0e0e0;
}

.vacancy-item {
  border-bottom: 2px solid #e0e0e0;
  overflow: hidden;
}

.vacancy-header {
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.vacancy-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.vacancy-meta-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 1000px;
}

.vacancy-title {
  font-size: 32px;
  font-weight: 600;
  max-width: 500px;
  flex: 1;
}

.vacancy-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
  background: #d0002b;
  padding: 0 10px;
  color: #fff;
  border-radius: 5px;
}

.vacancy-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #666;
}

.vacancy-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #000;
  border-radius: 30px;
  background: #f3f4f8;
  padding: 5px 10px;
}

.vacancy-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: white;
}

.vacancy-content-inner {
  padding: 1.5rem;
}

.vacancy-item.is-open .vacancy-title,
.vacancy-item.is-open .vacancy-meta span {
  color: #000;
}

.vacancy-item.is-open .vacancy-icon {
  transform: rotate(45deg);
  color: #fff;
  background: #d0002b80;
}

.vacancy-item.is-open .vacancy-content {
  max-height: 800px;
}

.vacancy-content-inner ul {
  margin-left: 0;
}

.vacancy-content-inner p {
  margin-bottom: 1.5em;
}

.uagb-buttons-repeater:visited {
  color: #fff;
}

.block_anchor_services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.block_anchor_services p {
  background: #f3f4f8;
  padding: 5px 10px;
  border-radius: 30px;
}

.block_anchor_services p:hover {
  background: #d0002b;
}

.services-single .wp-block-uagb-container .block_anchor_services p a {
  color: #000;
}

.services-single .wp-block-uagb-container .block_anchor_services p a:hover {
  color: #fff;
}

.wp-block-uagb-container ol li {
  margin-bottom: 20px;
}

.wp-block-uagb-container ol li strong {
  display: block;
  margin-bottom: 10px;
}

.wp-block-uagb-container ol li::marker {
  color: #d0002b;
  font-weight: 700;
}

/* ===== Контейнеры для скролл-эффекта ===== */
.carousel-scroll-wrapper {
  position: relative;
  height: calc(100vh + 300px);
  /* Чем больше, тем медленнее едет карусель */
  /* min-height: 800px; */
  margin-top: 60px;
}

/* ===== Липкий контейнер ===== */

.carousel-scroll-content {
  position: sticky; /* Отключаем поведение скролла на сайте */
  top: 100px; /* Отключаем поведение скролла на сайте */
  align-items: flex-start;
  overflow: hidden;
  padding-top: 10px;
}

/* ===== Карусель ===== */
.caorusel-process {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-inner {
  display: flex;
  gap: 30px;
  /* padding: 0 5vw; */
  will-change: transform;
  transform: translateZ(0);
  /* Важно: отключаем нативный скролл, чтобы не конфликтовал с нашим */
  overflow: visible;
}

/* ===== Индикатор прогресса (опционально) ===== */
.carousel-progress-bar {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.carousel-progress-fill {
  height: 100%;
  width: calc(var(--carousel-progress, 0) * 100%);
  background: #0073aa;
  transition: width 0.1s linear;
  border-radius: 2px;
}
