
    :root {
      --color-bg: #051923;
      --color-accent: #1891D8;
      --color-white: #fff;
      --color-grey: #b5c3cc;
      --color-card: #112831;
      --color-text: #e7ecee;
      --max-width: 1920px;
      --container-pad: 32px;
      --border-radius: 18px;
      --header-height: 80px;
    }


    @media (max-width: 700px) {
  :root {
    --container-pad: 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;
      box-sizing: border-box;
      font-family: 'Axiforma', Arial, sans-serif;
      background: var(--color-bg);
      color: var(--color-text);
      min-height: 100%;
      scroll-behavior: smooth;
    }
    *, *:before, *:after { box-sizing: inherit; }
    a { color: inherit; text-decoration: none; }

    .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 var(--container-pad);
    }
    header {
  width: 100%;
  height: var(--header-height);
  min-height: var(--header-height);
  background: var(--color-bg);
  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 {
      width: 100%;
      min-height: 700px;
      background: url('../img/main_pic1.png') center/cover no-repeat;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      text-align: center;
      overflow: hidden; /* чтобы видео не выползало за границы */
      height: 100vh;
    }

    /* Слой с видео поверх фоновой картинки .hero */

/*.hero__video-layer {
  position: absolute;
  inset: 0;
  z-index: 999;            
  background: #000;        
  pointer-events: none;    
  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease, visibility .6s ease;
}
.hero__video-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.hero__video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;       
  display: block;
}*/

//* Контент и оверлей ДОЛЖНЫ быть НИЖЕ видео */
.hero__overlay { position: absolute; inset: 0; z-index: 2; }
.hero__content { position: relative; z-index: 3; }

/* На устройствах с «уменьшить движение» — сразу убираем видео */
@media (prefers-reduced-motion: reduce) {
  .hero__video-layer { display: none; }
}

    .hero__overlay {
      position: absolute;
      inset: 0;
      background: rgba(12,34,41,0.45);
      z-index: 1;
    }
    .hero__content {
      position: relative;
      z-index: 2;
      color: var(--color-white);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 32px;
    }
    .hero__title {
      font-size: 5.6rem;
      font-weight: 600;
      line-height: 1.1;
      margin-bottom: 12px;
      letter-spacing: -1px;
    }
    .hero__subtitle {
      font-size: 1.3rem;
      font-weight: 500;
      margin-bottom: 32px;
    }
    .about-cta-btn {
  display: inline-block;
  /*background-color: #051923;*/
  background: none;
  border: 2px solid #c3d4de;
  color: #fff;
  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;
}

/* Мобильная адаптация */
@media (max-width: 700px) {
  .about-cta-btn {
    font-size: 1.15rem;
    padding: 18px 12px;
    min-width: 220px;
    max-width: 98vw;
  }
  .hero__title {
      font-size: 3rem;
    }
  
}
    /* --- Section: Info --- */
    .section {
      padding: 25px 0 24px 0;
      background: var(--color-bg);
      text-align: center;
    }
    .section--light { background: #051923; }
    .section__title {
      font-size: 2.1rem;
      font-weight: 700;
      margin-bottom: 32px;
    }
    .section__desc {
      font-size: 1.18rem;
      font-weight: 100;
      max-width: 800px;
      margin: 29px auto 0;
      color: fff;
    }

    
.section__title {
  font-size: 2.1rem;
  font-weight: 200;
  color: var(--color-white);
  text-align: center;
  margin: 0 0 38px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-family: 'Axiforma', Arial, sans-serif;
  letter-spacing: 0.01em;
}
.section__title-lines {
  flex: 1;
  height: 1px;
  background: #fff;
  /*opacity: 0.38;*/
  margin: 0 16px;
  border-radius: 1.5px;
  min-width: 110px;
}
@media (max-width: 700px) {
  .section__title { font-size: 1.11rem; gap: 10px;}
  .section__title-lines { min-width: 38px; }
}



.hero-title {
  font-size: 2.2rem;      /* Было 4.0rem — уменьшить, как на скрине */
  font-weight: 400;
  line-height: 1.12;
  margin: 65px auto 23px auto;  /* уменьшить, чтобы было плотнее */
  max-width: 900px;
  color: #fff;
  text-align: center;
  letter-spacing: -1px;
}
@media (max-width: 900px) {
  .hero-title, .main-title {
    font-size: 2.1rem;
    margin: 36px auto 26px auto;
  }
}




    /* --- 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;
  /*border-radius: 24px;*/
  box-shadow: 0 8px 32px rgba(12,34,41,0.14);
  background: #222;
  object-fit: cover;
}
.portfolio-grid__right {
  display: flex;
  align-items: center;
  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; /* Выравнивание миниатюр и текста по вертикали */
  gap: 34px;
}
.portfolio-grid__thumbs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.portfolio-grid__thumbs img {
  width: 110px;
  height: 68px;
  /*border-radius: 10px;*/
  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: var(--color-grey);
  max-width: 320px;
  font-weight: 100;
  text-align: left;
}
.portfolio-grid__name {
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--color-white);
}

/* Адаптив: перенос в столбик */
@media (max-width: 1024px) {
  .portfolio-grid {
    flex-direction: column;
    min-height: unset;
  }
  .portfolio-grid__thumbs {
    flex-direction: row !important;
    gap: 12px !important;
    margin-top: 18px !important;   /* Отступ сверху, чтобы отделить от главной картинки */
    justify-content: center;
    align-items: center;
  }
  /* Чтобы на совсем малых экранах миниатюры не выходили за пределы */
  .portfolio-grid__thumbs img {
    width: 70px;
    height: 46px;
    /*border-radius: 10px;*/
  }
  /* Если нужно убрать/уменьшить отступы между основной картинкой и thumbs:
  .portfolio-grid__left {
    margin-bottom: 0;
  }
  */

  .philosophy-title-grid {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white, #fff);
  margin-bottom: 44px;
  line-height: 1.3;
}

@media (max-width: 700px) {
  .philosophy-title-grid {
    font-size: 1.26rem;
    margin-bottom: 26px;
  }
}


  .portfolio-grid__right {
    padding-left: 0;
    min-width: unset;
    justify-content: center;
  }
  .portfolio-grid__thumbs-and-desc {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .portfolio-grid__desc { max-width: 90vw; text-align: center; }
}
@media (max-width: 600px) {
  .portfolio-grid__main-img { width: 98%; min-width: 0;}
  .portfolio-grid__thumbs { flex-direction: row; gap: 8px; }
  .portfolio-grid__thumbs img { width: 74px; height: 42px;}
  .portfolio-grid__desc { max-width: 98vw; }
}



    /* --- Team --- */
.team-slider__wrapper {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 25px 0 0px 0;

}
.team-slider {
  display: flex;
  gap: 44px;
  transition: transform 0.42s cubic-bezier(.4,1,.45,1);
  will-change: transform;
}
/* Базово — 4 карточки */
.team-card {
  background: white;
  /*border-radius: 22px;*/
  flex: 0 0 calc((100% - 3 * 44px) / 4);
  max-width: calc((100% - 3 * 44px) / 4);
  text-align: center;
  box-shadow: 0 6px 28px rgba(12,34,41,0.10);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.team-card img {
  width: 100%;
  /*aspect-ratio: 1/1.1;*/
  object-fit: cover;
  /*border-radius: 22px 22px 0 0;*/
}
.team-card__name {
  font-size: 1.09rem;
  font-weight: 700;
  margin-top: 12px;
  color: black;
}
.team-card__role {
  color: black;
  font-size: 1.01rem;
  margin-bottom: 14px;
}
.team-slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 44px;
  margin-top: 26px;
  width: 100%;
}
.team-slider__arrow {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.3rem;
  /*border-radius: 10px;*/
  padding: 2px 20px;
  cursor: pointer;
  transition: background 0.18s, border 0.18s, color 0.18s;
  outline: none;
}
.team-slider__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.team-slider__arrow:focus,
.team-slider__arrow:hover {
  background: none;
    color: #fff;
    border-color: #88a2b3;
    outline: none;
    box-shadow: none;
}
/* 3 карточки — 1200px и меньше */
@media (max-width: 1200px) {
  .team-slider { gap: 28px; }
  .team-card {
    flex: 0 0 calc((100% - 2 * 28px) / 3);
    max-width: calc((100% - 2 * 28px) / 3);
  }
  .team-slider__controls { gap: 28px; }
}
/* 2 карточки — 900px и меньше */
@media (max-width: 900px) {
  .team-slider { gap: 12px; }
  .team-card {
    flex: 0 0 calc((100% - 1 * 12px) / 2);
    max-width: calc((100% - 1 * 12px) / 2);
  }
  .team-slider__controls { gap: 16px; }
}
/* 1 карточка — 600px и меньше */
@media (max-width: 600px) {
  .team-slider { gap: 28; }
  .team-card {
    flex: 0 0 98vw;
    max-width: 98vw;
  }
  .team-slider__wrapper { padding: 0 1vw; }
  .team-slider__controls { gap: 8vw; }
}


    /* --- Certificates --- */
    .cert-slider7__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-top: 34px;
  position: relative;
  gap: 8px;
}

.cert-slider7 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 700px;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  min-height: 250px;
  height: 250px;
  gap: 0;
}

.cert-card7 {
  width: 150px;
  height: 210px;
  margin: 0 8px;
  /*background: var(--color-card, #222f31);*/
  /*border-radius: 10px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  /*box-shadow: 0 2px 8px rgba(12,34,41,0.09);*/
  opacity: 0.45;
  transition: 
    transform 0.42s cubic-bezier(.4,1,.45,1), 
    box-shadow 0.22s, 
    opacity 0.22s;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%) scale(0.85);
  pointer-events: none;
  /*border: 4px solid transparent;*/
}
.cert-card7 img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  /*border-radius: 6px;*/
  display: block;
}

/* Видимость и масштаб для разных позиций */
.cert-card7.center {
  opacity: 1;
  z-index: 5;
  transform: translate(-50%, -50%) scale(1.08);
  /*box-shadow: 0 4px 22px 0 rgba(255,255,255,0.19);*/
  pointer-events: auto;
  /*border: 8px solid #fff;*/
}
.cert-card7.left2, .cert-card7.right2 {
  opacity: 0.7;
  z-index: 3;
  transform: translate(calc(-50% - 180px), -50%) scale(0.96) rotate(-6deg);
  /*border: 4px solid #888;*/
}
.cert-card7.right2 {
  transform: translate(calc(-50% + 180px), -50%) scale(0.96) rotate(6deg);
}
.cert-card7.left, .cert-card7.right {
  opacity: 0.85;
  z-index: 4;
  transform: translate(calc(-50% - 95px), -50%) scale(1.0) rotate(-3deg);
  /*border: 4px solid #bbb;*/
}
.cert-card7.right {
  transform: translate(calc(-50% + 95px), -50%) scale(1.0) rotate(3deg);
}
.cert-card7.far {
  opacity: 0.15;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Стрелки */
.cert-slider7__arrow {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.3rem;
  /*border-radius: 10px;*/
  padding: 2px 20px;
  cursor: pointer;
  transition: background 0.18s, border 0.18s, color 0.18s;
  outline: none;
  z-index: 10;
}
.cert-slider7__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cert-slider7__arrow:hover, .cert-slider7__arrow:focus {
  background: none;
    color: #fff;
    border-color: #88a2b3;
    outline: none;
    box-shadow: none;
}

/* Мобильная версия */
@media (max-width: 800px) {
  .cert-slider7 {
    min-height: 44vw;
    width: 98vw;
    height: 44vw;
  }
  .cert-card7,
  .cert-card7 img {
    width: 75vw;
    height: 40vw;
    min-width: 120px; min-height: 100px;
  }
  .cert-card7 {
    margin: 0 2vw;
  }
  .cert-card7.left2, .cert-card7.right2, 
  .cert-card7.left, .cert-card7.right, 
  .cert-card7.far {
    opacity: 0;
    pointer-events: none;
    border: 4px solid #888;
    z-index: 1;
  }
  .cert-card7.center {
    opacity: 1;
    z-index: 5;
    transform: translate(-50%, -50%) scale(1.02);
    /*border: 8px solid #fff;*/
  }
}


    /* --- Footer --- */
    .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 {
  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: #fff;
  /*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;
  border-top: 1px solid #fff;
}
.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;
  }
}


/* iframe с формой во всплывашке */
.popup__frame {
  width: min(100%, 560px);
  height: 80vh;             /* на десктопе */
  border: 0;
  background: transparent;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .popup__frame { width: 100%; height: 92vh; }
}

/* Скрыть плавающий виджет Calltouch (на родительских страницах) */
div[id^="ct-"], .ct-widget, .ct-bubble, iframe[src*="calltouch"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* ===== IMAGO lead popup ===== */
#leadPopup {
  position: fixed;
  inset: 0;
  display: none;                 /* включаем в JS */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.68);
  z-index: 2147483646;           /* выше всех слоёв */
}

#leadPopup.is-open { display: flex; }

#leadPopup .popup__dialog {
  position: relative;
  width: min(780px, 96vw);
  height: min(720px, 90vh);
  max-width: 780px;
  max-height: 720px;
  background: transparent;       /* сам контент внутри — это iframe */
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  border-radius: 10px;
  overflow: hidden;              /* чтобы iframe не «выпирал» */
}

#leadPopup iframe#leadPopupFrame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

#leadPopup .popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

#leadPopup .popup__close:hover { background: rgba(0,0,0,.6); }
#leadPopup .popup__close svg { width: 20px; height: 20px; }


