
: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;
  color: #fff;
  border: 2px solid #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-color: #25a9e2;
  outline: none;
  box-shadow: none;
}

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

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

.ideas-title {
  text-align: center;
  font-size: 2.45rem;
  font-weight: 500;
  color: #16232a;
  margin-bottom: 65px;
  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: 275px;
  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: 400;
  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; }
}

/* --- DREAMHOUSE BLOCK --- */
.dreamhouse-section {
  width: 100%;
  background: #fff;
  padding: 56px 0 34px 0;
}
.dreamhouse-title {
  text-align: center;
  font-size: 2.45rem;
  font-weight: 700;
  color: #16232a;
  margin-bottom: 36px;
  font-family: 'Axiforma', Arial, sans-serif;
}
.dreamhouse-imgbox {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #e6f0fa;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 26px 0 rgba(24,145,216,0.06);
}
.dreamhouse-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dreamhouse-section {
  width: 100%;
  background: #fff;
  padding: 0px 0 34px 0;
}
.dreamhouse-title {
  text-align: center;
  font-size: 2.45rem;
  font-weight: 500;
  color: #16232a;
  margin-bottom: 73px;
  font-family: 'Axiforma', Arial, sans-serif;
}
.dreamhouse-figure {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #e6f0fa;
  /*border-radius: 14px;*/
  overflow: hidden;
  box-shadow: 0 3px 26px 0 rgba(24,145,216,0.06);
}
.dreamhouse-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- АНИМИРОВАННОЕ СВЕЧЕНИЕ ОКОН --- */
.window-glow {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  /* "стекло" прозрачно, но с мягким свечением */
  background: rgba(255, 237, 140, 0.22); /* мягкий жёлтый свет */
  box-shadow: 0 0 32px 18px rgba(255, 237, 140, 0.22);
  transition: background 0.3s, box-shadow 0.3s;
  border-radius: 12px 14px 14px 14px;
  animation: window-glow-anim 6.2s ease-in-out infinite;
  opacity: 0.88;
}

/* --- ЛЕВОЕ ОКНО --- */
.glow-left {
  left: 15.5%;   /* подгони под свою картинку */
  top: 56.5%;
  width: 42px;
  height: 38px;
  animation-delay: 0.5s;
}

/* --- БОЛЬШОЕ ПАНОРАМНОЕ ОКНО --- */
.glow-big {
  left: 44%;   /* подгони под свою картинку */
  top: 66%;
  width: 70px;
  height: 92px;
  animation-delay: 1.8s;
}

/* --- АНИМАЦИЯ ПЛАВНОГО СВЕТА --- */
@keyframes window-glow-anim {
  0% {
    opacity: 0.80;
    background: rgba(255,237,140,0.19);
    box-shadow: 0 0 8px 6px rgba(255,237,140,0.16);
  }
  38% {
    opacity: 1;
    background: rgba(255,237,170,0.41);
    box-shadow: 0 0 32px 20px rgba(255,237,190,0.26);
  }
  70% {
    opacity: 0.93;
    background: rgba(255,237,140,0.15);
    box-shadow: 0 0 11px 12px rgba(255,237,140,0.09);
  }
  100% {
    opacity: 0.80;
    background: rgba(255,237,140,0.19);
    box-shadow: 0 0 8px 6px rgba(255,237,140,0.16);
  }
}


/* ------- PIN ------- */
.dreamhouse-pin {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.dreamhouse-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px #fff5;
  z-index: 3;
  animation: dreamhouse-pulse 1.4s infinite;
}
@keyframes dreamhouse-pulse {
  0% { box-shadow: 0 0 8px 2px #fff5, 0 0 0 0 rgba(24,145,216,0.15); }
  70% { box-shadow: 0 0 8px 2px #fff5, 0 0 0 22px rgba(24,145,216,0); }
  100% { box-shadow: 0 0 8px 2px #fff5, 0 0 0 0 rgba(24,145,216,0); }
}
.dreamhouse-line {
  display: block;
  background: linear-gradient(90deg, #fff 60%, #b3daf8 100%);
  height: 2.5px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-left: 2px;
}
.dreamhouse-label {
  /*background: rgba(255,255,255,0.85);*/
  padding: 7px 20px 7px 10px;
  font-size: 1.10rem;
  color: #fff;
  font-family: 'Axiforma', Arial, sans-serif;
  font-weight: 500;
  /*border-radius: 0 14px 14px 0;
  box-shadow: 0 3px 18px 0 rgba(24,145,216,0.04);*/
  margin-left: 8px;
  pointer-events: auto;
  white-space: nowrap;
  border-bottom: 2px solid #dde9f4;
  position: relative;
  left: -8px;
}

/* --------- Позиции, длины и углы (примерные, поправь под свой макет) --------- */

/* Слева */
.pin-windows {
  left: 22%;
  top: 70%;
}
.pin-windows .dreamhouse-line {
  width: 80px;
  transform: rotate(-382deg) translateY(-19px);
}
.pin-windows .dreamhouse-label {
  margin-left: -2px;
  position: relative; top: -54px;
}

/* Центр */
.pin-panorama {
  left: 48%;
  top: 37%;
}
.pin-panorama .dreamhouse-line {
  width: 80px;
  transform: rotate(-382deg) translateY(-10px); 
}
.pin-panorama .dreamhouse-label {
  margin-left: 2px;
  position: relative;
    top: -45px;
}

.pin-panorama .dreamhouse-dot {
  position: relative;
  top: 10px; /* число подбери, чтобы опустить точку вниз */
}


/* Справа снизу */
.pin-sliders {
  left: 57%;
  top: 72%;
}
.pin-sliders .dreamhouse-line {
  width: 80px;
  transform: rotate(-22deg) translateY(-18px);
}
.pin-sliders .dreamhouse-label {
  margin-left: -2px;
  position: relative;
    top: -52px;
}
.pin-panorama .dreamhouse-dot {
  position: relative;
  top: 10px; /* число подбери, чтобы опустить точку вниз */
}

/* --- Адаптив --- */
@media (max-width: 900px) {
  .dreamhouse-figure { max-width: 98vw; aspect-ratio: 17/12; }
  .dreamhouse-title { font-size: 1.23rem; }
  .dreamhouse-label { font-size: 0.97rem; padding: 5px 13px 5px 8px; }
  .dreamhouse-dot { width: 14px; height: 14px; }
  .dreamhouse-line { height: 2px; }
}
@media (max-width: 600px) {
  .dreamhouse-section { padding: 13px 0 7px 0; }
  .dreamhouse-figure { border-radius: 6px; }
  .dreamhouse-title { font-size: 0.98rem; margin-bottom: 7px; }
}


/* --- 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%;
  }
}



/* --- portfolio-cta-btn выносится в отдельную секцию --- */
/*.popup-overlay {
  position: fixed;
  z-index: 1100;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,30,40, 0.94);
  transition: 0.2s;
}
.popup-content {
  background: #10252b;
  border-radius: 18px;
  padding: 38px 32px 30px 32px;
  min-width: 310px;
  max-width: 95vw;
  color: #fff;
  position: relative;
  box-shadow: 0 8px 64px rgba(0,0,0,0.2);
  text-align: center;
}
.popup-close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #c3d4de;
  cursor: pointer;
  line-height: 1;
}
.popup-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.popup-content form input,
.popup-content form button {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid #345a68;
  background: #122f38;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
}
.popup-content form button {
  background: var(--color-accent, #2980b9);
  color: #fff;
  border: none;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.popup-content form button:hover {
  background: #126ca3;
}*/


.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-color: transparent;
  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: transparent;
  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;
  }
}

/* --- split-slider --- */

.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:#fff; box-shadow:none; }
.split-slider__handle::before{ content:none !important; }*/

.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{ width:40px; height:40px; }
  .split-slider__handle svg{ width:38px; height:38px; }
}
@media (max-width:600px){
  .split-slider__handle{ width:36px; height:36px; }
  .split-slider__handle svg{ width:32px; height:32px; }
  .split-slider__btn{ display:flex; }
}

/* центрирование изображений в .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% */
  }
}

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

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