
@import url('https://fonts.cdnfonts.com/css/codec-pro');
@import url('https://fonts.cdnfonts.com/css/druk-wide-trial');
body {
    margin: 0;
    padding: 0;
    background-color: #020202;
    color: #fff;
    font-family: 'codec pro', sans-serif;
    min-height: 100vh;
    position: relative;
    font-family: Druk Wide Trial;
    font-weight: 500;
    line-height: 99%;
    letter-spacing: 0%;
}

html, body {
    overflow-x: hidden;
}

body::selection{
    color: #f1005c;
}

main{
    width: 100%;
    background-color: #020202;
}

h1, h2, h3, .hero-title-center, .services-title-red, .comand-title-red {
    text-transform: uppercase;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, #020202 0%, #020202 100%);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
    width: 100%;
    height: 832px;
}

section{
    font-family: "codec pro", sans-serif;
}

section h1{
    font-family: Druk Wide Trial;
}

header {
    margin-left: 45px;
    margin-top: 10px;
    padding: 40px 0 0 0;
    background: transparent;
    position: relative;
    z-index: 2;
    font-family: 'codec pro', Arial, sans-serif;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    text-decoration: none;
    margin-right: 32px;
}

nav {
    align-items: center;
    justify-content: center;
    width: 100%;
    
    display: flex;

    position: absolute;
    top: 40px;
    z-index: 10;
    font-family: 'Codec Pro', Arial, sans-serif;
}

nav ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 6px 24px;
    width: auto;
    position: relative;
}



nav ul::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    
    -webkit-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;
}
nav li {
    margin: 0 2px;
}

nav a {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 14px;
    background: transparent;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s, background 0.3s;
}

nav li{
    color: #f1005c ;
}

nav a.active,
nav a:hover,
nav a:focus {
    color: #f1005c;
    text-decoration: none;
}

.btn {
    padding: 12px 32px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
}

header .btn-pink {
    position: absolute;
    right: 40px;
    top: 40px;
    z-index: 11;
    background: #f1005c;
    color: #fff;
}

.services-red a{
    text-decoration: none;
}

.btn-pink {
    background: #f1005c;
    color: #fff;
}

.btn-pink:hover {
    background: #f1005c;
    color: #fff;
}

/* Hero Section */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 100%;
}


.hero-content {
    position: relative;
    text-align: center;
    justify-content: center;
    padding-top: 60px;
    width: 100%;
}

.hero-avatars-img-3-phone{
    display:none;
}
.hero-label {
    position: absolute;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    background: none;
    z-index: 3;
    font-family: 'Codec Pro';
    letter-spacing: 0.5px;
}



.hero-avatars {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    margin-bottom: 32px;
    margin-top: 80px;
    z-index: 2;
    overflow: hidden;
    width: 100%;
    padding-left: 50px;
}

.hero-title-center {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -60%);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.30);
    margin: 0;
    letter-spacing: 2px;
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
    font-style: italic;
}

.hero-avatars .hero-desc {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, 0);
    color: rgba(255,255,255,0.30);
    font-size: 1.3rem;
    padding: 12px 32px;
    border-radius: 18px;
    z-index: 10;
    font-weight: 500;
    pointer-events: none;
    text-align: center;
}

.hero-desc{
    font-family: 'codec pro', Arial, sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 20px;
    line-height: 99%;
    letter-spacing: 0%;
    text-align: center;
    

}
.hero-desc-2{
    font-family: 'codec pro', Arial, sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 20px;
    line-height: 99%;
    letter-spacing: 0%;
    text-align: center;
    position: absolute;
    left: 15%;
    top: 20%;
    transform: translate(-50%, 0);
    font-size: 1.3rem;
    padding: 12px 32px;
    border-radius: 18px;
    z-index: 10;
    font-weight: 500;
    pointer-events: none;
}

.hero-desc-3{
    font-family: 'codec pro', Arial, sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 20px;
    line-height: 99%;
    letter-spacing: 0%;
    text-align: center;
    position: absolute;
    left: 85%;
    top: 2%;
    transform: translate(-50%, 0);
    font-size: 1.3rem;
    padding: 12px 32px;
    border-radius: 18px;
    z-index: 10;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
}

.hero-title-ellipse-1 {
    position: absolute;
    width: 735px;
    height: 197px;
    left: 0px;
    top: 87%;
    transform: translateX(-336px);
    background: rgba(2,2,2,1);
    border-radius: 50% / 45%;
    filter: blur(24px);
    z-index: 9;
    pointer-events: none;
}

.hero-title-ellipse-2 {
    position: absolute;
    width: 110%;
    height: 260px;
    top: 82%;
    transform: rotate(180deg);
    background: #030303;
    filter: blur(24px);
    z-index: 9;
    pointer-events: none;
}

.hero-title-ellipse-3 {
    position: absolute;
    width: 735px;
    height: 197px;
    left: 1200px;
    top: 93%;
    transform: translateX(-336px);
    background: rgba(2,2,2,1);
    border-radius: 50% / 45%;
    filter: blur(24px);
    z-index: 9;
    pointer-events: none;
}

.hero-title-ellipse-4 {
    position: absolute;
    width: 735px;
    height: 197px;
    left: 70%;
    top: 90%;
    transform: rotate(110deg);
    background: rgba(2,2,2,1);
    border-radius: 50% / 45%;
    filter: blur(24px);
    z-index: 9;
    pointer-events: none;
}

.hero-title-ellipse-5 {
    position: absolute;
    width: 735px;
    height: 197px;
    left: 100px;
    top: 80%;
    transform: rotate(60deg);
    transform: translateX(-336px);
    background: rgba(2,2,2,1);
    border-radius: 50% / 45%;
    filter: blur(24px);
    z-index: 9;
    pointer-events: none;
}

.hero-title-ellipse-6 {
    position: absolute;
    width: 735px;
    height: 197px;
    left:-430px;
    top: 90%;
    transform: rotate(110deg);
    background: rgba(2,2,2,1);
    border-radius: 50% / 45%;
    filter: blur(24px);
    z-index: 9;
    pointer-events: none;
}

.hero-title-ellipse-9{
    position: absolute;
    width: 735px;
    height: 197px;
    transform: rotate(150deg);
    border-radius: 50% / 45%;
    position: absolute;
    left: 10%;
    top: 15%;
    transform: translate(-50%, 0);
    background: rgba(2,2,2,0.70);
    filter: blur(12px);
    z-index: 9;
    pointer-events: none;
}

.hero-title-ellipse-8{
    position: absolute;
    width: 735px;
    height: 197px;
    transform: rotate(50deg);
    border-radius: 50% / 45%;
    position: absolute;
    left: 80%;
    top: 10%;
    transform: translate(-50%, 0);
    background: rgba(2,2,2,0.70);
    filter: blur(12px);
    z-index: 9;
    pointer-events: none;
}



.highlight {
    color: #ff006a;
    font-weight: 900;
    filter: drop-shadow(0 0 32px #ff006a) drop-shadow(0 0 48px #ff006a);
}

.hero-title-ellipse {
    position: absolute;
    left: 52%;
    top: 35%;
    transform: translate(-50%, 0);
    width: 672px;
    height: 218px;
    background: rgba(2,2,2,0.50);
    border-radius: 0% / 0%;
    filter: blur(12px);
    z-index: 9;
    pointer-events: none;
}

.hero-avatars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 32px;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.hero-avatars img {
    width: 320px;
    height: 370px;
    object-fit: cover;
    position: relative;
    margin-left: -120px; 
    border-radius: 32px;
    transition: transform 0.3s;
}
.hero-avatars img:first-child {
    margin-left: 0;
    z-index: 1;
}
.hero-avatars img:nth-child(2) { z-index: 2; }
.hero-avatars img:nth-child(3) { z-index: 3; }
.hero-avatars img:nth-child(4) { z-index: 2; }
.hero-avatars img:nth-child(5) { z-index: 1; }


.hero-title-ellipse-1,
.hero-title-ellipse-2,
.hero-title-ellipse-3,
.hero-title-ellipse-4,
.hero-title-ellipse-5 {
    background: #020202 !important;
}

/* Marquee Section */

.marquee__inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 18s linear infinite;
}

.marquee__inner span {
    display: inline-block;
    padding-right: 20px; 
    font-family: 'Druk Wide Trial', Arial, sans-serif;
    font-size: 1.3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Center Button */

.center-button {
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%) translateY(60px); 
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    width: 100%;
    pointer-events: none; 
}

.center-button .scroll-button {
    pointer-events: auto; 
    width: 30px;
    height: 50px;
    border: 2px solid #ff3266;
    border-radius: 30px;
    position: relative;
    background: transparent;
    display: block;
}

.center-button .scroll-button::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #ff3266;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}
    .center-button .scroll-button {
    pointer-events: auto; 
}

/* Services Section */

.services-red{
    z-index: 5;
}

.services-red {
    background: #020202;
    padding: 64px 0 48px 0;
    z-index: 5;
}

.services-title-red {
    color: rgba(255,255,255,0.30);
    font-size: 2.2rem;
    margin-bottom: 48px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    font-family: 'codec pro', Arial, sans-serif;
    font-size: 36px;
    line-height: 99%;
    letter-spacing: 0%;
    font-style: italic;


    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap; /* Запретить перенос */

}



.services-title-red .highlight-red {
    color: #ff004e;
    font-style: italic;

    font-family: "codec pro", Arial, sans-serif;
    filter: drop-shadow(0 0 32px #ff006a) drop-shadow(0 0 48px #ff006a);}

.service-card-red h3 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 18px;
    font-family: "codec pro", Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.5px;
    text-align: left;
    margin-left: 10px;
}

.service-card-red p {
    color: rgba(255,255,255,0.30);
    font-size: 1.02rem;
    line-height: 1.5;
    margin: 0;
    font-family: "codec pro", Arial, sans-serif;
    font-weight: 400;
    font-style: italic;
    margin-left: 12px;
    margin-top: 8px;
    margin-bottom: 0px;
    text-align: left;
    text-align: left;
    letter-spacing: normal;
}


.service-card-red a{
box-sizing: border-box;


padding: 10px 10px;
display: inline-block;
    width: auto;
    margin: 0;
    vertical-align: middle;
position: relative;
width: 155px;
height: 35px;
margin-top: 10px;
bottom: 0px;
left: 10px;
background: #181518;
border: 1px solid #4B4B4B;
border-radius: 30px;
color: #4B4B4B;
text-decoration: none   ;

}

.service-card-red a:hover {
    background: #333333;
    color: #fff;
    text-decoration: none;
}

.service-card-red:hover {
    border: 1.5px solid #ff004e;
}


.services-grid-red {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.service-card-red {
    background: #181518;
    height: 190px;
    border-radius: 24px;
    padding: 36px 28px 32px 28px;
    color: rgba(255,255,255,0.30);
    box-shadow: 0 6px 32px #ff004e11;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* добавь это */
    transition: box-shadow 0.2s, border 0.2s;
    border: none;
    z-index: 8;
    font-family: "codec pro";
}


/* Command Section */

.comand{
    font-family: 'codec pro';
}

.comand-img-row {
    display: grid;
    grid-template-columns: repeat(3, 281px);
    gap: 40px;
    width: max-content;
    margin: 0 auto 32px auto;
    padding: 0;
}
.comand-img-caption-title-red-card{
    font-family: "Codec pro";
    font-weight: 600;
    font-size: 64px;
    line-height: 99%;
    letter-spacing: 0%;
    text-align: center;
    color: #fff;
    z-index: 4;
    position: absolute;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 2;
    box-sizing: border-box;
    border-radius: 0 0 18px 18px;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}



.comand-img-caption-subtitle-red-card{
    font-family: "Codec pro";
    color: #7D0C37;
    font-size: 20px;
    z-index: 4;
    position: absolute;
    left: 40px;
    width: 100%;
    max-width: 100%;
    z-index: 2;
    box-sizing: border-box;
    border-radius: 0 0 18px 18px;
    margin: 0;
    top: 60%;
    width: 199px;
    height: 87px;
    text-align: center;
    overflow-wrap: break-word; 
}

.comand-img-col:last-child{
    background-color: #f1005c !important;
}

.comand-img-col {
    height: 363px;
    border-radius: 24px;
    box-shadow: 0 4px 24px 0 rgba(153, 9, 9, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 24px 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10; 
}


.comand-img-wrapper, .comand-img-wrapper-red {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    display: block;
    filter: blur(6px);
    transition: filter 0.4s cubic-bezier(.4,0,.2,1), width 0.4s, height 0.4s, object-fit 0.4s;
}

.comand-img-wrapper-red{
    background: #f1005c;
}

.comand-img-col:hover .comand-img-wrapper ,.comand-img-wrapper-red {
    filter: blur(0);
}

.comand-title-red .highlight-red {
    color: #ff004e;

    font-family: "codec pro";
    filter: drop-shadow(0 0 32px #ff006a) drop-shadow(0 0 48px #ff006a);}


.comand-title-red{
    text-align: center;
    margin-top: 8px;
    font-style: italic ;
    font-family: "codec pro";
}

.highlight-red{
    text-align: center;
    gap: 4px;
    font-style: italic;
    font-family: "codec pro";
}



.comand-img-caption-title,
.comand-img-caption-subtitle {
    position: absolute;
    left: 0;
    width: 100%;
    max-width: 100%;
    color: #fff;
    text-align: left;
    z-index: 2;
    box-sizing: border-box;
    border-radius: 0 0 18px 18px;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.comand-img-caption-title {
    bottom: 40px;
    font-size: 18px;
    font-family: 'codec pro';
    font-weight: 400;
    line-height: 1.1;
}

.comand-img-caption-subtitle {
    bottom: 5px;
    font-size: 13px;
    font-family: 'codec pro';
    opacity: 0.85;
    line-height: 1.3;
    border-radius: 0 0 18px 18px;
    padding-top: 4px;
    padding-bottom: 8px;
}


.comand-img-wrapper img {
    width: 100%;
    height: 100%;
    margin-top: 18px;
    border-radius: 18px;
    display: block;
}

.comand-img-caption-title-red{
    font-weight: 400;
}

.custom-blur {
    position: absolute;
    width: 1290px;
    height: 100px;
    top: 232px;
    left: 0%;
    background: rgba(2, 2, 2, 1); 
    filter: blur(11px);
    border-radius: 0px;
    pointer-events: none;
    z-index: 2;
}


.comand-img-caption-title .comand-img-caption-title-red{
    color: #f1005c;
}

/* Portfolio Cards */

.cases{

    padding: 64px 0  0;
    z-index: 5;
}
.portfolio-grid {
    display: grid;

    gap: 32px 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    margin-top: 70px;
    
}


.horizontal-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 16px;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: none;           
    -ms-overflow-style: none;        
}

.scroll-content {
    width: 750px;
    display: flex;
    gap: 20px;
    align-items: stretch;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.portfolio-card {
    min-width: 320px;
    width: 50%;
    flex: 0 0 auto;
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 0;
    scroll-snap-align: start;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
    background: #232025;
}
.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #ff004e;
    border-radius: 4px;
}

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
  animation: fadeInBg 0.4s;
}
@keyframes fadeInBg {
  from { background: rgba(0,0,0,0); }
  to   { background: rgba(0,0,0,0.92); }
}
.gallery-modal.show {
  display: flex;
  animation: fadeInBg 0.4s;
}
.gallery-modal-content {
  background: #181518;
  scrollbar-width: none;        
  -ms-overflow-style: none;  
  border-radius: 18px;
  padding: 32px 24px;
  max-width: 90vw;
  width: 60%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 40px #00000088;
  animation: modalAppear 0.4s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;     
}
@keyframes modalAppear {
  from { opacity: 0; transform: translateY(40px) scale(0.98);}
  to   { opacity: 1; transform: translateY(0) scale(1);}
}
body.modal-open {
  overflow: hidden;
  height: 100vh;
}
.gallery-modal-close {
  position: absolute;
  top: 18px; right: 32px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  transition: color 0.2s;
}
.gallery-modal-close:hover {
  color: #ff004e;
}
.gallery-modal-images {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 24px;
  width: 100%;
}

.gallery-modal-images img {
  max-width: 100%;

  border-radius: 14px;
  box-shadow: 0 2px 16px #00000044;
  background: #222;
  object-fit: contain;
  display: block;
  transition: box-shadow 0.2s;

}


.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20,20,30,0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    box-shadow: 0 2px 12px #00000033;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}
.scroll-button.prev { left: 8px; }
.scroll-button.next { right: 8px; }
.scroll-button:hover { background: #ff004e; color: #fff; }

.cases-btn-last{
    box-sizing: border-box;


display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
text-align: center;
padding: 10px 10px;
gap: 10px;

position: relative;
width: 200px;
height: 50px;
margin-top: 25px;

background: #181518;
border: 1px solid #4B4B4B;
border-radius: 30px;
color: #4B4B4B;
text-decoration: none   ;
z-index: 50;
top: 14%;
}
.cases-btn-last:hover {
    background: #333333;
    color: #fff;
    text-decoration: none;
}

div.portfolio-card{
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    text-align: center;
    cursor:auto;

}


.portfolio-card {
    background: #0a0a0a;
    border-radius: 24px;
    height: 350px;
    width: 97%;
    box-shadow: 0 6px 32px #ff004e11;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    aspect-ratio: 1/1;
    min-height: 240px;
    border: none;
    text-decoration: none;
    position: relative;
}

.text-title-card-last{
    position: absolute;
    color: #f1005c;
    font-size: 40px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: 'Druk Wide Trial',sans-serif;
    letter-spacing: -2px;
line-height: 21px;
margin-bottom: 0;
color: #f1005c;
z-index: 10;
    text-transform: uppercase;
    top: 25%;
}

.text-desc-card-last{
    position: absolute;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: 'Codec Pro';
}


.portfolio-card:hover {
    box-shadow: 0 12px 40px #ff004e33;
    transform: translateY(-4px) scale(1.03);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px;

}


.text-title-card{
    position: absolute;
    bottom: 100px;
    left: 30px;
    color: #f1005c;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: 'Druk Wide Trial';
font-style: italic;
font-weight: 700;
line-height: 21px;
margin-bottom: 0;
color: #f1005c;
z-index: 10;
    text-transform: uppercase;
}

.text-desc-card{
    position: absolute;
    bottom: 50px;
    left: 30px;
    color: rgba(255,255,255,0.70);
    font-size: 16px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: 'Codec Pro';
}

/*form section*/


.form {
    z-index: 9999 !important;
    position: relative !important;
    justify-content: start;
    width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  }


.form-flex {
    display: flex;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    justify-content: center;
}

.main-form {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 270px;
    border-radius: 28px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;

    box-sizing: border-box;
}

.from-inputs input {
  flex: 1; /* чтобы равномерно распределились по ширине */
}

.form-title {
    font-family: 'Codec Pro', Arial, sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 12px;
    text-align: left;
}

.form input,
.form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #232025;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: "codec pro", Arial, sans-serif;
    resize: none;
    outline: none;
    transition: border 0.2s;
}

.form-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: "codec pro", Arial, sans-serif;
}

.row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-right: 26px;
}

.input-group label {
  margin-bottom: 5px;
  font-size: 14px;
}

.input-group input {
  background-color: #1c1c1c;
  border: none;
  padding: 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
}

.full-width {
  width: 95%;
}


.form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-row {
  display: flex;
  gap: 10px;
}

.top-row input {
  flex: 1; /* чтобы равномерно распределились по ширине */
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
}


.main-form input:focus,
.main-form textarea:focus {
    border: 1.5px solid #ff004e;
}

.main-form button {
    margin-top: 8px;
    padding: 12px 0;
    width: 427px; 
    border-radius: 12px;
    border: none;
    background: #ff004e;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Codec Pro', Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.main-form button:hover {
    background: #c9003d;
}

.form-photo {
    flex: 1 1 50%;
    display: flex;
    background: none;
    max-width: 50%;
}

.form-photo img {
    width: 100%;
    max-width: 340px;
    border-radius: 24px;
    box-shadow: 0 6px 32px #ff004e22;
    object-fit: cover;
}


.fade-init {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1000; /* Поверх всего */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* затемнение */
}

/* Контент модального окна */
.modal-content {
  background-color: #020202;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;

  position: relative;
    animation: fadeIn 0.3s ease-in-out;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;



}
/* Кнопка закрытия */
.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.main-form input{
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #333;

    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: "codec pro", Arial, sans-serif;
    resize: none;
    outline: none;
    transition: border 0.2s;

}
.modal form input,
.modal form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #232025;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: "codec pro", Arial, sans-serif;
    resize: none;
    outline: none;
    transition: border 0.2s;}

.modal form{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 10px;
    padding-left: 5px;
}

.modal button {
    padding: 12px 0;
    border-radius: 12px;
    border: none;
    width: 270px;
    background: #ff004e;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Codec Pro', Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s;

}

.modal h2{
    font-family: 'Codec Pro', Arial, sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
}




/*footer*/


.footer {
    background: #020202;
    color: #fff;
    padding: 40px 0;
    font-family: 'Codec Pro', Arial, sans-serif;
    position: absolute;
    width: 1033px;
    height: auto;
    top: 0px;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
    margin-bottom: 0px;
    width: 100%;
    height: auto;
}
.footer-content ul li a {
    text-decoration: none;
    color: inherit;
}

.text-footer-desc{
    font-family: 'Codec Pro', Arial, sans-serif;
    font-size: 16px;
    color: #fff;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
    margin-top: 40px;
}


.footer-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 1033px;
}

.text-footer-title{
font-family: 'Druk Wide Trial';
font-style: italic;
font-weight: 700;
font-size: 64px;
line-height: 21px;
margin-bottom: 0;
color: #f1005c;
}

.footer {
        width: 100% !important;
        height: auto !important;
        padding: 40px 0 !important;
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #020202 !important;

    }

.footer-links img:hover {
    top: -5px;
    transform: translateY(-5px) scale(1.07);
    position: relative;

}


.footer-content ul {
    display: flex;
    flex-direction: row;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: flex-end;
    margin-top: 100px;
}

.footer-content ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    text-align: center;
}

.footer-content ul li img {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
    display: block;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}

.footer-content ul li span {
    font-size: 1rem;
    color: #fff;
    margin-top: 0;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-style: italic;
    text-decoration: none;
    font-family: 'Codec Pro', Arial, sans-serif;
}

.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.footer-links img {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
    width: 115px;
    height: 115px;
}

.footer-blur{
    position: absolute;
    width: 503px;
    height: 573px;
    top: 0;
    right: 0;
    background: linear-gradient(290deg, rgba(2, 2, 2, 0.8) 0%, rgba(2, 2, 2, 0.1) 100%);
    filter: blur(24px);
    z-index: 10;
}

footer img{
    width:523px;
    height: 553px;
}
.footer-btn{

display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 18.2699px 44.3697px;
position: absolute;
width: 190px;
height: 40.54px;
margin-bottom: 20px;
background: #F1005C;
border-radius: 7.82995px;
color: #fff;
}


    @keyframes scroll {
      0% { top: 10px; opacity: 1; }
      50% { top: 25px; opacity: 0.5; }
      100% { top: 10px; opacity: 1; }
    }


@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-bounce {
    0% { transform: translateY(0);}
    100% { transform: translateY(10px);}
}



@media (max-width: 450px) {
    .logo img {
        width: 36px !important;
        height: 36px !important;
    }
    
    .form-flex {
        flex-direction: column !important;
        gap: 24px !important;
        align-items: center !important;
    }
    .main-form, .form-photo {
        max-width: 10% !important;
        flex: 1 1 100% !important;
    }
    
    .main-form .btn-pink{
        width: 80% !important;
        padding: 12px 0;
        font-size: 1.1rem;
        left: 60% !important;
    }

    .center-button {
        position: static !important;
        transform: none !important;
        margin: 16px 0 !important;
    }
    .services-title-red,
    .comand-title-red {
        font-size: 1.2rem !important;
        margin-bottom: 24px !important;
    }
    .services-grid-red {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 4px !important;
    }
    .service-card-red {
        padding: 18px 10px 16px 10px !important;
        min-height: 80px !important;
        font-size: 0.95rem !important;
    }
    .service-card-red h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    .comand-img-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    background-color: #0b0b0b;
  }
  .comand-img-col:last-child{
    background-color: #f1005c !important;
  }

    .comand-img-wrapper {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        height: auto !important;
    }
    .comand-img-wrapper img {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
    }
    .comand-img-caption-title,
    .comand-img-caption-subtitle {
        position: static !important;
        font-size: 0.8rem !important;
        padding: 2px 4px !important;
        margin-top: 4px !important;
        margin-bottom: 8px !important;
        white-space: normal !important;
        border-radius: 8px !important;
        color: #fff !important;
        text-align: center !important;
    }
    
    .comand-img-wrapper, .comand-img-wrapper-red{
        transition: none !important;
    }

    .hero-title-ellipse-7 {
    position: absolute;
    width: 735px;
    height: 197px;
    left: 7%;
    top: 2%;
    transform: rotate(110deg);
    background: rgba(2,2,2,1);
    border-radius: 50% / 45%;
    filter: blur(24px);
    z-index: 9;
    pointer-events: none;
}
    .comand-img-caption-subtitle {
        font-size: 0.7rem !important;
        padding: 2px 4px !important;
        position: static !important;
        left: auto !important;
        bottom: auto !important;
        top: auto !important;
        transform: none !important;
        margin-bottom: 8px !important;
        white-space: normal !important;
    }
    .custom-blur {
        display: none !important;
    }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
    margin-left: 10px;
}
.burger span {
    display: block;
    height: 4px;
    width: 28px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.comand-img-caption-title-red-card{
    font-family: "codec pro", Arial, sans-serif;
    font-weight: 600;
    font-size: 64px;
    line-height: 99%;
    letter-spacing: 0%;
    text-align: center;
    color: #fff;
    z-index: 4;
    position: static !important;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 2;
    box-sizing: border-box;
    border-radius: 0 0 18px 18px;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.comand-img-col:hover .comand-img-wrapper ,.comand-img-wrapper-red {
    filter: blur(0);
}

.comand-img-caption-subtitle-red-card{
    font-family: "codec pro", Arial, sans-serif;
    color: #7D0C37;
    font-size: 20px !important;
    z-index: 4 !important;
    position: absolute !important;
    left: 40px  !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    border-radius: 0 0 18px 18px !important;
    margin: 0 !important;
    top: 60% !important;
    width: 199px !important;
    height: 87px !important;
    text-align: center !important;
    overflow-wrap: break-word !important; 
}

.comand-img-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-items: stretch !important;
    filter: blur(0);
}

.form-photo img{
    display: none !important;
}


.footer-blur{
    display: none !important;
}

.footer-content ul {
    align-items: center;
    gap: 16px;
}

.footer-content ul li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    text-align: center;
}

.footer-content ul li img {
    width: 75px;
    height: 75px;
    margin-bottom: 8px;
    display: block;
}
.footer-content ul li span {
    font-size: 0.8rem;
    color: #fff;
    margin-top: 0;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-style: italic;
    text-decoration: none;
    font-family: 'Codec Pro', Arial, sans-serif;

}
.text-footer-title{
    font-family: 'Druk Wide Trial', Arial, sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 40px;
    line-height: 21px;
    margin-bottom: 0;
    color: #f1005c;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;

}

.footer-img{
    display: none !important;
} 

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    margin-bottom: 50px;
}

.horizontal-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 16px;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;        /* IE и Edge */

}

.scroll-content {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: stretch;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;

}
  .horizontal-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }


  .scroll-button {
    display: none;
  }

  .hero-avatars-img-3-phone{
    display: block !important;
    width: 200px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 5 !important;
  }

 .portfolio-card{
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    text-align: center;
    cursor: pointer;
    aspect-ratio: 1/1;
    min-height: 240px;
    border: none;
    text-decoration: none;
    width: 90%;
    max-width: 550px;
    height: 350px;
 }

    .portfolio-card:hover {
        box-shadow: 0 12px 40px #ff004e33;
        transform: translateY(-4px) scale(1.03);
    }

    .portfolio-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 24px;
    }

    .text-title-card-last{
        position: absolute;
        color: #f1005c;
        font-size: 40px;
        font-weight: 800;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        font-family: 'Druk Wide Trial',sans-serif;
        letter-spacing: -2px;
        line-height: 21px;
        margin-bottom: 0;
        color: #f1005c;
        z-index: 10;
        text-transform: uppercase;
        top: 25%;
    }

    .text-desc-card-last{
        position: absolute;
        color: #fff;
        font-size: 16px;
        font-weight: 400;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        font-family: 'Codec Pro';
    }


}

@media (min-width: 1025px) {
  .services-grid-red {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .burger {
    display: none;
  }

  .comand-img-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    grid-template-columns: repeat(3, 1fr);
}

.comand-img-caption-title,
.comand-img-caption-subtitle {
    position: absolute;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 8px 14px 8px 14px;
    color: #fff;
    text-align: left;
    z-index: 2;
    box-sizing: border-box;
    border-radius: 0 0 18px 18px;
    margin: 0;
}

.comand-img-caption-title {
    bottom: 48px;
    font-size: 18px;
    font-family: 'codec pro';
    font-weight: 400;
    line-height: 1.1;
}

.comand-img-caption-subtitle {
    font-size: 12px;
    font-family: "codec pro";
    opacity: 0.85;
    line-height: 1.2;

    border-radius: 0 0 18px 18px;
    padding-top: 4px;
    padding-bottom: 6px;

}



}

@media (max-width: 600px) {
  .hero-avatars-img-1,
  .hero-avatars-img-2,
  .hero-avatars-img-3,
  .hero-avatars-img-4,
  .hero-avatars-img-5,
  .hero-title-ellipse,
  .hero-title-ellipse-1,
  .hero-title-ellipse-2,
  .hero-title-ellipse-3,
  .hero-title-ellipse-4,
  .hero-title-ellipse-5,
  .hero-title-ellipse-9,
  .hero-title-ellipse-8 {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    visibility: hidden !important;
    position: absolute !important;

  }

  .hero-avatars-img-3-phone{
    display: flex !important;
    width: 200px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .hero-avatars,
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .hero-title.hero-title-center {
    margin: 10px 0 18px 0 !important;
    font-size: 2.1rem !important;
    text-align: center !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    white-space: normal !important;
  }


  .comand-img-row .comand-img-col:last-child .comand-img-caption-title-red-card {
    position: static !important;
    margin-top: 150px !important;
    text-align: center !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: block !important;
  }
  
  .hero-desc,
  .hero-desc-2,
  .hero-desc-3 {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto 10px auto !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    color: #fff !important;
    background: none !important;
    border-radius: 0 !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    white-space: normal !important;
    text-align: center !important;
    max-width: 95vw !important;
  }

.comand-img-col:last-child{
    background-color: #f1005c !important;
}
.gallery-modal-content{
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.comand-img-row .comand-img-col:last-child .comand-img-caption-title-red-card,
  .comand-img-row .comand-img-col:last-child .comand-img-caption-subtitle-red-card {
    text-align: center !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    position: static !important;
    display: block !important;
  }

  .comand-img-row .comand-img-col:last-child .comand-img-caption-title-red-card{
    margin-top: 150px !important;
  }

.gallery-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000; /* Поверх всего */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

  .comand-img-caption-title-red-card{
    font-family: "codec pro", Arial, sans-serif!important;
    font-weight: 600 !important;
    font-size: 64px !important;
    line-height: 99% !important;
    letter-spacing: 0% !important;
    text-align: center !important; 
    color: #fff;
    z-index: 4;
    position: absolute !important;
    left: 0 !important;
    margin-top: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    border-radius: 0 0 18px 18px !important;
    margin: 0 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.comand-img-caption-subtitle-red-card{
    font-family: "codec pro", Arial, sans-serif;
    color: #7D0C37;
    font-size: 20px;
    z-index: 4;
    position: absolute;
    left: 40px;
    width: 100%;
    max-width: 100%;
    z-index: 2;
    box-sizing: border-box;
    border-radius: 0 0 18px 18px;
    margin: 0;
    top: 60%;
    width: 199px;
    height: 87px;
    text-align: center;
    overflow-wrap: break-word; 
}

  .comand-img-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-items: stretch !important;
    filter: blur(0);
  }
  .comand-img-col {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    filter: blur(0);
    gap: 6px !important;
  }
  .comand-img-wrapper {
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    filter: blur(0);
  }
  .comand-img-wrapper img {
    width: 320px !important;
    height: 340px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: 18px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .comand-img-caption-title {
    font-size: 0.8rem !important;
    padding: 2px 4px !important;
    position: static !important;
    margin-top: 4px !important;
    margin-bottom: 2px !important;
    white-space: normal !important;
    border-radius: 8px !important;
    color: #fff !important;
    text-align: center !important;
  }
  .comand-img-caption-subtitle {
    font-size: 0.7rem !important;
    padding: 2px 4px !important;
    position: static !important;
    margin-bottom: 8px !important;
    white-space: normal !important;
    border-radius: 6px !important;
    color: #bdbdbd !important;
    text-align: center !important;
  }
  .custom-blur,
  .center-button {
    display: none !important;
  }
  .burger {
    display: flex !important;
    order: 3;
    margin-left: 8px !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    z-index: 101 !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .burger span {
    display: block;
    height: 4px;
    width: 28px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
  }
  header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 8px 0 8px !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    position: relative !important;
    flex-direction: row !important;
    gap: 8px !important;
  }
  .logo {
    margin-right: 0 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
  }
  .logo img {
    width: 36px !important;
    height: 36px !important;
    margin-top: 0 !important;
  }
  .btn-pink {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 0 0vw !important; 
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
    border-radius: 14px !important;
    max-width: auto !important;
    min-width: 70px !important;
    text-align: center !important;
    height: auto !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    position: static !important;
    flex: 0 0 auto !important;
  }
  .burger {
    display: flex !important;
    order: 3;
    margin-left: 8px !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    z-index: 101 !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
  }
  nav {
    position: fixed;
    right: 0;
    left: auto;
    top: 0;
    width: 70vw;
    max-width: 320px;
    height: 100vh;
    background: #0F0F0F;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 100;
    box-shadow: 2px 0 24px #00000033;
    padding-top: 80px;
  }
  nav.open {
    transform: translateX(0);
  }
  nav ul {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
  }
  nav li {
    margin: 0 0 12px 0 !important;
  }


  .main-form .btn-pink{
    width: 247px !important;
    padding: 12px 0 !important;
    font-size: 1.1rem !important;
  }
  .modal .btn-pink{
    width: 270px !important;
    padding: 12px 0 !important;
    font-size: 1.1rem !important;
  }
}


@media (min-width: 1025px) {
  .services-grid-red {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px 32px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    text-align: left !important;
  }
  .service-card-red h3 {
    font-size: 36px;
    text-align: left !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
    margin-top: 5px !important;
    margin-bottom: 10px !important;
  }
  .hero-title-ellipse-7 {
    display: none !important;
  }
  .marquee .hero-title-ellipse-4 {
    position: absolute !important;
    left: 70% !important;
    top: 10px !important;
  }
  .hero .hero-title-ellipse-4{
    display: none;
  }
}




@media (min-width: 1540px) {
    .hero-title-ellipse-7 {
        display: none !important;
    }
main{
    width: 100% !important;
    max-width: 4000px !important;
    height: auto !important;
}
.container {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
    width: 100%;
}

.hero-content{
    width: 100% !important;
    margin: 0 auto; 
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 24px !important;
}


  .hero-avatars img {
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
  }

    .marquee .hero-title-ellipse-4{
    position: absolute;
    left: 90% !important;
    top: 10px !important;
    }
    .marquee .hero-title-ellipse-7{
        display: none !important;
    }

    .hero-title-ellipse-2{
        position: absolute;
    width: 140vw;           /* увеличьте ширину */
    height: 400px;          /* увеличьте высоту */
    left: 50%;
    top: 80%;
    transform: translate(-50%, 0);
    background: rgba(2,2,2,0.95); /* чуть прозрачнее */
    filter: blur(32px);     /* увеличьте блюр */
    z-index: 9;
    pointer-events: none;
  /* ... */
    }

    .hero-title-ellipse-bottom {
    position: absolute;
    width: 200vw;
    height: 400px;
    left: 50%;
    bottom: -48%;
    transform: translate(-50%, 0);
    background: #020202;
    filter: blur(64px);
    z-index: 8;
    pointer-events: none;
}

    

    .hero-avatars .hero-title-ellipse-4 {
        left: 90% !important; 
    }
    .hero-title-ellipse-10{
        position: absolute;
    width: 735px;
    height: 197px;
    left: 90%;
    top: 90%;
    transform: rotate(110deg);
    background: rgba(2,2,2,1);
    border-radius: 50% / 45%;
    filter: blur(24px);
    z-index: 9;
    pointer-events: none;
    }

    .modal {
        width: 100% !important;
        position: fixed !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 900px !important;
        margin: 15% auto !important;
        padding: 20px !important;
        border-radius: 10px !important;
    }
    .modal-content .btn-pink{
        justify-content: center !important;
        justify-self: center !important;
        width: 533px !important;
        padding: 12px 16px !important;
        border-radius: 12px !important;
    }
    .modal-content input,
    .modal-content textarea {
        width: 500px !important;
    }

    .footer {
        width: 100% !important;
        height: auto !important;
        padding: 40px 0 !important;
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #020202 !important;

    }

    .footer-img{
        display: none !important;
    }
}
