/* Базовые стили и сброс */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
}

.header__nav-links,
.header__logo,
.header__phone {
  color: #00104b;
}
.container_wider {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.advantages-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Секция герой */
.hero {
  position: relative;
  min-height: 850px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.hero__container {
  position: relative;
  z-index: 3;
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding-top: 114px; /* Высота хедера */
}

.hero__content {
  max-width: 718px;
  padding: 40px 0;
}

/* Заголовок */
.hero__title {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 40px;
  color: #ffffff;
}

/* Описание */
.hero__description {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 50px;
  color: #ffffff;
}

.hero__description p {
  margin-bottom: 20px;
}

.hero__list {
  list-style-type: none;
  padding-left: 20px;
}

.hero__list-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.hero__list-item:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
}

/* Кнопка */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: #ffffff;
  background-color: #0a2896;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #0232e0;
}

.hero__button {
  min-width: 320px;
}

/* Хедер */
.header {
  background-color: #ffffff;
}

/* Логотип */
.logo {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 31px;
  font-weight: 100;
  text-transform: uppercase;
  color: #0a2896;
  text-decoration: none;
  letter-spacing: 1px;
}

.header__logo {
  flex-shrink: 0;
}

/* Навигация */
.nav__list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav__link {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #00104b;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.nav__link:hover,
.nav__link--active {
  color: #0a2896;
}

/* Контакты в хедере */
.header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #00104b;
  text-decoration: none;
  white-space: nowrap;
}

.header__phone {
  transition: color 0.3s ease;
}

.header__phone:hover {
  color: #0a2896;
}

/* Социальные иконки */
.social {
  display: flex;
  gap: 10px;
}

.social__link {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.social__link:hover {
  opacity: 0.8;
}

.social__icon {
  display: block;
  width: 32px;
  height: 32px;
}

/* Адаптивность */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  .hero__title {
    font-size: 36px;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }

  .header__container {
    flex-wrap: wrap;
    padding: 10px 20px;
    height: auto;
  }

  .logo {
    font-size: 25px;
    margin-bottom: 10px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-top: 15px;
  }

  .nav__list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
  }

  .header__contacts {
    margin-left: auto;
  }

  .hero__container {
    padding-top: 150px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__button {
    min-width: 280px;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 640px;
  }

  .header__contacts {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__description {
    font-size: 18px;
  }

  .hero__button {
    min-width: 100%;
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .container {
    padding: 0 15px;
  }

  .nav__list {
    gap: 10px 20px;
  }

  .nav__link {
    font-size: 14px;
  }

  .phone {
    font-size: 14px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__description {
    font-size: 16px;
  }
}

/* Секция преимуществ */
.advantages {
  position: relative;
  padding: 40px 0 0 0;
  color: #00104b;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)),
    url(../img/content/5361690920100071139.webp) center/cover fixed;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  overflow: hidden;
}

.advantages::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)),
    url(../img/content/5361690920100071139.webp) center/cover fixed;
  background-size: cover;
  background-attachment: fixed;
  filter: blur(2px);
  z-index: -1;
}

.advantages__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.advantages .container {
  position: relative;
  z-index: 2;
}

.advantages__title {
  font-family: "Unbounded", sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  max-width: 1031px;
  margin: 0 auto 10px;
  color: #00104b;
}

/* Сетка преимуществ */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
  align-items: flex-start;
}

/* Карточка преимущества */
.advantage-card {
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.advantage-card__icon {
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  transition: 10s linear;
}
.pluses-section__item {
  padding-left: 0;
}

.advantage-card__icon img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-right: 20px;
  display: block;
}

.advantage-card__title {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 15px;
  color: #00104b;
}

.advantage-card__description {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  color: #00104b;
}

/* Адаптивность для секции преимуществ */
@media (max-width: 1199px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .advantages__title {
    font-size: 28px;
    margin-bottom: 50px;
  }
}

@media (max-width: 767px) {
  .advantages {
    padding: 60px 0;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .advantages__title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .advantage-card {
    padding: 15px;
  }

  .advantage-card__title {
    font-size: 16px;
  }

  .advantage-card__description {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .advantages {
    padding: 40px 0;
  }

  .advantages__title {
    font-size: 20px;
    margin-bottom: 30px;
  }
}

/* Секция клиентов */
.clients {
  padding: 90px 0;
  background-color: #ffffff;
}

.clients__title {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  color: #00104b;
  text-align: center;
  max-width: 1031px;
  margin: 0 auto 40px;
}

/* Строка с карточками */
.clients__row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.clients__row--two {
  justify-content: center;
}

/* Карточка клиента */
.client-card {
  position: relative;
  width: 658px;
  min-height: 248px;
  border: 1px solid #d4d4d4;
  border-radius: 15px;
  background-color: #ffffff;
  overflow: hidden;
}

.client-card__number {
  position: absolute;
  left: 7px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 150px;
  font-weight: 700;
  line-height: 1.25;
  color: #0a2896;
  z-index: 1;
  height: 248px;
  width: 109px;
  display: flex;
  align-items: center;
}

.client-card__wrapper {
  position: relative;
  padding: 0 20px 0 116px;
  height: 100%;
  display: flex;
  align-items: center;
}

.client-card__content {
  position: relative;
  z-index: 2;
}

.client-card__text {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  color: #00104b;
  margin: 0;
}

.client-card__text strong {
  font-weight: 700;
}

/* Для карточек с номерами 2 и 4 */
.client-card:nth-child(1) .client-card__number {
  width: 122px;
}

.client-card:nth-child(2) .client-card__number {
  width: 122px;
}

/* Подзаголовок */
.clients__subtitle {
  max-width: 916px;
  margin: 0 auto;
  text-align: center;
}

.clients__subtitle p {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.35;
  color: #00104b;
  margin-top: 40px;
}

/* Адаптивность для секции клиентов */
@media (max-width: 1400px) {
  .client-card {
    width: 48%;
    min-height: 220px;
  }

  .client-card__number {
    font-size: 120px;
    height: 220px;
  }
}

@media (max-width: 1199px) {
  .clients {
    padding: 60px 0;
  }

  .clients__title {
    font-size: 28px;
    margin-bottom: 60px;
  }

  .clients__row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
  }

  .client-card {
    width: 100%;
    max-width: 658px;
    min-height: 200px;
  }

  .client-card__number {
    top: 50%;
    transform: translateY(-50%);
    font-size: 100px;
    height: auto;
  }

  .clients__subtitle {
    margin-bottom: 60px;
  }

  .clients__subtitle p {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .clients {
    padding: 40px 0;
  }

  .clients__title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .client-card {
    min-height: 180px;
  }

  .client-card__wrapper {
    padding: 20px 40px;
  }

  .client-card__number {
    font-size: 80px;
    left: 10px !important;
  }

  .client-card__text {
    font-size: 16px;
    padding-left: 30px;
  }

  .clients__subtitle p {
    font-size: 20px;
  }
}

@media (max-width: 575px) {
  .client-card {
    min-height: 160px;
  }

  .client-card__wrapper {
    padding: 15px 30px;
  }

  .client-card__number {
    font-size: 60px;
  }

  .clients__subtitle p {
    font-size: 18px;
  }
}

/* Секция схем работы */
.schemes {
  position: relative;
  padding: 75px 0 75px;
  color: #ffffff;
  overflow: hidden;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url(../img/content/cases-bg.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.schemes .container {
  position: relative;
  z-index: 2;
}

.schemes__title {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  max-width: 1007px;
  margin: 0 auto 75px;
  color: #ffffff;
}

/* Сетка карточек */
.schemes__grid {
  display: flex;
  gap: 72px;
  justify-content: center;
}

/* Карточка схемы */
.scheme-card {
  width: 100%;
  max-width: 562px;
  max-height: 200px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.22);
  padding: 15px 20px;
}

.scheme-card__wrapper {
  display: flex;
  height: 100%;
  justify-content: space-between;
  align-items: center;
}

.scheme-card__content {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.scheme-card__title {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #00104b;
}

.scheme-card__text {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #00104b;
  margin: 0;
  flex: 1;
}

.scheme-card__image {
  position: relative;
  top: -52px;
  left: 65px;
  flex-shrink: 0;
  z-index: 999;
}

.scheme-card__image img {
  max-width: 100%;
  object-fit: contain;
}

.wr-img {
  margin-top: 100px;
}

/* Для второй карточки (другой размер изображения) */
.scheme-card:nth-child(2) .scheme-card__image {
  width: 190px;
}

/* Адаптивность для секции схем */
@media (max-width: 1199px) {
  .schemes {
    padding: 60px 0 400px;
  }

  .schemes__title {
    font-size: 28px;
    margin-bottom: 60px;
  }

  .schemes__grid {
    gap: 40px;
  }

  .scheme-card {
    width: 48%;
    height: 180px;
  }

  .scheme-card__title {
    font-size: 18px;
    min-height: 70px;
  }

  .scheme-card__text {
    font-size: 14px;
  }

  .scheme-card__image {
    width: 180px;
  }

  .scheme-card:nth-child(2) .scheme-card__image {
    width: 150px;
  }
}

@media (max-width: 991px) {
  .schemes {
    padding: 50px 0 350px;
  }

  .schemes__grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .scheme-card {
    width: 100%;
    max-width: 544px;
    height: auto;
    min-height: 180px;
  }

  

  .scheme-card__content {
    padding-right: 0;
    margin-bottom: 20px;
  }

  .scheme-card__title {
    min-height: auto;
    margin-bottom: 10px;
  }

  .scheme-card__image {
    width: 150px !important;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .schemes {
    padding: 40px 0 300px;
  }

  .schemes__title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .scheme-card {
    padding: 20px 15px;
  }

  .scheme-card__title {
    font-size: 16px;
  }

  .scheme-card__text {
    font-size: 14px;
  }

  .scheme-card__image {
    position: relative;
    width: 120px !important;
    top: -23px;
    left: 0;
  }
}

@media (max-width: 575px) {
  .schemes {
    padding: 30px 0 70px;
  }

  .schemes__title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .scheme-card {
    padding: 15px;
  }

  .scheme-card__title {
    font-size: 14px;
  }

  .scheme-card__text {
    font-size: 12px;
  }
}

/* Секция историй партнеров */
.stories {
  position: relative;
  padding: 90px 0;
  color: #00104b;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.stories__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)),
    url(../img/content/5361690920100071139.webp) center/cover fixed;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  overflow: hidden;
  z-index: 1;
}

.stories__background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)),
    url(../img/content/5361690920100071139.webp) center/cover fixed;
  background-size: cover;
  background-attachment: fixed;
  filter: blur(1px);
  z-index: -1;
}

.stories .container {
  position: relative;
  z-index: 2;
}

/* Заголовок и управление */
.stories__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 90px;
}

.stories__title {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.35;
  color: #00104b;
  margin: 0;
}

.stories__controls {
  display: flex;
  gap: 10px;
}

.stories__control {
  width: 40px;
  height: 40px;
  border-radius: 50px;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  padding: 0;
}

.stories__control:hover {
  background-color: #f0f0f0;
}

.stories__control svg {
  width: 20px;
  height: 20px;
}

/* Слайдер */
.stories__slider {
  overflow: hidden;
  position: relative;
}

.stories__track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
  padding: 10px 0;
}

/* Карточка истории */
.story-card {
  flex: 0 0 calc(50% - 15px);
  min-width: calc(50% - 15px);
  background-color: #ffffff;
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 432px;
}

.story-card__header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.story-card__image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
}

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

.story-card__info {
  flex: 1;
}

.story-card__name {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: #00104b;
  margin: 0 0 10px 0;
}

.story-card__position {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: #00104b;
  margin: 0;
  opacity: 0.8;
}

.story-card__text {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #00104b;
}

.story-card__text p {
  margin: 0;
}

/* Адаптивность для секции историй */
@media (max-width: 1199px) {
  .stories {
    padding: 60px 0;
  }

  .stories__header {
    margin-bottom: 60px;
  }

  .stories__title {
    font-size: 28px;
  }

  .story-card {
    flex: 0 0 calc(100% - 15px);
    min-width: calc(100% - 15px);
  }
}

@media (max-width: 991px) {
  .stories__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
  }

  .header {
    height: 60px;
  }
  .header__burger i {
    background: #00104b;
  }

  .stories__header-right {
    align-self: flex-end;
  }

  .story-card__header {
    gap: 20px;
    margin-bottom: 20px;
  }

  .story-card {
    padding: 30px;
  }

  .story-card__image {
    width: 80px;
    height: 80px;
  }

  .story-card__name,
  .story-card__position {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .stories {
    padding: 40px 0;
  }

  .stories__title {
    font-size: 24px;
  }

  .stories__track {
    gap: 20px;
  }

  .story-card {
    padding: 25px;
  }

  .story-card__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .story-card__image {
    width: 70px;
    height: 70px;
  }

  .story-card__info {
    text-align: center;
  }

  .story-card__name,
  .story-card__position {
    font-size: 14px;
  }

  .story-card__text {
    font-size: 14px;
    text-align: center;
  }
}

@media (max-width: 575px) {
  .stories__title {
    font-size: 20px;
  }

  .stories__control {
    width: 35px;
    height: 35px;
  }

  .stories__control svg {
    width: 16px;
    height: 16px;
  }

  .story-card {
    padding: 20px 15px;
  }

  .story-card__image {
    width: 60px;
    height: 60px;
  }

  .story-card__text {
    font-size: 13px;
  }
}

/* Swiper стили для слайдера партнеров */
.stories__slider .swiper {
  overflow: visible;
}

.stories__slider .swiper-wrapper {
  padding: 10px 0;
}

.stories__slider .swiper-slide {
  height: auto;
}

/* Пагинация для мобильных */
.stories__pagination {
  display: none;
  margin-top: 32px;
  position: relative !important;
  height: 17px;
}

.stories__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 1;
  margin: 0 4px !important;
  background: #ddd;
  border: 1px solid var(--color-accent);
  transition: all 0.3s ease;
}

.stories__pagination .swiper-pagination-bullet-active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* Адаптивные стили */
@media (max-width: 1199px) {
  .stories__header {
    margin-bottom: 60px;
  }

  /* На планшетах показываем 2 карточки */
  .stories__slider .swiper-slide {
    width: calc(50% - 15px) !important;
  }
}

@media (max-width: 991px) {
  .stories__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
  }

  .stories__header-right {
    align-self: flex-end;
  }

  .story-card {
    padding: 30px;
  }

  .story-card__header {
    gap: 20px;
    margin-bottom: 20px;
  }

  .story-card__image {
    width: 80px;
    height: 80px;
  }

  .story-card__name,
  .story-card__position {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  /* На мобильных скрываем десктопные кнопки */
  .stories__controls {
    display: none;
  }

  /* На мобильных показываем 1 карточку */
  .stories__slider .swiper-slide {
    width: 100% !important;
  }

  /* Показываем пагинацию на мобильных */
  .stories__pagination {
    display: block;
  }

  /* Стили для свайпа */
  .stories__slider {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: pan-y;
  }
}

@media (max-width: 767px) {
  .stories {
    padding: 40px 0;
  }

  .stories__title {
    font-size: 24px;
  }

  .story-card {
    padding: 25px;
  }

  .story-card__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .story-card__image {
    width: 70px;
    height: 70px;
  }

  .story-card__info {
    text-align: center;
  }

  .story-card__name,
  .story-card__position {
    font-size: 14px;
  }

  .story-card__text {
    font-size: 14px;
    text-align: center;
  }
}

@media (max-width: 575px) {
  .stories__title {
    font-size: 20px;
  }

  .story-card {
    padding: 20px 15px;
    min-height: 300px;
  }

  .story-card__image {
    width: 60px;
    height: 60px;
  }

  .story-card__text {
    font-size: 13px;
  }
}

@media (max-width: 1199px) {
  /* Создаем контейнер для всех карточек */
  .clients .container > .clients__row:first-child {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 30px;
    margin-bottom: 30px;
  }

  /* Позиционируем карточки в нужном порядке */
  .clients .container > .clients__row:first-child .client-card:nth-child(1) {
    grid-row: 1;
  }

  .clients .container > .clients__row:first-child .client-card:nth-child(2) {
    grid-row: 3; /* Карточка 3 (с номером 3) становится третьей */
  }

  /* Альтернативный подход: используем display: contents */
  .clients__row {
    display: contents;
  }

  .clients .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Явно указываем порядок для мобильных */
  .client-card:nth-child(1) {
    order: 1;
    margin-bottom: 20px;
  } /* Карточка с номером 1 */
  .client-card:nth-child(3) {
    order: 2;
    margin-bottom: 20px;
  } /* Карточка с номером 2 (но в HTML это 3-я карточка) */
  .client-card:nth-child(2) {
    order: 3;
    margin-bottom: 20px;
  } /* Карточка с номером 3 (но в HTML это 2-я карточка) */
  .client-card:nth-child(4) {
    order: 4;
  } /* Карточка с номером 4 */
}

/* Убедимся, что в десктопе все выглядит как раньше */
@media (min-width: 1200px) {
  .clients__row {
    display: flex;
  }

  .clients__row--two {
    justify-content: center;
  }
}
