
:root {
  --color-bg: #fff;
  --color-accent: #1891D8;
  --color-white: #fff;
  --header-height: 80px;
  --container-pad: 32px;
}

@media (max-width: 600px) {
  :root {
    --header-height: 56px;
  }
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  /*padding-left: 32px;
  padding-right: 32px;*/
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* Thin (200) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-Thin.woff2') format('woff2'),
       url('/fonts/Axiforma-Thin.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Regular (400) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-Regular.woff2') format('woff2'),
       url('/fonts/Axiforma-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium (500) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-Medium.woff2') format('woff2'),
       url('/fonts/Axiforma-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* SemiBold (600) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-SemiBold.woff2') format('woff2'),
       url('/fonts/Axiforma-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-Bold.woff2') format('woff2'),
       url('/fonts/Axiforma-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ExtraBold (900) */
@font-face {
  font-family: 'Axiforma';
  src: url('/fonts/Axiforma-ExtraBold.woff2') format('woff2'),
       url('/fonts/Axiforma-ExtraBold.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

html, body {
  margin: 0; padding: 0;
  font-family: 'Axiforma', Arial, sans-serif;
  background: var(--color-white);
  color: var(--color-white);
  min-height: 100%;
}
body { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

header {
  width: 100%;
  height: var(--header-height);
  min-height: var(--header-height);
  background: #051923;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0;
  z-index: 110;
  border-bottom: 1px solid #17353f;
  padding: 0 var(--container-pad);
  box-sizing: border-box;
}
.header__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 210px;
}
.burger {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 112;
  margin-right: 6px;
}
.burger-lines {
  width: 28px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.burger-line {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.header__left a {
  font-size: 1.06rem;
  color: #fff;
  opacity: 0.90;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  top: 1px;
}
.header__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.logo-imago { display: flex; align-items: flex-end; gap: 3px; }
.logo-imago-main {
  height: 70px;
  margin-top: 10px;
}
.logo-imago-desc {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: #d3e3ed;
  margin-bottom: 1.5px;
}
.logo-x {
  font-weight: 700;
  font-size: 1.45rem;
  color: #1891d8;
  margin: 0 7px 0 7px;
  opacity: 0.92;
}
.logo-rey {
  display: flex; align-items: flex-end; gap: 3px;
}
.logo-rey-main {
  height: 20px;
  background: #13283A;
  border-radius: 5px;
}
.logo-rey-text {
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 3px;
  color: #e7ecee;
  letter-spacing: 0.02em;
  opacity: 0.88;
  white-space: nowrap;
}
.header__right {
  display: flex;
  align-items: center;
  gap: 34px;
  justify-content: flex-end;
  min-width: 0;
}
.header__right a {
  font-size: 1.06rem;
  color: #fff;
  opacity: 0.91;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.18s;
  white-space: nowrap;
}
.header__right a:hover { opacity: 1; }
/* Burger active (for later animation) */
.burger.open .burger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burger.open .burger-line:nth-child(2) {
  opacity: 0;
}
.burger.open .burger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* SIDEBAR MENU */
.side-menu {
  position: fixed;
  top: 0; left: 0;
  width: 320px;
  max-width: 98vw;
  height: 100vh;
  background: #17353f;
  color: #fff;
  z-index: 120;
  box-shadow: 4px 0 34px rgba(12,34,41,0.16);
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(.4,1,.45,1);
  padding: 44px 0 0 0;
  display: flex;
  flex-direction: column;
}
.side-menu.open { transform: translateX(0); }
.side-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
  padding: 0 36px;
}
.side-menu__nav a {
  font-size: 1.18rem;
  padding: 10px 0;
  color: #fff;
  opacity: 0.92;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.18s;
}
.side-menu__nav a:hover { color: var(--color-accent); }
.side-menu__close {
  position: absolute;
  top: 14px; right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}
.side-menu__overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(12,34,41,0.47);
  z-index: 119;
  display: none;
}
.side-menu.open + .side-menu__overlay { display: block; }

/* Адаптив */

@media (max-width: 1200px) {
  .header__center {
    flex-direction: column;
    gap: 1px;
    max-width: 210px;
  }
  .logo-imago-desc,
  .logo-rey-text {
    display: none;
  }
  .header__left a,
  .header__right a {
    font-size: 0.8rem;
  }
}

@media (max-width: 850px) {
  .header__right {
    display: none;
  }
  .header__center {
    margin-right: 10px;
  }
  .burger {
    margin-left: 0;
  }
  .logo-imago-main {
    height: 40px !important;
  }
}

@media (max-width: 600px) {
  :root { --header-height: 56px; }
  .header {
    padding: 0 6px;
    min-height: unset;
    height: auto;
  }
  /*.logo-imago-main { height: 20px !important; }
  .logo-rey-main { height: 14px !important; }*/
  .header__left a { font-size: 0.9rem; }
  .burger { width: 32px; height: 32px; margin-right: 4px; }
}

/* --- Hero section --- */
    .hero {
  position: relative;
  width: 100%;
  min-height: 700px;   /* подбери под свой макет, например 640px */
  height: 100vh;        /* или 100vh, если нужен fullscreen */
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: none;    /* убери фон, если был */
  overflow: hidden;
}

   .hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;     /* 40px от нижнего края hero */
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* чтобы все было у низа */
  pointer-events: none;
  width: 100%;
  background: none;
}

    .hero__title {
      font-size: 3.6rem;
      font-weight: 700;
      line-height: 1.1;
      margin-bottom: 12px;
      letter-spacing: -1px;
    }
    .hero__subtitle {
      font-size: 1.3rem;
      font-weight: 500;
      margin-bottom: 32px;
    }
    .hero-cta-btn {
  pointer-events: auto;         /* делаем кнопку кликабельной */
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.3rem;
  border-radius: 10px;
  padding: 14px 28px;
  margin: 0 auto;
  min-width: 180px;
  max-width: 320px;
  width: 100%;
  z-index: 5;
  box-shadow: 0 4px 32px 0 rgba(24,32,40,0.12);
  transition: background 0.2s, color 0.2s;
}
.hero-cta-btn:hover,
.hero-cta-btn:focus {
  background: none;
  color: #25a9e2;
  border: 2px solid #25a9e2;
}

/* Мобильная адаптация */
@media (max-width: 700px) {
  .hero {
    min-height: 340px;
    height: 100vh;
  }
  .hero__content {
    left: 0; right: 0; top: 0; bottom: 40;
  }
  .hero-cta-btn {
    font-size: 1.08rem;
    padding: 12px 8px;
    min-width: 70vw;
    max-width: 96vw;
  }
}


/* --- Ideas Section --- */
.ideas-section {
  width: 100%;
  background: #fff;
  padding: 0 0 2px 0;
}

.ideas-title {
  text-align: center;
  font-size: 2.45rem;
  font-weight: 500;
  color: #16232a;
  margin-bottom: 48px;
  letter-spacing: 0;
  font-family: 'Axiforma', Arial, sans-serif;
}

.ideas-cards {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.ideas-card {
/*  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(12,34,41,0.09);*/
  /*border-radius: 16px;*/
  overflow: hidden;
  width: 340px;
  min-width: 240px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: anchor-center;
  transition: box-shadow 0.22s;
}

/*.ideas-card:hover {
  box-shadow: 0 6px 32px 0 rgba(24,145,216,0.13);
}*/

.ideas-card__img {
  width: 275px;
  height: 260px;
  object-fit: cover;
  display: block;
  background: #d7e5ee;
}

.ideas-card__caption {
  font-size: 1.4rem;
  color: #192f39;
  text-align: center;
  font-family: 'Axiforma', Arial, sans-serif;
  font-weight: 500;
  line-height: 1.25;
  padding: 24px 18px 28px 18px;
}

@media (max-width: 1050px) {
  .ideas-cards { gap: 16px; }
  .ideas-card { width: 96vw; max-width: 430px; }
}

@media (max-width: 900px) {
  .ideas-cards {
    flex-direction: column;
    align-items: center;
  }
  .ideas-card { width: 99vw; max-width: 440px; }
}

@media (max-width: 700px) {
  .ideas-section {
    padding: 36px 0 16px 0;
  }
  .ideas-title { font-size: 1.18rem; margin-bottom: 22px; }
  /*.ideas-card__img { height: 38vw; min-height: 120px; }*/
  .ideas-card__caption { font-size: 1.05rem; padding: 14px 8px 16px 12px; }
}



/* --- Portfolio  --- */
.portfolio-grid {
  display: flex;
  width: 100%;
  min-height: 290px;
  gap: 0;
  margin-top: 42px;
}
.portfolio-grid__left,
.portfolio-grid__right {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-grid__left {
  justify-content: center;
}
.portfolio-grid__main-img {
  width: 75%;
  max-width: 520px;
  min-width: 320px;
  box-shadow: 0 8px 32px rgba(12,34,41,0.14);
  background: #222;
  object-fit: cover;
}
.portfolio-grid__right {
  display: flex;
  align-items: center;            /* <-- ВАЖНО! не flex-start */
  justify-content: flex-start;
  padding-left: 32px;
  min-width: 420px;
  box-sizing: border-box;
}
.portfolio-grid__thumbs-and-desc {
  display: flex;
  flex-direction: row;
  align-items: center;            /* <-- ВАЖНО! не flex-start */
  gap: 34px;
}
.portfolio-grid__thumbs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.portfolio-grid__thumbs img {
  width: 110px;
  height: 68px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: opacity 0.2s, border 0.2s;
}
.portfolio-grid__thumbs img.active,
.portfolio-grid__thumbs img:hover {
  opacity: 1;
  border: 2px solid #88a2b3;
}
.portfolio-grid__desc {
  font-size: 1.05rem;
  color: #1a252d;
  max-width: 320px;
  line-height: 1.45;
  font-weight: 200;
  text-align: left;
}
.portfolio-grid__name {
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: #182028;
  letter-spacing: 0.01em;
}

/* --- portfolio-all-link --- */
.portfolio-all-link {
  color: #192f39;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s;
  margin-top: 14px;
  display: inline-block;
}
.portfolio-all-link:hover {
  color: #1891d8;
}

/* --- Адаптив: до 1024px --- */
@media (max-width: 1024px) {
  .portfolio-grid {
    flex-direction: column;
    align-items: center;
    min-height: unset;
  }
  .portfolio-grid__right,
  .portfolio-grid__left {
    min-width: unset;
    width: 100%;
    padding-left: 0;
    justify-content: center;
    align-items: flex-start;
  }
  .portfolio-grid__main-img {
    width: 90vw;
    max-width: 440px;
    min-width: 0;
    margin-bottom: 18px;
  }
  .portfolio-grid__thumbs-and-desc {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
  }
  .portfolio-grid__thumbs {
    flex-direction: row;
    gap: 10px;
    width: auto;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
  }
  .portfolio-grid__thumbs img {
    width: 80px;
    height: 52px;
  }
  /* Описание и "все проекты" строго в колонку, центрируем */
  .portfolio-grid__thumbs-and-desc > div {
    align-items: center !important;
    gap: 14px;
    flex-direction: row !important;
  }
  .portfolio-grid__desc {
    max-width: 94vw;
    text-align: center;
    font-size: 0.99rem;
  }
  .portfolio-grid__name {
    text-align: center;
    margin-bottom: 7px;
    font-size: 1.08rem;
  }
  .portfolio-all-link {
    margin-top: 10px;
    margin-bottom: 4px;
    text-align: center;
    display: block;
    width: 100%;
  }
}


.about-cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 58px 0 0 0;
  padding-bottom: 0;
}

.about-cta-btn {
  display: inline-block;
  background: none;
  border: 2px solid #051923;
  color: #051923;
  font-size: 1.3rem;
  font-family: inherit;
  font-weight: 400;
  border-radius: 10px;
  padding: 14px 28px;
  margin: 0 auto 34px auto;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  outline: none;
  text-align: center;
  line-height: 1.18;
  min-width: 180px;
  max-width: 320px;
  width: 100%;
  box-sizing: border-box;
}

.about-cta-btn:hover,
.about-cta-btn:focus {
  background: none;
  color: #25a9e2;;
  border-color: #25a9e2;
  outline: none;
  box-shadow: none;
}

.about-cta-line {
  width: 100vw;
  max-width: 100%;
  height: 2px;
  background: #c3d4de;
  opacity: 0.5;
  margin: 0 auto 0 auto;
}

/* Мобильная адаптация */
@media (max-width: 700px) {
  .about-cta-btn {
    font-size: 1.15rem;
    padding: 18px 12px;
    min-width: 220px;
    max-width: 98vw;
  }
  .about-cta-section { margin-top: 34px; }
}

/* --- заголовок --- */
.portfolio-title {
  text-align: center;
  font-size: 2.4rem;
  font-family: 'Axiforma', Arial, sans-serif;
  color: #16232a;
  font-weight: 200;
  margin-bottom: 26px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.section__title-lines {
  flex: 1;
  height: 1px;
  background: #051923;
  margin: 0 18px;
  /*min-width: 120px;*/
  /*max-width: 120px;*/
  opacity: 0.7;
}



.about-footer-grid {
  background: var(--color-bg, #0c232b);
  padding: 0;
  margin: 0;
  font-family: inherit;
  color: #fff;
  position: relative;
}
.about-footer-grid__line {
  width: 100vw;
  max-width: 100%;
  height: 1px;
  background: #c3d4de;
  opacity: 0.5;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
}
.about-footer-grid__container {
  background-color: #051923;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px 28px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 44px 44px 28px 44px;
  position: relative;
  z-index: 2;
}
.about-footer-grid__logo-menu {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-footer-grid__logo img {
  height: 26px;
  width: auto;
  max-width: 164px;
}
.about-footer-grid__links {
  display: flex;
  gap: 46px;
}
.about-footer-grid__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-footer-grid__col p {
  color: #c3d4de;
  font-size: 12px;
  line-height: 1.8;
  transition: color 0.2s;
}
.about-footer-grid__col a {
  color: #c3d4de;
  font-size: 12px;
  text-decoration: underline;
  line-height: 1.18;
  transition: color 0.2s;
}
.about-footer-grid__col a:hover {
  color: #fff;
}
.about-footer-grid__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  min-width: 0;
}
.about-footer-grid__notice {
  color: #c3d4de;
  font-size: 12px;
  max-width: 540px;
  margin-bottom: 16px;
}
.about-footer-grid__notice a {
  color: #c3d4de;
  text-decoration: underline;
  transition: color 0.2s;
}
.about-footer-grid__notice a:hover {
  color: #fff;
}
.about-footer-grid__top {
  background: none;
  border: 2px solid #c3d4de;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  margin-top: 16px;
}
.about-footer-grid__top:hover {
  border-color: #88a2b3;
}
.about-footer-grid__top svg {
  display: block;
}

@media (max-width: 750px) {
  .about-footer-grid__container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 8vw 16px 8vw;
  }
  .about-footer-grid__logo-menu, .about-footer-grid__info {
    align-items: flex-start;
  }
  .about-footer-grid__info {
    align-items: flex-start;
  }
  .about-footer-grid__top {
    margin-left: 0;
    align-self: flex-start;
  }
}
@media (max-width: 700px) {
  .about-footer-grid__container {
    padding: 22px 2vw 10px 2vw;
    gap: 24px;
  }
  .about-footer-grid__logo img {
    height: 38px;
    max-width: 94px;
  }
  .about-footer-grid__links {
    flex-direction: column;
    gap: 10px;
  }
  .about-footer-grid__col a {
    font-size: 1rem;
  }
  .about-footer-grid__notice {
    font-size: 0.98rem;
    max-width: 98vw;
  }
  .about-footer-grid__top {
    width: 56px;
    height: 56px;
    padding: 3px;
  }
}



.section-mission {
  background: var(--color-bg, #fff);
  padding: 0 0 48px 0;
}

.about-mission__frame {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.about-mission__brackets {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.about-mission__brackets--left {
  justify-content: flex-end;
  margin-right: 26px;
}
.about-mission__brackets--right {
  justify-content: flex-start;
  margin-left: 26px;
}
.about-mission__brackets svg {
  display: block;
  height: 320px;
  width: 54px;
  min-width: 32px;
  min-height: 120px;
  max-height: 40vw;
}

.about-mission__content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 44px 0 42px 0;
  background: transparent;
}

.about-mission__items {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 55px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.about-mission__item {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 140px;
  max-width: 200px;
  text-align: center;
  box-sizing: border-box;
}

.about-mission__icon {
  margin-bottom: 18px;
  opacity: 0.68;
}
.about-mission__icon img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  max-width: 100%;
  display: block;
}
.about-mission__caption {
  font-size: 1.18rem;
  color: #16232a;
  font-family: 'Axiforma', Arial, sans-serif;
  line-height: 1.22;
  font-weight: 400;
}

@media (max-width: 1200px) {
  .about-mission__frame {
    max-width: 98vw;
    padding: 0 8px;
  }
  .about-mission__items {
    max-width: 97vw;
    gap: 40px;
  }
  .about-mission__item {
    min-width: 110px;
    max-width: 170px;
  }
  .about-mission__icon img {
    width: 100px;
    height: 100px;
  }
  .about-mission__caption { font-size: 1.07rem; }
  .about-mission__brackets svg { height: 180px; width: 30px; }
}

@media (max-width: 900px) {
  .about-mission__items {
    gap: 8px;
  }
  .about-mission__icon img {
    width: 68px;
    height: 68px;
  }
  .about-mission__caption { font-size: 0.7rem; }
  .about-mission__frame { padding: 0 2vw; }
  /*.about-mission__brackets svg { height: 120px; width: 18px; }*/
  .about-mission__brackets svg { display: none; }
}

@media (max-width: 700px) {
  .about-mission__frame {
    flex-direction: column;
    align-items: center;
    max-width: 100vw;
    padding: 0 2vw;
  }
  
  .about-mission__items {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 99vw;
  }
  .about-mission__item {
    min-width: 0;
    max-width: 98vw;
    margin-bottom: 12px;
  }
  .about-mission__icon img {
    width: 68px;
    height: 68px;
  }
  .about-mission__caption {
    font-size: 0.97rem;
  }
}

@media (max-width: 430px) {
  .about-mission__caption {
    font-size: 0.92rem;
  }
}





.partners-section {
  padding: 54px 0 54px 0;
  background: #fff;
}
.partners-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: #16232a;
  font-size: 2.4rem;
  font-family: 'Axiforma', Arial, sans-serif;
  font-weight: 200;
  margin-bottom: 44px;
}
.partners-title__line {
  flex: 1 1 0;
  height: 1px;
  background: #051923;
  /*min-width: 60px;
  max-width: 320px;*/
  opacity: 0.7;
}
.partners-marquee {
  overflow: hidden;
  width: 100%;
}
.partners-marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;      /* любой нужный тебе gap */
  will-change: transform;
}
.partners-marquee__track img {
  display: block;
  margin: 0;
  padding: 0;
  /* Подстрой ширину/высоту для унификации */
  max-height: 82px;
  max-width: 180px;
  height: auto;
  width: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .partners-marquee { height: 80px; }
  .partners-marquee__track img { height: 56px; }
  .partners-title { font-size: 2.4rem; }
}
@media (max-width: 600px) {
  .partners-marquee { height: 44px; }
  .partners-marquee__track img { height: 28px; }
  .partners-title { font-size: 2rem; }
  .partners-title__line { min-width: 18px; }
}

/* === Split Slider (flat handle + без задержки при драге) === */
.split-slider{
  position:absolute; inset:0;
  width:100%; height:100%; overflow:hidden; z-index:1;
}
.split-slider__img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover; pointer-events:none;
  will-change: clip-path;
  transition: filter .25s;
}
.split-slider__img--right{
  clip-path: inset(0 0 0 50%);
  filter: brightness(.65);
  transition: clip-path .3s, filter .25s; /* плавность для кликов/кнопок */
}
.split-slider__img--left{
  z-index:1;
  clip-path: inset(0 50% 0 0);
  filter: brightness(1);
  transition: clip-path .3s, filter .25s;
}

/* Во время драга — никаких transition (картинка «приклеена» к ползунку) */
.split-slider.is-dragging .split-slider__img--right,
.split-slider.is-dragging .split-slider__img--left{
  transition: none !important;
}

/* Плоский хэндл */
.split-slider__handle{
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  z-index:10; cursor:ew-resize; border-radius:50%;
  background:#fff; box-shadow:none; transition:none;
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  pointer-events:auto; touch-action:none;
}
.split-slider__handle svg{ display:block; width:42px; height:42px; }

.split-slider__handle:hover, .split-slider__handle:active {
  background: rgba(189,226,255,0.96);
  box-shadow: 0 0 0 14px #bde2ff38, 0 4px 18px #2973d4bb;
}

.split-slider__handle:hover::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 70px; height: 70px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #bde2ff88 0%, transparent 70%);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  animation: pulse-glow 1.2s infinite linear;
}
@keyframes pulse-glow {
  0%,100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Кнопки как были */
.split-slider__btn{
  display:none; position:absolute; top:50%; z-index:3;
  width:44px; height:44px; border-radius:22px;
  background:rgba(255,255,255,.88); border:none;
  font-size:2.2rem; color:#1a232e; box-shadow:0 2px 12px rgba(0,0,0,.09);
  cursor:pointer; align-items:center; justify-content:center;
  transition:background .2s; transform:translateY(-50%);
}
.split-slider__btn--left{  left:18px;  }
.split-slider__btn--right{ right:18px; }

@media (max-width:900px){
  .split-slider__handle svg{ width:38px; height:38px; }
}
@media (max-width:600px){
  .split-slider__handle svg{ width:32px; height:32px; }
  .split-slider__btn{ display:flex; }
}


/* architects: центрирование изображений в .ideas-section на мобильных */
@media (max-width: 767.98px) {
  .ideas-section {
    text-align: center; /* центрирует inline/inline-block */
  }

  .ideas-section img {
    display: inline-block;   /* не растягиваем блок, сохраняем естественную ширину */
    margin: 0 auto;          /* на случай блочного поведения */
    height: auto;            /* страховка от искажений */
    max-width: 100%;         /* не даём вылезать за контейнер, но не принуждаем к 100% */
  }
}

/* ARCHITECTS: первый экран умещаем в мобильное окно с учётом фикс-шапки */
@media (max-width: 767.98px) {
  .hero {
    margin-top: var(--header-height);                 /* отдвигаем под шапку */
    height: calc(100svh - var(--header-height));      /* видимая высота окна минус шапка */
    min-height: 0;                                    /* перекрываем min-height */
    overflow: hidden;
  }

  /* чтобы CTA и контролы не упирались в нижнюю кромку */
  .hero__content {
    bottom: clamp(12px, 3vh, 24px);
  }
}

