* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
}

body {
		background-color:#1E1E1E;
    overflow-x: hidden;
}

@font-face {
  font-family: 'Gotham Pro';
  src: url('Fonts/Gotham Pro/gothampro.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro_bold';
  src: url('Fonts/Gotham Pro/gothampro_bold.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro_black';
  src: url('Fonts/Gotham Pro/gothampro_black.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro_medium';
  src: url('Fonts/Gotham Pro/gothampro_medium.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro_light';
  src: url('Fonts/Gotham Pro/gothampro_light.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro_regular';
  src: url('Fonts/Gotham Pro/gothampro.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro_Black';
  src: url('Fonts/Gotham Pro/gothampro_black.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro_Medium';
  src: url('Fonts/Gotham Pro/gothampro_medium.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro_Light';
  src: url('Fonts/Gotham Pro/gothampro_light.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Pixelify Sans';
  src: url('Fonts/Pixelify_Sans/static/PixelifySans-Regular.ttf');
  font-display: swap;
}

.mobile-br {
  display: none;
}

.desktop-br {
  display: block;
}

.filter-defs {
  display: none;
}

.navbar {

  display: flex;
  align-items: center;
  justify-content: space-between;  /* прижимает крайние элементы к краям рамки */
  gap: 175px;

  /* Рамка */ 
  width: 100%;
  max-width: 1744px;
  height: 90px;
  border-radius: 90px;
  margin: 0 auto;
  margin-top: 35px;
  box-sizing: border-box;
  padding-left: 40px;
  padding-right: 40px;

  /* Градиент для рамки */
  border: 1px solid transparent;
  background:
    linear-gradient(#1E1E1E, #1E1E1E) padding-box,
    radial-gradient(900px 142px at center, transparent 30%, #ffffffbd 65%) border-box;

  /* Текст */
  font-family: 'Gotham Pro';

  color: #FFFFFF;          /* цвет текста */
  font-size: 18px;         /* размер — берёшь из Figma */
  font-weight: 400;        /* жирность: 300 тонкий, 400 обычный, 700 жирный */
  letter-spacing: 0px;     /* расстояние между буквами */
  text-transform: uppercase; /* делает все буквы заглавными */
}

/* Нав. Панель */
.nav-links {
    display: flex;
    gap: 175px;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Gotham Pro';
    font-size: 18px;
    transition: color 0.6s ease-out;
}

.nav-links a:hover {
  color:#38EA67;
}

.mail {
  opacity: 70%;
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.contacts a {
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Gotham Pro';
  font-size: 18px;
  transition: color 0.6s ease-out;
}

.contacts a:hover {
  color:#38EA67;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

/* --=   Блок 1   =---*/
.block1 {
  padding-top: 80px;
  padding-left: 60px;
  position: relative;   /* ← теперь .glow будет считать координаты от block1 */
}

.text1 p {
  color:#2EC055;
  font-family: 'Pixelify Sans';
  font-size: 35px;
  margin: 0;
}

.main-title h1 {
  font-family: 'Gotham Pro_black';
  font-size: 100px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.0;
  letter-spacing: 5px;
  margin: 0;
}

.highlight {
  color: #38EA67;
}

.text2 p {
  font-family: 'Gotham Pro';
  font-size: 30px;
  font-weight: 300;
  color: #FFFFFF;
  opacity: 70%;
  letter-spacing: 0px;
  line-height: 1.60;
}

/* Кнопки */
.info-buttons {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.info-button a {
  font-family: 'Gotham Pro_medium';
  color: #1E1E1E;
  text-decoration: none;

  font-size: 30px;
  letter-spacing: 0px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 329px;
  height: 61px;
  background-color: #39E967;
  border-radius: 61px;
  border: none;
  box-sizing: border-box;
  text-decoration: none;

  font-family: 'Gotham Pro_medium';
  color: #1E1E1E;
  font-size: 30px;
  letter-spacing: 0px;

  transition: background-color 0.4s ease;
}

.btn-primary:hover {
  background-color: #2EC055;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 375px;
  height: 61px;
  background-color: #1E1E1E;
  border-radius: 61px;
  border: 1px solid #FFFFFF;
  box-sizing: border-box;
  text-decoration: none;

  font-family: 'Gotham Pro_medium';
  color: #FFFFFF;
  font-size: 30px;
  letter-spacing: 0px;

  transition: color 0.6s ease-out;
}

.btn-secondary:hover {
  background-color: #FFFFFF;
  color: #1E1E1E;
}

.bg-video {
  z-index: -1;
  position: absolute;
  top: 10%;
  left: 60%;
  width: 800px;
  height: 800px;
  object-fit: cover;
  pointer-events: none;

  mix-blend-mode: multiply;
}

.glow {
    position: absolute;
    z-index: -2;
    width: 2000px;       /* подбери под размер из Figma */
    height: 2000px;
    top: 120%;
    right: -250px;      /* немного за правым краем */
    transform: translateY(-50%);
    pointer-events: none;  /* мышь проходит сквозь */
    
    /* отключаем правило из base CSS которое мы писали ранее */
    max-width: none;
}

/* --=   Блок 2   =---*/
.block2 {
  padding-top: 80px;
  padding-left: 60px;
  position: relative;
  overflow: visible;
}

.logos-bg {
  position: absolute;
  z-index: -2;
  right: 0;
  top: 110px;
  max-width: none;
}

.text3 {
  padding-top: 80px;
  font-family: Pixelify Sans;
  font-size: 35px;
  color: #2EC055;
}

.main-title2 h1 {
  font-family: 'Gotham Pro_black';
  font-size: 100px;
  letter-spacing: 5px;
  line-height: 100%;
  color: #FFFFFF;
}

.text4 {
  margin-top: 20px;

  font-family: 'Gotham Pro';
  font-size: 30px;
  font-weight: 300;
  color: #FFFFFF;
  opacity: 70%;
  letter-spacing: 0px;
  line-height: 1.60;
}

/* Карточки */

.card-container {
  padding-top: 48px;
  display: flex;
  gap: 20px;
}

.card {
  position: relative;
  width: 420px;
  height: 284px;
  box-sizing: border-box;
  border: 2px solid transparent;
 
  background:
    linear-gradient(#1E1E1E, #1E1E1E) padding-box,
    linear-gradient(to top right, #ffffff 0%, transparent 90%) border-box;
  /* убираем background из :hover — теперь этим занимаются капли */
}

/* Контейнер капель — занимает весь фон карточки */
.card__inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  overflow: hidden;      /* капли не вылезают за карточку */
  z-index: 0;            /* под контентом */

  background-color: transparent;
  transition: background-color 0.5s 0.29s;
}

.card:hover .card__inner {
  background-color: #39E967;
}

.card__blobs {
  position: relative;
  display: block;
  height: 100%;
  filter: url('#goo');
}

/* Сами капли */
.card__blob {
  position: absolute;
  top: 2px;
  width: 25%;            /* 4 капли = по 25% ширины каждая */
  height: 100%;
  background: #2ec055;
  border-radius: 100%;
  transform: translate3d(0, 150%, 0) scale(1.7);  /* спрятаны снизу */
  transition: transform 0.45s;
}

/* Каждая капля сдвинута вправо и появляется с задержкой */
.card__blob:nth-child(1) { left: 0%;   transition-delay: 0s; }
.card__blob:nth-child(2) { left: 30%;  transition-delay: 0.08s; }
.card__blob:nth-child(3) { left: 60%;  transition-delay: 0.16s; }
.card__blob:nth-child(4) { left: 90%;  transition-delay: 0.24s; }

/* При наведении капли поднимаются */
.card:hover .card__blob {
  transform: translateZ(0) scale(1.7);
}

/* Весь контент карточки должен быть ВЫШЕ капель */
.card1-icon, .card1-title, .card1-text,
.card2-icon, .card2-title, .card2-text {
  position: absolute;
  z-index: 1;   /* ← выше чем .card__inner у которого z-index: 0 */
}

/* Карточка 1 */
.card-icon {
  position: absolute;
  top: 20px;
  right: 20px;
}

.card-title {
  position: absolute;
  top: 20px;
  left: 20px;

  font-family: 'Gotham Pro_medium';
  font-size: 30px;
  color:#FFFFFF;
}

.card-text {
  position: absolute;
  left: 20px;
  bottom: 20px;

  font-family: 'Gotham Pro_light';
  font-size: 25px;
  color: #FFFFFF;
}

/* --=   Блок 3   =---*/
.block3 {
  padding-top: 140px;
  padding-left: 80px;
  position: relative;
  overflow: visible;
}

.text {
  color:#2EC055;
  font-family: 'Pixelify Sans';
  font-size: 35px;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 150px;
  right: 75px;

  width: 375px;
  height: 61px;
  background-color: #1E1E1E;
  border-radius: 61px;
  border: 2px solid #2EC055;
  box-sizing: border-box;

  font-family: 'Gotham Pro_medium';
  color: #FFFFFF;
  font-size: 30px;
  letter-spacing: 0px;
  text-decoration: none;

  transition: background-color 0.2s ease-out;
}

.button:hover {
  background-color: #2EC055;
}

.main-title {
  font-family: 'Gotham Pro_black';
  font-size: 100px;
  letter-spacing: 5px;
  color: #FFFFFF;
}

/* Карточки */
.serv-container {
  padding-top: 50px;
  padding-left: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 80px;
}

.serv {
  position: relative;
  width: 450px;
  height: 520px;
  box-sizing: border-box;
  border: 2px solid transparent;

  transition: 0.5s ease-out;
 
  background:
    linear-gradient(#1E1E1E, #1E1E1E) padding-box,
    linear-gradient(to top left, #ffffff 0%, transparent 90%) border-box;
}

.serv:hover {
  transform: scale(1.05);
}

.num {
  font-family: 'Pixelify Sans';
  font-size: 20px;
  color: #2EC055;

  position: absolute;
  top: 20px;
  left: 20px;
}

.arrow-icon {
  position: absolute;
  top: 19.68px;
  right: 20.37px;
}

.serv-icon {
  position: absolute;
  top: 80px;
  left: 20px;
}

.serv-title {
  position: absolute;
  top: 232px;
  left: 20px;

  font-family: 'Gotham Pro_medium';
  font-size: 40px;
  color: #FFFFFF;
}

.serv-text {
  position: absolute;
  top: 285px;
  left: 20px;

  font-family: 'Gotham Pro_light';
  font-size: 25px;
  color: #FFFFFF;
}

/* Базовый стиль — общий для всех рамочек */
.info-border {
  display: inline-block;
  border: 1px solid #FFFFFF;
  border-radius: 30px;
  padding: 10px 15px;

  font-family: 'Gotham Pro_light';
  font-size: 15px;
  color: #FFFFFF;
  opacity: 75%;
}

.serv-tags {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;  /* если не помещаются в строку — переносятся */
}

.serv-title-up {
  top: 194px;  /* подбери нужное значение */
}

/* Блок с кейсами */
/* сброс отступов */

.cases-section {
  position: relative;
  padding-top: 35px;
  padding-right: 80px;
  padding-left: 80px;
  background-color: #1E1E1E;
  z-index: 1;
}

.cases-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 25px;
}

.cases-label {
  color: #2EC055;
  font-size: 35px;
  margin-bottom: 8px;
  font-family: 'Pixelify Sans';
}

.cases-title {
  font-size: 100px;
  font-weight: 800;
  color: #fff;
  font-family: 'Gotham Pro_Black';
  margin-bottom: 35px;
}

.cases-all-btn {
  border: 2px solid #2EC055;
  background: transparent;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 30px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Gotham Pro_Medium';
}

.cases-all-btn:hover {
  background: #2EC055;
  color: #FFFFFF;
}

/* GRID */
.cases-grid {
  display: grid;
  grid-template-columns: 40% 20% 40%;
  grid-template-rows: 55% 45%;
  gap: 0px;
  height: 620px;
}

.cases-bottom-row {
  display: contents;
}

.card-1 { grid-column: 1 / 3; grid-row: 1; } /* 65% */
.card-2 { grid-column: 3 / 4; grid-row: 1; } /* 35% */
.card-3 { grid-column: 1 / 2; grid-row: 2; } /* 35% */
.card-4 { grid-column: 2 / 4; grid-row: 2; } /* 65% */

/* Карточка */
.case-card {
  position: relative;
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
}

.case-card--bg1 { background: #C0605A; }
.case-card--bg2 { background: #4B52E8; }
.case-card--bg3 { background: #7B2D6E; }
.case-card--bg4 { background: #2A4A45; }

.case-card-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.case-card:hover .case-card-bg {
  transform: scale(1.04);
}

.case-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.case-card:hover .case-card-overlay {
  opacity: 1;
}

.case-view-btn {
  border: 2px solid #2EC055;
  background: transparent;
  color: #2EC055;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Gotham Pro_Medium';
  pointer-events: all;
  z-index: 3;
  position: relative;
}

.case-view-btn:hover {
  background: #39E967;
  color: #1E1E1E;
  
}

.case-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  color: #FFFFFF;
  z-index: 1;
}

.case-tag {
  color: #2EC055;
  font-size: 25px;
  display: block;
  margin-bottom: 6px;
  font-family: 'Pixelify Sans';
}

.case-card-info h3 {
  color: #FFFFFF;
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Gotham Pro_Medium';
}

.case-card-info p {
  color: #FFFFFF;
  font-size: 25px;
  opacity: 0.7;
  font-family: 'Gotham Pro_Light';
}

.contact-section {
  position: relative;
  width: 100%;
  padding-left: 80px;
  padding-bottom: 405px;
}

.contact-BG {
  position: absolute;
  pointer-events: none;
  padding-top: 450px;
  z-index: 0;
}

.contact-BG img {
  width: 1600px;
  height: auto;
}

.contact-left {
  position: relative;
  padding-top: 35px;
}

.contact-label {
  position: relative;
  font-family: 'Pixelify Sans';
  font-size: 35px;
  color: #2EC055;
}

.contact-title {
  font-family: 'Gotham Pro_black';
  font-size: 140px;
  line-height: 130px;
  letter-spacing: 5px;
  color: #FFFFFF;
  z-index: 100;

}

.contact-desc {
  font-family: 'Gotham Pro';
  font-size: 30px;
  font-weight: 200;
  max-width: 734px;
  color: #FFFFFF;
  opacity: 70%;
  letter-spacing: 0px;
  line-height: 1.60;
  padding-top: 20px;
}


.contact-form-wrapper {
  background-color: #1E1E1E;
  border-radius: 25px;
  padding: 50px;
  height: 500px;
  width: 700px;
  position: absolute;
  left: 1080px;
  top: 40px;
  z-index: 1;
  isolation: isolate;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25px; /* такой же как у wrapper */
  padding: 1px;
background: linear-gradient(
  135deg,
  rgba(255, 255, 255, 0) 0%,
  rgba(255, 255, 255, 0) 15%,
  rgba(255, 255, 255, 0.4) 25%,
  rgba(255, 255, 255, 0.7) 35%,
  rgba(255, 255, 255, 0.5) 65%,
  rgba(255, 255, 255, 0) 85%,
  rgba(255, 255, 255, 0) 100%
);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.form-title {
  font-family: 'Gotham Pro_medium', sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.form-group label {
  font-family: 'Gotham Pro_regular', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #FFFFFF;
  opacity: 0.8;
  margin-bottom: 10px;
}

.form-group input,
.form-group select {
  background-color: #292A29;
  border: 2px solid #FFFFFF;
  opacity: 50%;
  border-radius: 5px;
  padding: 10px 20px;
  font-family: 'Gotham Pro_light', sans-serif;
  font-size: 15px;
  color: #FFFFFF;
  outline: none;
  width: 100%;
}

.form-group input:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid rgba(56, 234, 103, 0.7);
  outline-offset: 2px;
}


.contact-form button {
  width: 100%;
  padding: 10px;
  background-color: #38EA67;
  border: none;
  border-radius: 122px;
  font-family: 'Gotham Pro_medium', sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: #1E1E1E;
  cursor: pointer;
  margin-top: 15px;
}

.contact-form button:hover {
  background-color: #2EC055;
  transition: background-color 0.4s ease;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select__selected {
  background-color: #292A29;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  padding: 10px 20px;
  font-family: 'Gotham Pro_light', sans-serif;
  font-size: 15px;
  color: #FFFFFF;
  opacity: 0.9;
  cursor: pointer;
}

.custom-select__list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #333333;
  border: 1px solid #444444;
  border-radius: 10px;
  list-style: none;
  z-index: 10;
  margin-top: 5px;
  overflow: hidden;
}

.custom-select__list.open {
  display: block;
}

.custom-select__list li {
  padding: 15px 20px;
  font-family: 'Gotham Pro_light', sans-serif;
  font-size: 15px;
  color: #FFFFFF;
  cursor: pointer;
}

.custom-select__list li:hover {
  background-color: #38EA67;
  color: #000000;
}

.custom-select__selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select__selected::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #FFFFFF;
  opacity: 0.4;
  flex-shrink: 0;
}

.glow2 {
  position: absolute;
  left: 100px;

  transform: translateX(-10%);
  pointer-events: none;
}

.glow2 img {
  max-height: 2000px;
  width: auto;
  z-index: -1;
}

.section-footer {
  width: 100%;
}

footer {
  position: relative;
  display: flex;
  align-items: flex-start;
  border-top: 2px solid #38EA67;
  background-color: #1E1E1E;
  margin-bottom: 100px;
}


.footer-brand {
  position: absolute;
  padding-left: 88px;
  padding-top: 54px;
}


.footer-brand p {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;


  max-width: 392px;
  opacity: 0.7;


  padding-left:0px;
  padding-top: 40px;


    font-family: 'Gotham Pro';
}


.footer-container {
  display: grid;
  grid-template-columns: 289px 138px 208px;
  gap: 145px;
  padding-top: 54px;
  padding-left: 640px;
}


.footer-col {
  color: #FFFFFF;
  font-size: 22px;
  font-family: 'Gotham Pro';
}


/* Заголовки колонок */
.footer-col h4 {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
  opacity: 0.7;


  font-family: 'Gotham Pro_medium';
}


/* Ссылки под заголовками */
.footer-col a {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
  text-decoration: none;
  opacity: 0.7;


  font-family: 'Gotham Pro';
}


/*Точки*/
.footer-col ul {
  list-style: none;
  margin-top: 25px;
}


.footer-col li {
  margin-bottom: 10px;
}


/*гАлмата*/
.footer-col p {
    opacity: 0.7;
    margin-top: 15px;
}


/*ЦВЕТ ПРИ НАВЕДЕНИИ*/
.footer-col a:hover {
  color: #38EA67;
  transition: color 0.6s ease-out;
}

/* ===---===      |---|       ===---=== */
/* ===---=== Мобильный дизайн ===---=== */
/* ===---===      |---|       ===---=== */

@media (max-width: 480px) {
  
  .desktop-br {
    display: none;
  }

  .mobile-br {
    display: block; /* block = реальный перенос строки */
  }

  html {
    overflow-x: hidden;
    touch-action: pan-y; /* запрещаем горизонтальный "пан" на уровне документа */
    width: 100%;
  }

  body {
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y; /* чтобы жестом нельзя было увести страницу вправо/влево */
  }

  .container {
    overflow-x: hidden; /* обрезаем декоративные выходы по X на мобилке */
  width: 100%;
  position: relative; /* чтобы абсолютные элементы внутри не вылезали */
  }

  .mobile-overflow-fix {
  overflow-x: hidden; /* не даём декоративной glow раздувать горизонтальный скролл */
  width: 100%;
  }

  .nav-links {
    display: none;
  }

  .contacts {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    padding: 0;
    cursor: pointer;
    z-index: 120;
  }

  .menu-toggle__line {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.25s ease, width 0.3s ease;
    transform-origin: center;
  }

  .menu-toggle__line:nth-child(2) {
    width: 18px;
  }

  .menu-toggle__line:nth-child(3) {
    width: 12px;
  }

  body.menu-open .menu-toggle__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 24px;
  }

  body.menu-open .menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 24px;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    background: #1e1e1e;
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    padding: 24px 30px 40px;

    overflow-y: auto;
  }

  body.menu-open .mobile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.menu-open {
    overflow: hidden;
  }

  html.menu-open,
  body.menu-open {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu__logo {
    width: 118px;
    height: auto;
  }

  .mobile-menu__nav {
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
  }

  .mobile-menu__nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Gotham Pro';
    font-size: 37px;
    letter-spacing: 0.5px;
  }

  .mobile-menu__contacts {
    margin-top: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .mobile-menu__contacts a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Gotham Pro';
    font-size: 20px;
    text-transform: uppercase;
  }
  
  .logo-svg {
    max-width: 94px;
    max-height: 23px;
  }

  .navbar {
    border: none;
    background: #1e1e1e00;
    padding-top: 0px;
    gap: 0;
    justify-content: space-between;
  }

    /* --=   Блок 1   =---*/
  .block1 {
    padding-top: 40px;
    padding-left: 24px;
    position: relative;   /* ← теперь .glow будет считать координаты от block1 */
    touch-action: pan-y;  /* строго вертикальный жест */
    overscroll-behavior-x: none;
  }

  /* .mobile-overflow-fix содержит декоративную "glow", которая может раздувать ширину */
  .block1 .mobile-overflow-fix {
    overflow-x: hidden;
    touch-action: pan-y;
  }

  .text1 p {
    color:#2EC055;
    font-family: 'Pixelify Sans';
    font-size: 15px;
    margin: 0;
  }

  .main-title h1 {
    font-family: 'Gotham Pro_black';
    font-size: 35px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.0;
    letter-spacing: 2px;
    margin: 0;
  }

  .highlight {
    color: #38EA67;
  }

  .text2 p {
    font-family: 'Gotham Pro';
    font-size: 15px;
    font-weight: 300;
    color: #FFFFFF;
    opacity: 70%;
    line-height: 1.60;
  }

  /* Кнопки */
  .info-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 50px;
  }

  .info-button a {
    font-family: 'Gotham Pro_medium';
    color: #1E1E1E;
    text-decoration: none;

    font-size: 30px;
    letter-spacing: 0px;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 165px;
    height: 40px;
    background-color: #39E967;
    border-radius: 61px;
    border: none;
    box-sizing: border-box;
    text-decoration: none;

    font-family: 'Gotham Pro_medium';
    color: #1E1E1E;
    font-size: 15px;
    letter-spacing: 0px;

    transition: none;
  }

  .btn-primary:hover {
    background-color: #39E967;
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 188px;
    height: 40px;
    background-color: #1e1e1e00;
    border-radius: 61px;
    border: 1px solid #FFFFFF;
    box-sizing: border-box;
    text-decoration: none;

    font-family: 'Gotham Pro_medium';
    color: #FFFFFF;
    font-size: 15px;
    letter-spacing: 0px;

    transition: none;
  }

  .btn-secondary:hover {
    background-color: #1e1e1e00;
    color: #FFFFFF;
  }

  .bg-video {
    position: absolute;
    z-index: -1;
    width: 650px;
    height: 650px;
    top: 450px;
    left: 2px;
  }

  .glow {
    position: absolute;
    z-index: -1;
    width: 2000px;       /* подбери под размер из Figma */
    height: 2000px;
    top: 400px;
    left: 10px;      /* немного за правым краем */
    transform: translateY(-50%);
    pointer-events: none;  /* мышь проходит сквозь */
    
    /* отключаем правило из base CSS которое мы писали ранее */
    max-width: none;
  }

  /* ===---=== Блок 2 ===---=== */

  .block2 {
    padding-top: 575px;
    padding-left: 24px;
    position: relative;
    overflow-x: visible; /* карточки не обрезаются по краям при свайпе */
    overflow: visible;  /* по Y оставляем как было */
  }

  .logos-bg {
    position: absolute;
    z-index: -2;
    left: 0px;
    top: 600px;
    max-width: 100vw; /* ограничиваем ширину декоративной SVG-картинки */
    width: 100vw;
    height: auto;
  }

  .text3 {
    padding-top: 80px;
    font-family: Pixelify Sans;
    font-size: 15px;
    color: #2EC055;
  }

  .main-title2 h1 {
    font-family: 'Gotham Pro_black';
    font-size: 33px;
    letter-spacing: 2px;
    line-height: 100%;
    color: #FFFFFF;
  }

  .text4 p {
    margin-top: 20px;

    font-family: 'Gotham Pro';
    font-size: 15px;
    font-weight: 300;
    color: #FFFFFF;
    opacity: 70%;
    letter-spacing: 0px;
    line-height: 1.60;
  }

  /* Карточки */

  /* Контейнер — горизонтальная лента */
  .cards-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    margin-left: -24px;
    width: calc(100% + 48px);
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .cards-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .card-container {
     /*    display: flex;
    flex-direction: row;
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    gap: 12px;
    padding-bottom: 12px;
    padding-right: 24px;

    padding-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;

    margin-top: -30px;*/

    display: flex;
    flex-direction: row;
    gap: 12px;
    padding-right: 24px;
    margin-top: -30px;
    width: max-content;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .card-container::-webkit-scrollbar {
    display: none;
  }

  /* Карточка — фиксированная ширина, не сжимается */
  .card {
    flex-shrink: 0;

    width: 210px;         /* подбери под дизайн */
    height: 142px;        /* подбери под дизайн */
    scroll-snap-align: start;
  }

  /* Отключаем hover эффекты на тач-устройствах */
  @media (hover: none) {
    .card:hover .card__inner {
      background-color: transparent;
    }
    .card:hover .card__blob {
      transform: translate3d(0, 150%, 0) scale(1.7);
    }
  }

/* Карточка 1 */
.card-icon {
  position: absolute;
  top: 10px;
  right: 10px;

  max-width: 32.5px;
  max-height: 32.5px;
}

.card-title {
  position: absolute;
  top: 10px;
  left: 10px;

  font-family: 'Gotham Pro_medium';
  font-size: 15px;
  color:#FFFFFF;
}

.card-text {
  position: absolute;
  left: 10px;
  bottom: 10px;

  font-family: 'Gotham Pro_light';
  font-size: 12.5px;
  color: #FFFFFF;
}


.block3 {
  padding-top: 130px;
  padding-left: 24px;
  position: relative;
  overflow: visible;
}

.text {
  color:#2EC055;
  font-family: 'Pixelify Sans';
  font-size: 15px;
  margin: 0;
}

.button {
  display: none;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 150px;
  right: 600px;

  width: 375px;
  height: 61px;
  background-color: #1E1E1E;
  border-radius: 61px;
  border: 2px solid #2EC055;
  box-sizing: border-box;

  font-family: 'Gotham Pro_medium';
  color: #FFFFFF;
  font-size: 30px;
  letter-spacing: 0px;
  text-decoration: none;

  transition: background-color 0.2s ease-out;
}

.button:hover {
  background-color: #2EC052;
}

.main-title {
  font-family: 'Gotham Pro_black';
  font-size:47px;
  letter-spacing: 2px;
  color: #FFFFFF;
}

/* Карточки */

  .serv-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .serv-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

.serv-container {
    display: flex;
    flex-direction: row;
    gap: 40.5px;
    padding-top: 30px;
    padding-left: 0;
    margin-right: 0;
    scroll-snap-type: x mandatory;
  }

  .serv-container::after {
    content: '';
    display: block;
    min-width: 24px; /* размер отступа */
    height: 1px;
    flex-shrink: 0;
  }

 .serv {
    flex-shrink: 0;
    width: 337.5px;   /* подбери под дизайн */
    height: 390px;  /* подбери под дизайн */
    scroll-snap-align: start;
  }

  /* Отключаем hover на тач */
  @media (hover: none) {
    .serv:hover {
      transform: none;
    }
  }

.num {
  font-family: 'Pixelify Sans';
  font-size: 20px;
  color: #2EC055;

  position: absolute;
  top: 20px;
  left: 20px;
}

.arrow-icon {
  position: absolute;
  top: 19.68px;
  right: 20.37px;
}

.serv-icon {
  position: absolute;
  top: 80px;
  left: 20px;

  width: 48.75px;
  height: 48.75px;
}

.serv-title {
  position: absolute;
  top: 174px;
  left: 15px;

  font-family: 'Gotham Pro_medium';
  font-size: 30px;
  color: #FFFFFF;
}

.serv-text {
  position: absolute;
  top: 213.75px;
  left: 15px;

  font-family: 'Gotham Pro_light';
  font-size: 18.75px;
  color: #FFFFFF;
}

/* Базовый стиль — общий для всех рамочек */
.info-border {
  display: inline-block;
  border: 1px solid #FFFFFF;
  border-radius: 30px;
  padding: 10px 15px;

  font-family: 'Gotham Pro_light';
  font-size: 11.25px;
  color: #FFFFFF;
  opacity: 75%;
}

.serv-tags {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;  /* если не помещаются в строку — переносятся */
}

.serv-title-up {
  top: 145.5px;  /* подбери нужное значение */
}

.cases-section {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
  padding-top: 35px;
  padding-right: 24px;
  padding-left: 24px;
  background-color: #1E1E1E;

}

.cases-header {
  display: flex;
  order: 1;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 25px;
}

.cases-label {
  color: #2EC055;
  font-size: 12.5px;
  margin-bottom: 8px;
  font-family: 'Pixelify Sans';
}

.cases-title {
  font-size: 25px;
  font-weight: 800;
  color: #fff;
  font-family: 'Gotham Pro_Black';
  margin-bottom: 35px;
}

.cases-all-btn:hover {
  background: #2EC055;
  color: #FFFFFF;
}

/* GRID */
  .cases-grid {
    order: 2;
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 4px;
  }

  /* Первые две — на всю ширину */
  .card-1,
  .card-2 {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
    height: 200px;
  }

  /* Третья и четвёртая — рядом */
  .card-3,
  .card-4 {
    grid-column: unset;
    grid-row: unset;
    width: calc(50% - 2px);
    height: 180px;
  }

  /* Враппер для нижней строки */
  .cases-bottom-row {
    display: flex;
    gap: 4px;
  }

  /* Шрифты внутри карточек */
  .case-tag { font-size: 12.5px; }
  .case-card-info h3 { font-size: 25px; }
  .case-card-info p { font-size: 12.5px; }
  .case-card-info { padding: 12px; }

  /* Кнопка внизу по центру */
  .cases-all-btn {
    display: flex;
    position: absolute;
    left: 6%;
    bottom: 24px;;
    margin: 40px auto 0;
    border: 2px solid #2EC055;
    background: transparent;
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'Gotham Pro_Medium';
    cursor: pointer;
  }

  .case-card-overlay {
    opacity: 1;
    background: transparent;
  }

  .case-view-btn {
    display: none;
  }

  .contact-section {
    position: relative;
    width: 100%;
    padding: 0 24px;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .contact-BG {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
    padding-top: 640px;
    right: -350px;
    z-index: 0;
  }

  .contact-BG img {
    max-width: 800px;
    max-height: auto;
  }

  .contact-left {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 35px;
  }

  .contact-label {
    position: relative;
    font-family: 'Pixelify Sans';
    font-size: 15px;
    color: #2EC055;
  }

  .contact-title {
    font-family: 'Gotham Pro_black';
    font-size: 84px;
    line-height: 80%;
    letter-spacing: 3px;
    color: #FFFFFF;

  }

  .contact-desc {
    display: none;
  }

  .contact-form-wrapper {
    background-color: #1E1E1E;
    border-radius: 25px;
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 32px 0 0;
    padding: 24px;
    box-sizing: border-box;
    z-index: 1;
    isolation: isolate;

  /*  background-color: #1E1E1E;
    border-radius: 25px;
    padding: 50px;
    height: 500px;
    width: 700px;
    position: absolute;
    left: 1090px;
    top: 40px;
    z-index: 1;
    isolation: isolate; */
  }

  .contact-form-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 0.4) 25%,
    rgba(255, 255, 255, 0.7) 35%,
    rgba(255, 255, 255, 0.5) 65%,
    rgba(255, 255, 255, 0) 85%,
    rgba(255, 255, 255, 0) 100%
  );
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
  } 

  .form-title {
    font-family: 'Gotham Pro_medium', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 30px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
  }

  .form-group label {
    font-family: 'Gotham Pro_regular', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #FFFFFF;
    opacity: 0.8;
    margin-bottom: 10px;
  }

  .form-group input,
  .form-group select {
    background-color: #292A29;
    border: 2px solid #FFFFFF;
    opacity: 50%;
    border-radius: 5px;
    padding: 10px 20px;
    font-family: 'Gotham Pro_light', sans-serif;
    font-size: 15px;
    color: #FFFFFF;
    outline: none;
    width: 100%;
  }


  .contact-form button {
    width: 100%;
    padding: 8px 12px;
    background-color: #38EA67;
    border: none;
    border-radius: 60px;
    font-family: 'Gotham Pro_medium', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1E1E1E;
    cursor: pointer;
    margin-top: 15px;
  }

  .contact-form button:hover {
    background-color: #2EC055;
    transition: background-color 0.4s ease;
  }

  .custom-select {
    position: relative;
    width: 100%;
  }

  .custom-select__selected {
    background-color: #292A29;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    padding: 10px 20px;
    font-family: 'Gotham Pro_light', sans-serif;
    font-size: 15px;
    color: #FFFFFF;
    opacity: 0.9;
    cursor: pointer;
  }

  .custom-select__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #333333;
    border: 1px solid #444444;
    border-radius: 10px;
    list-style: none;
    z-index: 10;
    margin-top: 5px;
    /*overflow: hidden;*/
  }

  .custom-select__list.open {
    display: block;
  }

  .custom-select__list li {
    padding: 15px 20px;
    font-family: 'Gotham Pro_light', sans-serif;
    font-size: 15px;
    color: #FFFFFF;
    cursor: pointer;
  }

  .custom-select__list li:hover {
    background-color: #38EA67;
    color: #000000;
  }

  .custom-select__selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .custom-select__selected::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #FFFFFF;
    opacity: 0.4;
    flex-shrink: 0;
  }

  .glow2 {
    position: absolute;
    left: 30px;
    top: 600px;
    transform: translateX(-10%);
    pointer-events: none;
    z-index: 1;
  }

  .glow2 img {
    max-height: 2000px;
    width: auto;
  }

  .section-footer {
    width: 100%;
  }

  footer {
    top: 250px;
    position: relative;
    display: flex;
    align-items: flex-start;
    border-top: 2px solid #38EA67;
    background-color: #1E1E1E;
    margin-bottom: 100px;
  }


  .footer-brand {
    position: absolute;
    padding-left: 88px;
    padding-top: 54px;
  }


  .footer-brand p {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.6;


    max-width: 392px;
    opacity: 0.7;


    padding-left:0px;
    padding-top: 40px;


      font-family: 'Gotham Pro';
  }


  .footer-container {
    display: grid;
    grid-template-columns: 289px 138px 208px;
    gap: 145px;
    padding-top: 54px;
    padding-left: 640px;
  }


  .footer-col {
    color: #FFFFFF;
    font-size: 22px;
    font-family: 'Gotham Pro';
  }


  /* Заголовки колонок */
  .footer-col h4 {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    text-transform: uppercase;
    opacity: 0.7;


    font-family: 'Gotham Pro_medium';
  }


  /* Ссылки под заголовками */
  .footer-col a {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.6;
    text-decoration: none;
    opacity: 0.7;


    font-family: 'Gotham Pro';
  }


  /*Точки*/
  .footer-col ul {
    list-style: none;
    margin-top: 25px;
  }


  .footer-col li {
    margin-bottom: 10px;
  }


  /*гАлмата*/
  .footer-col p {
      opacity: 0.7;
      margin-top: 15px;
  }


  /*ЦВЕТ ПРИ НАВЕДЕНИИ*/
  .footer-col a:hover {
    color: #38EA67;
    transition: color 0.6s ease-out;
  }

  .contact-BG, .glow, .glow2, .logo-bg {
    /*overflow: hidden;*/
    max-width: 100vw;
  }

  /* Mobile footer override */
  .section-footer {
    margin-top: 56px;
  }

  footer {
    top: 0;
    position: relative;
    border-top: 2px solid #39E967;
    margin-bottom: 0;
    padding: 54px 24px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 42px;
  }

  .footer-brand {
    position: static;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand img {
    width: 186px;
    height: auto;
  }

  .footer-brand p {
    padding: 16px 0 0;
    max-width: 320px;
    font-size: 19px;
    line-height: 1.4;
    text-align: center;
  }

  .footer-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 38px;
    justify-items: center;
  }

  .footer-col h4 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .footer-col ul {
    margin-top: 0;
  }

  .footer-col a,
  .footer-col p {
    font-size: 20px;
    line-height: 1.5;
    opacity: 0.75;
  }

  .footer-col li {
    margin-bottom: 0;
  }
}

/* ===== Stabilization layer: keep desktop layout + adaptive tablet ===== */
img,
video {
  max-width: 100%;
}

@media (max-width: 1199px) and (min-width: 481px) {
  .container {
    width: 100%;
    overflow-x: clip;
  }

  .navbar {
    gap: 40px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-links {
    gap: 40px;
  }

  .block1,
  .block2,
  .block3,
  .cases-section,
  .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .main-title h1,
  .main-title2 h1,
  .main-title {
    font-size: clamp(52px, 7vw, 76px);
    letter-spacing: 2px;
  }

  .text2 p,
  .text4 p,
  .contact-desc {
    font-size: clamp(20px, 2.4vw, 24px);
  }

  .info-buttons {
    flex-wrap: wrap;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
    min-height: 54px;
    padding: 0 28px;
    font-size: clamp(20px, 2.2vw, 26px);
  }

  .card-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .card {
    width: 100%;
    height: 240px;
  }

  .serv-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-left: 0;
  }

  .serv {
    width: 100%;
    max-width: 100%;
    height: 460px;
  }

  .button {
    top: 120px;
    right: 24px;
    width: auto;
    min-height: 54px;
    padding: 0 28px;
    font-size: clamp(20px, 2.2vw, 26px);
  }

  .cases-title {
    font-size: clamp(56px, 8vw, 86px);
  }

  .cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    height: auto;
  }

  .cases-bottom-row {
    display: contents;
  }

  .card-1,
  .card-2,
  .card-3,
  .card-4 {
    grid-column: auto;
    grid-row: auto;
    height: 260px;
  }

  .contact-section {
    padding-bottom: 120px;
  }

  .contact-form-wrapper {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 700px);
    margin-top: 24px;
  }

  footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-inline: 24px;
  }

  .footer-brand,
  .footer-container {
    position: static;
    padding: 0;
  }

  .footer-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ВРЕМЕННОЕ удаление кейсов */

.cases-section {
  visibility: none;
}

@media (max-width: 1199px) and (min-width: 481px) {
  .cases-section {
    visibility: none;
  }
}


/* Плавность якорей */

html {
  scroll-behavior: smooth;
}

/* Убираем стандартный указатель (палец) со всех активных элементов */

a, 
button, 
select, 
.serv,
.contact-section,
input[type="submit"], 
.custom-select, 
.custom-select__list li {
    cursor: none !important;
}

/* Скрываем реальный курсор */
html, body {
    cursor: none;
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999999;
    pointer-events: none; /* Чтобы курсор не мешал кликать на кнопки */
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #FFFFFF; /* Цвет точки */
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid #39E967; /* Цвет круга */
    transition: all 0.1s ease-out; /* Эффект плавного следования */
}

.cursor-outline.active {
    transform: translate(-50%, -50%) scale(1.5); /* Увеличиваем в 1.5 раза */
    background-color: rgba(255, 255, 255, 0.2); /* Делаем легкий фон */
}

/* Класс, который будет добавляться при наведении на текст */
.cursor-outline.text-hover {
    /* Сужаем кружок, например, делаем его 10px вместо 40px */
    width: 10px !important;
    height: 10px !important;
    
    /* Дополнительно: можно сделать его чуть толще или ярче, чтобы не потерять */
    border-width: 3px !important;
    background-color: rgba(255, 255, 255, 0.5); /* Легкий фон */
    
    /* Гарантируем плавность перехода */
    transition: all 0.1s ease-out !important;
}

/* Выключаем системный курсор для всей формы и её элементов */
.contact-form-wrapper, 
.contact-form-wrapper *, 
.contact-form, 
.contact-form *,
.custom-select,
.custom-select__list li,
.contact-form button[type="submit"] {
    cursor: none !important;
}

/* На всякий случай фиксируем для самих текстовых полей */
.contact-form input, 
.contact-form label {
    cursor: none !important;
}

/* Фон затемнения */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none; /* Чтобы не мешал, пока скрыт */
  transition: opacity 0.3s ease;
  z-index: 10000;
  cursor: none !important; /* Убираем системный курсор */
}

/* Активное состояние */
.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Поп ап окно */
/* Оверлей (фон затемнения) */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Чуть темнее для контраста */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999990;
  cursor: none !important;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Сама карточка поп-апа */
.popup-content {
  background: #1E1E1E; /* Твой цвет фона */
  width: 90%;
  max-width: 480px; /* Оптимально под макет */
  padding: 50px 30px;
  border-radius: 25px; /* Скругление как на макете */
  border: 2px solid #38EA67; /* Твоя зеленая рамка */
  text-align: center;
  box-shadow: 0 0 30px rgba(56, 234, 103, 0.15); /* Легкое свечение рамки */
  
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

/* Заголовок */
.popup-content h3 {
  font-family: 'Gotham Pro_bold', sans-serif; /* Используем болд для заголовка */
  font-size: 25px;
  color: #FFFFFF;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

/* Текст описания */
.popup-content p {
  font-family: 'Gotham Pro_light', sans-serif; /* Для лайта используй Gotham Pro (обычно он и есть лайт/регуляр) */
  font-weight: 300; 
  font-size: 20px;
  line-height: 1.4;
  color: #FFFFFF;
  margin-bottom: 40px;
}

/* Кнопка "ОТЛИЧНО" */
.popup-content button {
  background: #FFFFFF;
  color: #1E1E1E;
  border: none;
  padding: 15px 60px;
  border-radius: 50px; /* Полностью круглая кнопка */
  font-family: 'Gotham Pro_bold', sans-serif; /* Медиума в конфиге нет, болд подойдет лучше всего */
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

/* Эффект при наведении (через кастомный курсор будет еще круче) */
.popup-content button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

@media (max-width: 1199px) and (min-width: 481px) {
    .cursor-dot, 
    .cursor-outline {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}
