        :root {
            --sidebar-width: 220px;
            --dark-bg: #0f172a;
            --dark-bg-light: #16223b;
            --accent: #1e3a8a;
            --text-light: #ffffff;
            --text-dark: #1e1e1e;
            --text-secondary: #656870;
        }

        .about__container {
            width: 100%;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
            -webkit-box-align: start;
            -ms-flex-align: start;
            align-items: flex-start;
            -webkit-box-pack: start;
            -ms-flex-pack: start;
            justify-content: flex-start;
            line-height: 1.5em;
        }

        /* ===== hero ===== */
        .hero { padding: 48px 64px; }

        /* двух-колоночная шапка (заголовок слева, описание справа) */
        .hero__grid {
            display: grid;
            grid-template-columns: minmax(0, 50%) 1fr;
            gap: 48px;
            align-items: end;
            margin-bottom: 48px;
            width: 100%;
        }
        .hero__heading h1 {
            font-size: clamp(32px, 6vw, 56px);
            line-height: 1.1;
            font-weight: 700;
            margin: 0 0 12px;
        }
        .hero__heading h2 {
            font-size: clamp(24px, 4vw, 40px);
            line-height: 1.2;
            font-weight: 600;
            color: var(--text-secondary);
            margin: 0;
        }
        .hero__description {
            font-size: 18px;
            line-height: 1.4;
            margin: 0;
            max-width: 660px;
        }

        /* ===== row of cards ===== */
        .services {
            display: flex;
            width: 100%;
            gap: 0;                         /* без отступов */
            overflow: hidden;
            background: #000;               /* если промелькнёт фон — будет тёмным */
            border-radius: 10px;
            overflow: hidden;
        }

        .service-card {
            flex: 1 1 0;                    /* все равны: 1/3 */
            min-width: 0;
            position: relative;
            height: 340px;
            overflow: hidden;
            color: var(--text-light);
            transition: flex-grow .4s ease;
            border-right: 1px solid transparent; /* перекрываем возможные щели */
        }
        .service-card + .service-card { margin-left: -1px; } /* перекрытие */

        .service-card__img {
            position: absolute; inset: 0;
            width: 100%; height: 100%; object-fit: cover;
            filter: brightness(.7);
            transition: transform .4s ease;
        }
        .service-card:hover .service-card__img { transform: scale(1.05); }

        .service-card__content {
            position: absolute; inset: 0;
            display: flex; flex-direction: column; justify-content: flex-end;
            padding: 24px; pointer-events: none;
        }
        .service-card__category { font-size: 14px; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
        .service-card__title    { font-size: 26px; font-weight: 600; margin: 0 0 12px; }
        .service-card__text{
    /* изначально «сплющен» и невидим */
    max-height:0;            /* не занимать места */
    opacity:0;               /* не просвечивать */
    overflow:hidden;         /* обрезаем текст */
    transform:translateY(20px); /* лёгкий сдвиг вниз */
    transition:
        max-height .85s ease,
        opacity    .85s ease,
        transform  .85s ease;
}

.service-card:hover .service-card__text{
    max-height:200px;        /* достаточно большое значение */
    opacity:1;
    transform:translateY(0);
}

        /* ===== responsive tweaks ===== */
        @media (max-width: 1024px) {
            .hero__grid { grid-template-columns: 1fr; align-items: start; } /* стекаем заголовок и описание */
            .hero__description { margin-top: 0; }
        }
        @media (max-width: 880px) {
            .page            { flex-direction: column; }
            .sidebar         { flex-direction: row; align-items: center; justify-content: space-between;
                               width: 100%; padding: 12px 16px; }
            .sidebar__menu,
            .sidebar__contacts { display: none; }
            .main            { padding-top: 0; }
        }

        /* ===== why-section ===== */
.why           { padding: 64px 0 64px 0; }
.why2           { padding: 0 0 64px 0; }
.why__grid     {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;           /* 50 / 50 */
    gap: 48px;
    align-items: center;
}

.why__title    {                         /* заголовок */
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 28px;
}

.why__lead     {                         /* вводный абзац */
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 32px;
    max-width: 560px;
}

.why__list           {                  /* список тезисов */
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}
.why__list li        { position: relative; padding-left: 28px; margin-bottom: 16px; }
.why__list li::before{
    content: '';
    position: absolute;
    left: 0; top: 10px;                  /* центр кружка по Y первой строки */
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #057DF5;          /* синий из палитры */
}

/* изображение */
.why__media img {
    width: 100%; height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* ===== responsive tweaks ===== */
@media (max-width: 1024px) {
    .why           { padding: 48px 32px 64px; }
    .why__grid     { grid-template-columns: 1fr; }
    .why__media    { order: -1; margin-bottom: 32px; }  /* картинка наверх */
}

@media (max-width: 560px) {
    .why           { padding: 40px 20px 56px; }
    .why__title    { margin-bottom: 20px; }
    .why__lead     { margin-bottom: 28px; }
    .why__list li  { margin-bottom: 12px; }
}

/* ==== ≤ 930 px: карточки одна под другой ==== */
@media (max-width: 930px){

  /* весь ряд превращаем в колонку */
  .services{
      flex-direction: column;          /* было только до 880 — расширяем диапазон */
  }

  /* каждая карточка занимает всю ширину
     и не реагирует на inline-скрипт с flex-grow */
  .service-card{
      flex: 0 0 auto !important;       /* отменяем grow, shrink = 0 */
      width: 100%;
      height: 260px;                   /* ту же высоту, что стояла на 880 px */
      margin-left: 0 !important;
      border-right: none;
  }

  /* отключаем зум картинки на hover */
  .service-card:hover .service-card__img{
      transform: none;
  }

  /* текст описания виден сразу, без анимаций */
  .service-card__text{
      max-height: none;
      opacity: 1;
      transform: none;
      overflow: visible;
      transition: none;
  }
}





/* Partners section */

.partners-section {
  padding: 60px 0;
  background-color: #fff;
}

.partners-section__wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

@media screen and (max-width:1240px) {
  .partners-section__wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}

.partners-section__heading {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  width: 400px;
}

@media screen and (max-width:1440px) {
  .partners-section__heading {
    width: auto;
  }
}

@media screen and (max-width:1240px) {
  .partners-section__heading {
    margin-bottom: 36px;
  }
}

@media screen and (max-width:940px) {
  .partners-section__heading {
    font-size: 21px;
  }
}

@media screen and (max-width:440px) {
  .partners-section__heading {
    font-size: 21px;
    text-align: center;
  }
}

.partners-section__items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

@media screen and (max-width:880px) {
  .partners-section__items {
    flex-wrap: wrap;
  }
}

@media screen and (max-width:430px) {
  .partners-section__items {
    flex-direction: column;
    align-items: flex-start;
  }
}

.partners-section__item-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 52px;
  padding: 20px;
}

@media screen and (max-width:1780px) {
  .partners-section__item-wrapper {
    height: 40px;
  }
}

@media screen and (max-width:1240px) {
  .partners-section__item-wrapper {
    padding: 10px;
  }
}

/* @media screen and (max-width:1600px) {
  .partners-section__item-wrapper {
    height: 36px;
  }
}

@media screen and (max-width:880px) {
  .partners-section__item-wrapper {
    width: 30%;
    margin-bottom: 24px;
  }
}

@media screen and (max-width:560px) {
  .partners-section__item-wrapper {
    height: 34px;
  }
}

@media screen and (max-width:418px) {
  .partners-section__item-wrapper {
    width: 46%;
  }
} */

.partners-section__item-img-wrapper {
  height: 36px; 
}

.partners-section__item-img {
  max-height: 100%;
  max-width: 100%;
}
