

/* Start:/local/templates/textile/assets/css/main.css?175204564436644*/
@font-face {
  font-family: 'Roboto';
  src: url('/local/templates/textile/assets/fonts/Roboto-VariableFont.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Сбросы */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  color: #1d2124;
}

button,
input {
  border: none;
  cursor: pointer;
  outline: none;
  font-family: 'Roboto', sans-serif;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

address {
  font-style: normal;
}

h3 {
  font-weight: 500;
}

/* глобальный контейнер */
.container {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header {
  color: white;
  z-index: 10;
  background: #1d2124;
}

.first-half,
.second-half {
  display: flex;
  align-items: center;
  gap: 80px;
}

.header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-direction: row;
}

.logo {
  display: flex;
}

.logo img {
  height: 60px;
}

a,
button {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  background: none;
}

button {
  display: flex;
}

nav {
  display: flex;
  gap: 48px;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}
.locale {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-header {
  padding: 7px 24px;
  cursor: pointer;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  display: block;
}

/* Hero */
.hero {
  position: relative;
  background: url('/test/images/mainpage.png') center/cover no-repeat;
  color: white;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1d212499;
}

.hero-content {
  position: relative;
  max-width: 840px;
  padding-top: 180px;
  padding-bottom: 200px;
  z-index: 1;
}
h1 {
  font-size: 40px;
  line-height: 46px;
  margin-bottom: 24px;
}
p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.5;
}
.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 15px;
}
.hero-buttons .btn {
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  line-height: 24px;
  transition: all 0.2s;
}
.btn {
  padding: 7px 24px;
  text-decoration: none;
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary {
  background: #ea130e;
  border: 1px solid #ea130e;
  color: #fff;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: white;
  color: #ea130e;
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid white;
}

.btn-secondary:hover {
  background: #fff;
  color: #ea130e;
}

@media (max-width: 1200px) {
  .first-half,
  .second-half {
    gap: 40px;
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 172px;
  }
}

@media (min-width: 901px) {
  .hamburger {
    display: none;
  }
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }

  .btn-header {
    display: none;
  }

  .locale span {
    display: none;
  }

  .hamburger {
    display: flex;
  }
  .hero-content {
    padding-top: 60px;
    padding-bottom: 88px;
  }
  h1 {
    font-size: 28px;
    line-height: 32px;
  }
  p {
    font-size: 14px;
    line-height: 20px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .first-half,
  .second-half {
    gap: 16px;
  }

  .locale svg:first-of-type {
    width: 24px;
    height: 24px;
  }

  header .logo img {
    height: 36px;
  }
}

/* —— Мобильное выезжающее меню —— */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  color: #000;
  transition: right 0.3s ease;
  z-index: 101;
  padding: 16px 24px;
  overflow-y: auto;
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu ul {
  list-style: none;
  margin: 40px 0;
  padding: 0;
}
.mobile-menu ul li + li {
  margin-top: 16px;
}
.mobile-menu ul a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
}
.mobile-menu .btn-header {
  display: block;
  width: 100%;
  margin: 24px 0;
}
.mobile-menu .contact-info p {
  margin-bottom: 16px;
  align-items: center;
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 24px;
}
.mobile-menu .contact-info svg {
  flex-shrink: 0;
}

.mobile-menu .socials {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.overlay:not(.hidden) {
  position: fixed;
  inset: 0;
  background: #1d212499;
  backdrop-filter: blur(4px);
  z-index: 100;
}

.overlay.hidden {
  display: none !important;
}

.geo-modal {
  position: absolute;
  top: calc(100% + 8px); /* Позиция сразу под хедером с небольшим отступом */
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: #1d2124;
  padding: 24px;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 102; /* Выше чем overlay и мобильное меню */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.geo-modal.hidden {
  display: none;
}

.geo-modal h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.2;
  color: #1d2124;
}

/* Поиск */
input {
  width: 100%;
  padding: 8px 16px;
  background: #e8ecef;
  font-size: 16px;
  color: #1d2124;
  box-sizing: border-box; /* Добавлено для предсказуемости размеров */
}

input::placeholder {
  color: #8a94a4;
}

/* Список городов */
.geo-modal__list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  max-height: 240px;
  overflow-y: auto;
  /* Стилизация скроллбара */
  /* scrollbar-width: thin; */
  /* scrollbar-color: #aab0bb #f0f2f5; */

  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* сама полоса */
ul::-webkit-scrollbar {
  width: 4px;
  background: transparent; /* если нужен фон за ползунком */
}

/* «канал» (track) */
ul::-webkit-scrollbar-track {
  background: transparent;
}

/* «ползунок» (thumb) */
ul::-webkit-scrollbar-thumb {
  background-color: #788188;
  border-radius: 0;
}

.geo-modal__list li button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  color: #1d2124;
  transition: background-color 0.15s ease;
}

.locale-wrapper {
  position: relative;
}

@media (max-width: 900px) {
  .locale-wrapper {
    position: static;
  }
}

@media (max-width: 900px) and (min-width: 500px) {
  .geo-modal {
    right: 16px;
    left: unset;
    transform: unset;
  }
}

.warehouse-section {
  width: 100%;
  margin-top: 80px;
  margin-bottom: 72px;
}

.warehouse-section__title {
  font-weight: 700;
  margin-bottom: 24px;
}

.warehouse-section__subtitle {
  margin-bottom: 24px;
}

.warehouse-section__footer {
  color: var(--text-light);
}

/* 3. Стили сетки с карточками */
.questions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  column-gap: 16px;
  row-gap: 24px;
  margin-bottom: 24px;
}

/* 4. Стили отдельной карточки */
.question-card {
  position: relative; /* Необходимо для позиционирования номера */
  border: 2px solid #ea130e;
  padding: 16px; /* Отступ слева для номера */
  padding-left: 106px;
  min-height: 104px;
}

.question-card__number {
  position: absolute;
  top: -26px; /* Сдвиг вверх */
  left: 16px; /* Сдвиг от левого края */
  font-size: 128px;
  font-weight: 700;
  color: #ea130e;
  line-height: 1; /* Убирает лишнюю высоту у цифры */
  z-index: 1;
}

.question-card__title {
  font-weight: 700;
  margin-bottom: 4px;
}

.question-card__description {
  font-weight: 400;
  margin-bottom: 0;
}

/* 5. Адаптивность для мобильных устройств */
@media (max-width: 1200px) {
  .questions-grid {
    grid-template-columns: 1fr;
  }

  .warehouse-section {
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .warehouse-section__title {
    font-size: 32px;
  }

  .question-card {
    width: 100%;
    min-height: auto;
    padding: 16px;
    padding-left: 0;
  }

  .question-card__title {
    padding-left: 88px;
    min-height: 40px;
  }

  .question-card__description {
    padding-left: 16px;
  }

  .question-card__number {
    font-size: 96px;
  }

  .warehouse-section {
    margin-top: 40px !important;
  }
}

a:hover {
  color: #ea130e !important;
  transition: all 0.15s;
}

.text-32 {
  font-size: 32px;
  line-height: 40px;
}

.text-24 {
  font-size: 24px;
  line-height: 32px;
}

p,
a,
div,
input,
.text-16 {
  font-size: 16px;
  line-height: 24px;
}

.text-14 {
  font-size: 14px;
  line-height: 20px;
}

.text-12 {
  font-size: 12px;
  line-height: 16px;
}

@media (max-width: 900px) {
  .text-32 {
    font-size: 28px;
    line-height: 32px;
  }

  .text-24 {
    font-size: 20px;
    line-height: 28px;
  }

  p,
  a,
  div,
  input,
  .text-16 {
    font-size: 14px;
    line-height: 20px;
  }
  .text-14 {
    font-size: 12px;
    line-height: 16px;
  }
}

.problems-title {
  font-weight: 700;
  margin-bottom: 24px;
}

.problems-intro {
  margin-bottom: 32px;
}

.highlight-red {
  color: #ea130e; /* Акцентный красный цвет */
}

.problems-section {
  margin-bottom: 60px;
}

.problems-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.problem-column {
  flex: 1;
  padding: 0 16px; /* Внутренние отступы для контента */
  border-left: 2px solid #e8ecef; /* Светлый разделитель */
}

.column-title {
  font-weight: 500;
  margin-bottom: 16px;
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.problem-list li {
  display: flex;
  align-items: flex-start; /* Выравнивание номера по верху текста (важно для многострочных пунктов) */
  margin-bottom: 16px;
}

.problem-list li:last-child {
  margin-bottom: 0;
}

.problem-number {
  display: inline-block;
  background-color: #ea130e; /* Тот же красный цвет */
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problems-footer {
  margin: 0;
}

@media (max-width: 768px) {
  .problems-grid {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }

  .problem-column {
    padding: 0;
    border: none !important;
  }

  .problem-text {
    margin-top: 2px;
  }

  .problems-intro {
    margin-bottom: 24px;
  }
}

/* diagram block */
.uslugi {
  background-color: #e8ecef;
  padding: 40px 0;
  overflow-x: hidden;
}
.diagram-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 140px 0;
}
.diagram-wrapper .main-svg {
  z-index: 10;
  position: relative;
}

.diagram-block {
  position: absolute;
  max-width: 453px;
}

.diagram-title-wrapper {
  position: relative;
  margin-bottom: 8px;
}

.diagram-wrapper-mobile {
  display: none;
}

.svg-desktop,
.svg-mobile {
  position: absolute;
  bottom: 0;
  transform: translateY(100%);
  display: flex;
}

.svg-mobile.to-up {
  transform: none;
}

.diagram-block.ind .svg-mobile {
  left: -8px;
}

.diagram-title-wrapper.to-up .svg-desktop {
  transform: none;
}

.cross .svg-desktop {
  left: -70px;
}

.ful .svg-desktop {
  left: -35px;
}

.diagram-block h3 {
  font-weight: 500;
}
.diagram-block p {
  margin: 0;
}
.diagram-block.std {
  left: 0;
  top: 80px;
}
.std .svg-desktop {
}

.diagram-block.ful {
  top: 40px;
  left: 709px;
}
.diagram-block.cross {
  top: 406px;
  left: 790px;
}
.diagram-block.part {
  top: 550px;
  left: 304px;
}
.diagram-block.ind {
  top: 378px;
  left: 101px;
  max-width: 292px;
}
.uslugi .btn {
  margin: 0 auto;
}

.diagram-block .svg-mobile {
  display: none;
}

@media (max-width: 1200px) {
  .diagram-wrapper .main-svg {
    max-width: 100%;
    width: 346px;
    height: auto;
    aspect-ratio: 1/1;
  }

  .diagram-wrapper {
    flex-direction: column;
    gap: 16px;
    width: fit-content;
    margin: 0 auto;
  }

  .diagram-wrapper .text-24 {
    font-size: 20px;
    line-height: 28px;
  }

  .diagram-wrapper p {
    font-size: 14px;
    line-height: 20px;
  }

  .diagram-block {
    position: static;
    max-width: 296px;
  }

  .diagram-block .svg-desktop {
    display: none;
  }

  .diagram-block .svg-mobile {
    display: flex;
  }

  .diagram-block br {
    display: none;
  }

  .diagram-block.std .svg-mobile {
    left: -8px;
  }
}

@media (max-width: 1200px) and (min-width: 768px) {
  .diagram-wrapper-mobile {
    display: flex;
    margin: 40px 0;
  }

  .diagram-wrapper-mobile svg {
    margin: 0 auto;
  }

  .diagram-wrapper {
    display: none;
  }
}

@media (max-width: 768px) {
  .diagram-wrapper {
    padding: 32px 0;
  }
}

/* фичи грид */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  row-gap: 32px;
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 80px;
}
.feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}
.feature-item h3 {
  margin-top: 16px;
  margin-bottom: 8px;
}
.feature-item p {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* логистика */
.logistics h2 {
  margin-bottom: 32px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.step {
}

.step p {
  margin-bottom: 0;
}

.step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.title-wrapper {
  position: relative;
  border-bottom: 2px solid #ea130e;
}

.title-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  background-color: #ea130e;
  transform: translateY(50%);
}

.step:last-of-type .title-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  background-color: #ea130e;
  transform: translateY(50%);
}

.step h2 {
  margin-bottom: 8px;
}

.step p {
  padding-right: 16px;
}

.step .subtitle {
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-left: 2px solid #ea130e;
    position: relative;
  }

  .step h2,
  .step p {
    padding-left: 16px;
  }

  .step h2 {
    margin-bottom: 4px;
  }

  .title-wrapper::after {
    left: -7px;
  }

  .title-wrapper::before {
    display: none;
  }

  .step:first-of-type .title-wrapper::before {
    display: block !important;
    content: '';
    width: 2px;
    height: 37px;
    background-color: white;
    position: absolute;
    left: -2px;
    top: 0;
  }

  .step:last-of-type::after {
    content: '';

    width: 12px;
    height: 12px;
    border-radius: 100%;

    background: #ea130e;
    position: absolute;
    left: -7px;
    bottom: 0;
  }

  .text {
    margin-bottom: 32px !important;
  }
}

/* individual-resh */
.stellar-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  row-gap: 24px;
  margin-top: 32px;
  margin-bottom: 24px;
}

.star-card {
  display: grid;
}

.star-card p {
  margin: 0;
}
.star-card h3 {
  margin-top: 16px;
  margin-bottom: 8px;
}
.star-card img {
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .stellar-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  .star-card img {
    max-height: 140px;
  }
}

.mt-80 {
  margin-top: 80px;
}

.mb-80 {
  margin-bottom: 80px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .mt-80 {
    margin-top: 60px;
  }

  .mb-80 {
    margin-bottom: 60px;
  }

  .mt-40 {
    margin-top: 32px;
  }

  .mb-40 {
    margin-bottom: 32px;
  }
}

/* work-today */
.work-today {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.image-content img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 544px;
  object-fit: cover;
}

.work-today-section h2 {
  margin-bottom: 32px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  gap: 16px;
}

.step-item p {
  margin: 0;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.step-number {
  background-color: #d92d20;
  color: white;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.step-info .text-24 {
  margin-bottom: 8px;
}

.final-pitch {
  margin: 24px 0;
}

.final-pitch .company-name {
  color: #ea130e;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .work-today {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .work-today {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .image-content img {
    max-height: 300px;
  }
}

/* футер */

.footer {
  background: #1d2124;
  padding: 24px 0 16px 0;

  color: #fff;
}
.footer a,
.footer address {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Вёрстка внутренней части --- */
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
}
.footer__logo img {
  display: block;
  max-width: 160px;
}

/* Навигация */
.footer__nav {
  display: flex;
  gap: 80px;
  align-items: start;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__list:first-of-type {
  width: 220px;
}
.footer__list:last-of-type {
  width: 200px;
}
.footer__list li + li {
  margin-top: 16px;
}
.footer__list a {
  display: inline-block;
}

/* Контакты */
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__social {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.footer__social a {
  background-size: contain;
  background-repeat: no-repeat;
}

/* Нижняя полоса */
.footer__bottom {
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #babfc3;
  margin-top: 32px;
}

.footer__bottom small {
  font-size: 12px;
  line-height: 16px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.footer__bottom small a {
  display: flex;
}

@media (max-width: 1200px) {
  .footer__nav {
    gap: 40px;
  }

  .footer__list {
    width: auto !important;
  }
}

@media (max-width: 900px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer__nav {
    flex-direction: column;
    gap: 16px;
  }
  .footer__contacts {
    align-items: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
  }
}

/* */

.breadcrumbs {
  display: flex;
  color: #babfc3;
  margin-top: 40px;
  gap: 18px;
}

.bx-breadcrumb-item {
  position: relative;
}

.bx-breadcrumb-item:not(:last-child)::after {
  content: '—';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translate(100%, -50%);
}

.bx-breadcrumb-item-angle {
  display: none;
}

.about-company h1 {
  margin-top: 8px;
  margin-bottom: 32px;
}

.about-company h2 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.list {
  list-style: none; /* Убираем стандартные маркеры */
  padding: 0;
  margin: 0;
}

.list li {
  position: relative;
  padding-left: 12px;
}

.list li::before {
  content: '';
  position: absolute;
  top: 8px; /* Центрируем точку по вертикали относительно строки (примерно) */
  left: 0; /* Ставим точку слева */
  width: 6px; /* Ширина точки */
  height: 6px; /* Высота точки */
  background-color: #ea130e; /* Цвет точки */
  border-radius: 50%; /* Делаем квадрат кругом */
}

.swiper-container {
  overflow: hidden;
}

.swiper-slide {
  display: flex !important;
  height: auto !important;
}

.swiper-nav-wrapper {
  display: flex;
  gap: 8px;
}

.swiper-button-prev,
.swiper-button-next {
  position: static !important;
  width: 24px !important;
  height: 24px !important;
  background: #1d2124;
  margin: 0 !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.swiper-button-next svg,
.swiper-button-prev svg {
  width: auto !important;
  height: auto !important;
}

.video-wrapper {
  margin-bottom: 40px;
  padding-bottom: 56.25%;
  position: relative;
  max-height: 675px;
}

.video-wrapper iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.about-company p {
  margin-bottom: 8px;
}

.photogallery {
  margin-top: 40px;
}

.photogallery .swiper-slide {
  cursor: pointer;
}

@media (max-width: 768px) {
  .about-company h1 {
    margin-bottom: 24px;
  }

  .video-wrapper {
    margin-bottom: 32px;
  }

  .photogallery {
    margin-top: 32px;
  }

  .photogallery .swiper-slide {
    width: 214px;
  }

  .swiper-nav-wrapper {
    display: none;
  }

  .swiper-container {
    width: calc(100vw - 16px);
  }

  .breadcrumbs {
    margin-top: 24px;
  }
}

/* контакты */
.contacts h1 {
  margin-top: 8px;
  margin-bottom: 32px;
}

.contacts-wrapper {
  display: flex;
  gap: 120px;
}

.contacts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.contacts-container .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1d2124;
  text-decoration: none;
}

.contacts-container h2 {
  margin-top: 24px;
  margin-bottom: 8px;
}

@media (min-width: 1200px) {
  .contacts-wrapper {
    margin-bottom: 204px;
  }
}

@media (max-width: 900px) {
  .contacts-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  #map {
    width: calc(100% + 32px) !important;
    margin-left: -16px;
  }

  .contacts-container h2 {
    margin-top: 16px;
    margin-bottom: 0;
  }

  .contacts h1 {
    margin-bottom: 24px;
  }
}

/* услуги */
.services h1 {
  margin-top: 8px;
  margin-bottom: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service {
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8ecef;
}

.service:hover {
  border-color: #ea130e;
}

.service h2 {
  margin-top: 16px;
  margin-bottom: 24px;
}

.service img {
  height: 180px;
  width: 100%;
}

.service .btn {
  margin-top: auto;
  width: 100%;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service img {
    height: 200px;
  }
}

@media (max-width: 900px) {
  .services h1 {
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service img {
    height: 160px;
  }
}

.welcome-section .breadcrumbs {
  color: #e8ecef;
}

.welcome-section {
  color: white;
  padding-top: 376px;
  padding-bottom: 40px;
  position: relative;
}

.welcome-section h1,
.welcome-section .breadcrumbs {
  margin: 0 !important;
}

.welcome-section .breadcrumbs {
  margin-bottom: 8px !important;
}

.welcome-section .container {
  position: relative;
  z-index: 10;
}

.welcome-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #1d212499;
}

.red {
  color: #ea130e;
}

.go-back {
  color: #788188;
  font-size: 14px;
  line-height: 24px;
  display: flex;
  align-items: center;
}

.go-back:hover path {
  stroke: #ea130e;
}

.services-detail {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.links-part {
  height: fit-content;
  flex-shrink: 0;
  border: 1px solid #e8ecef;
}

.links-part a {
  padding: 16px;
  display: block;
  border-bottom: 1px solid #e8ecef;
}

.links-part a.active {
  font-weight: 700;
}

.links-part a:last-child {
  border-bottom: none;
}

.services-detail h2,
.services-detail h3 {
  margin-bottom: 8px;
  margin-top: 24px;
}

.services-detail h2:first-of-type {
  margin-top: 0;
}

.services-detail p {
  margin-bottom: 0;
}

.services-detail .btn {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .links-part {
    display: none;
  }
}

/* blog */
.blog-elem {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  position: relative;
  height: 200px;
  justify-content: end;
}

.blog-elem img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-elem p,
.blog-elem h2 {
  position: relative;
  z-index: 1;
}

.blog-elem p {
  color: #e8ecef !important;
  margin: 0;
}

.blog-elem h2 {
  color: white !important;
}

.blog-elem::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(29, 33, 36, 0) 0%, rgba(29, 33, 36, 0.6) 100%);
  z-index: 0;
}

.blog-elem:hover::after {
  background: #1d1d2499;
}

.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  color: #788188;
  position: relative;
}

.sort-value {
  padding-left: 8px;
  cursor: pointer;
}

.sort-dropdown {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  display: none;
  background: white;
  z-index: 2;
  border: 1px solid #babfc3;
}

.sort-option {
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid #babfc3;
}

.sort-option:last-child {
  border-bottom: none;
}

.sort-option:hover {
  background: #e8ecef;
}

@media (max-width: 768px) {
  .sort-row {
    flex-direction: column;
    align-items: start;
    margin-bottom: 24px;
  }
}

.blog.text-part {
  max-width: 1000px;
  margin: 0 auto;
}

/* Стили лайтбокса */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox__close {
  position: absolute;
  top: 0;
  transform: translateY(-100%);
  display: flex;
  right: 20px;
  font-size: 2rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.lightbox .swiper-slide img {
  max-height: 656px;
  max-width: 1000px;
  object-fit: contain;
  margin: 0 auto;
}
.lightbox .swiper-button-prev,
.lightbox .swiper-button-next {
  color: black;
  width: 40px !important;
  height: 40px !important;
  background: #ffffff;
}

/* Фиксируем ширину слайда и выравниваем контейнер */
.lightbox .swiper-container {
  width: 100%; /* сам контейнер — на всю ширину экрана */
  display: flex;
  justify-content: center;
  max-width: 1200px;
  position: relative;
}

.lightbox .swiper-slide {
  /* можно ещё ограничить по max-width, если экран уже меньше */
}

.lightbox .swiper-button-prev {
  position: absolute !important;
  left: 0 !important;
}

.lightbox .swiper-button-next {
  position: absolute !important;
  right: 0 !important;
}

.lightbox .swiper-container-wrapp {
  position: relative;
  max-width: 1232px;
  padding: 16px 16px;
  width: 100%;
}

.lightbox .swiper-button-next:hover,
.lightbox .swiper-button-prev:hover {
  background: #ea130e;
}

.lightbox .swiper-button-next:hover path,
.lightbox .swiper-button-prev:hover path {
  stroke: white;
}

@media (max-width: 1050px) {
  .lightbox .swiper-button-next {
    right: 8px !important;
  }

  .lightbox .swiper-button-prev {
    left: 8px !important;
  }

  .lightbox img {
    max-height: 80vh !important;
  }
}

.form-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 40px;
  z-index: 120;
  max-width: 400px;
  max-height: 80vh;
  overflow: auto;
  width: calc(100% - 32px);
}

.form-popup .close {
  position: absolute;
  top: 40px;
  right: 40px;
}

.form-popup h3 {
  margin-bottom: 40px;
}

.form-popup .input-wrapper {
  margin-bottom: 16px;
}

.form-popup .btn {
  width: 100%;
  margin-top: 24px;
}

.form-popup .text-12 {
  margin-top: 16px;
}

.form-popup .input-dropdown {
  margin-bottom: 16px;
}

.form-success-answer .title-row {
  display: flex;
  gap: 8px;
}

.form-success-answer .close {
  position: static;
}

.form-success-answer p {
  margin-top: 16px;
  margin-bottom: 24px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input:valid + .placeholder {
  display: none;
}
.placeholder {
  position: absolute;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
  left: 16px;
  margin: auto;
  color: #788188;
}

input[type='checkbox'] {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 1px solid #788188;
  padding: 0;
  background: none;
  flex-shrink: 0;
}

input:checked[type='checkbox'] {
  background: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23EA130E%22%2F%3E%3Cpath%20d%3D%22M4%2012L8.95%2016.95L19.557%206.34302%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E);
  border: none;
}

label {
  display: flex;
  gap: 8px;
  cursor: pointer;
}

.input-dropdown {
  position: relative;
}

.input-dropdown .value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #e8ecef;
  cursor: pointer;
}

.input-dropdown .value.default {
  color: #788188;
}

.input-dropdown .value {
  color: black;
}

.input-dropdown .content {
  display: none;
  background: #e8ecef;
}

.input-dropdown .content li {
  padding: 2px 16px;
}

.input-dropdown .content li:hover {
  background-color: #788188;
}

.input-dropdown .content.active {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: absolute;
  bottom: -4px;
  transform: translateY(100%);
  padding: 6px 0;
  padding-right: 8px;
}

.input-dropdown .content .list {
  max-height: 156px;
  overflow: auto;
  padding-right: 8px;
}

.input-dropdown .option {
  padding: 2px 16px;
  cursor: pointer;
  color: #788188;
}

.input-dropdown .option:hover {
  background-color: #788188;
  color: white;
}

.input-dropdown .content .list::-webkit-scrollbar {
  width: 2px; /* Ширина ползунка */
}

.input-dropdown .content .list::-webkit-scrollbar-track {
  background: transparent; /* Фон дорожки делаем прозрачным */
  margin: 8px; /* Добавляем отступы сверху и снизу, как у padding */
}

.input-dropdown .content .list::-webkit-scrollbar-thumb {
  background-color: #788188; /* Цвет самого ползунка */
  border-radius: 4px; /* Скругляем углы ползунка */
}

#scrollToTopBtn {
  display: none;
}

#scrollToTopBtn.show {
  display: block;
  position: fixed;
  bottom: 60px;
  right: 200px;
  z-index: 30;
  background: #babfc3;
  width: 40px;
  height: 40px;
}

#scrollToTopBtn.show:hover {
  background: #ea130e;
}

@media (max-width: 1400px) {
  #scrollToTopBtn.show {
    right: 40px;
  }
}

@media (width < 1200px) {
  #scrollToTopBtn.show {
    right: 20px;
    width: 32px;
    height: 32px;
  }

  #scrollToTopBtn.show svg {
    width: 16px;
  }
}

#map {
  height: 400px;
}

.ymaps-2-1-79-controls__toolbar,
.ymaps-2-1-79-zoom,
.ymaps-2-1-79-copyright__wrap,
.ymaps-2-1-79-map-copyrights-promo,
.ymaps-2-1-79-controls__bottom {
  display: none !important;
}

.input-location-search .locations-list {
  display: grid;
  gap: 0px;
  background: red;
}

.input-location-search .content {
  display: none;
  background: #e8ecef;
}

.input-location-search .content li {
  padding: 2px 16px;
}

.input-location-search .content li:hover {
  background-color: #788188;
}

.input-location-search:has(input:focus) .content {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: absolute;
  bottom: -4px;
  transform: translateY(100%);
  padding: 6px 0;
  padding-right: 8px;
}

.input-location-search .content:has(:empty(.list)) {
  display: none !important;
}

.input-location-search .content .list {
  max-height: 156px;
  overflow: auto;
  padding-right: 8px;
}

.input-location-search .option {
  padding: 2px 16px;
  cursor: pointer;
  color: #788188;
}

.input-location-search .option:hover {
  background-color: #788188;
  color: white;
}

.input-location-search .content .list::-webkit-scrollbar {
  width: 2px; /* Ширина ползунка */
}

.input-location-search .content .list::-webkit-scrollbar-track {
  background: transparent; /* Фон дорожки делаем прозрачным */
  margin: 8px; /* Добавляем отступы сверху и снизу, как у padding */
}

.input-location-search .content .list::-webkit-scrollbar-thumb {
  background-color: #788188; /* Цвет самого ползунка */
  border-radius: 4px; /* Скругляем углы ползунка */
}

/* End */


/* Start:/local/templates/textile/components/bitrix/menu/top_menu/style.min.css?1750622293490*/
ul.left-menu{list-style:none;margin:0;padding:0;margin-bottom:8px;position:relative}ul.left-menu li{padding:10px 16px;background:#f5f5f5 url(/local/templates/textile/components/bitrix/menu/top_menu/images/left_menu_bg.gif) top repeat-x}ul.left-menu li a{font-size:100%;color:#bc262c;font-weight:bold;text-decoration:none}ul.left-menu li a:visited{color:#bc262c}ul.left-menu li a:hover{color:#bc262c}ul.left-menu li a.selected:link,ul.left-menu li a.selected:visited,ul.left-menu li a.selected:active,ul.left-menu li a.selected:hover{color:#fc8d3d}
/* End */


/* Start:/local/templates/textile/components/bitrix/menu/top_menu_mobile/style.min.css?1750622293490*/
ul.left-menu{list-style:none;margin:0;padding:0;margin-bottom:8px;position:relative}ul.left-menu li{padding:10px 16px;background:#f5f5f5 url(/local/templates/textile/components/bitrix/menu/top_menu_mobile/images/left_menu_bg.gif) top repeat-x}ul.left-menu li a{font-size:100%;color:#bc262c;font-weight:bold;text-decoration:none}ul.left-menu li a:visited{color:#bc262c}ul.left-menu li a:hover{color:#bc262c}ul.left-menu li a.selected:link,ul.left-menu li a.selected:visited,ul.left-menu li a.selected:active,ul.left-menu li a.selected:hover{color:#fc8d3d}
/* End */


/* Start:/local/templates/textile/components/bitrix/menu/footer_menu_column/style.min.css?1750622293490*/
ul.left-menu{list-style:none;margin:0;padding:0;margin-bottom:8px;position:relative}ul.left-menu li{padding:10px 16px;background:#f5f5f5 url(/local/templates/textile/components/bitrix/menu/footer_menu_column/images/left_menu_bg.gif) top repeat-x}ul.left-menu li a{font-size:100%;color:#bc262c;font-weight:bold;text-decoration:none}ul.left-menu li a:visited{color:#bc262c}ul.left-menu li a:hover{color:#bc262c}ul.left-menu li a.selected:link,ul.left-menu li a.selected:visited,ul.left-menu li a.selected:active,ul.left-menu li a.selected:hover{color:#fc8d3d}
/* End */
/* /local/templates/textile/assets/css/main.css?175204564436644 */
/* /local/templates/textile/components/bitrix/menu/top_menu/style.min.css?1750622293490 */
/* /local/templates/textile/components/bitrix/menu/top_menu_mobile/style.min.css?1750622293490 */
/* /local/templates/textile/components/bitrix/menu/footer_menu_column/style.min.css?1750622293490 */
