/* hero section */
.heroBg{
    position: relative;
    min-height: 100vh;
    background: 
        radial-gradient(
            circle at 100% 20%,
            rgba(88, 28, 255, 0.25) 0%,
            rgba(25, 0, 70, 0.1) 40%,
            rgba(0, 0, 0, 1) 100%
        ),
        radial-gradient(
            circle at 0% 70%,
            rgba(88, 28, 255, 0.25) 0%,
            rgba(25, 0, 70, 0.1) 40%,
            rgba(0, 0, 0, 1) 100%
        ),
                radial-gradient(
            circle at 100% 100%,
            rgba(88, 28, 255, 0.25) 0%,
            rgba(25, 0, 70, 0.1) 40%,
            rgba(0, 0, 0, 1) 100%
        ),
        #0A0A10;
}
.decor-wrapper{
    position: absolute;
    top:0;
    left:0;
    width: 100vw;
    height: 100vh;
}
.decor {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 0;
}
.hero{
    min-height: 100vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-bottom: 80px;
}
.hero > h1 {
    font-size: 80px;
    background: linear-gradient(90deg, #d000ff 0%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--shadow-neon-purple);
    margin:0 0 20px 0;
}
.hero > h2{
    font-size: 20px;
    font-weight: 200;
    line-height: 36px;
}

.ctaHero{
    font-family: 'Inter';
    margin-top: 28px;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    gap: 40px;
}
@media screen and (max-width:1024px) {
    .hero > h1{
        margin: 100px 0 20px 0;
    }
}
@media screen and (max-width:360px) {
    .hero > h1{
        font-size: 40px;
    }
    .hero h1,.hero h2,.ctaHero{
        padding: 0 10px 0 10px;
    }
    .ctaHero{
        gap: 8px;
    }
}
/* Services */

.serviceList{
    display: flex;
    justify-content: center;
    gap: 16px;
}

.service {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 320px;
    text-align: center;
    border-radius: 12px;
    padding: 12px 24px;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 0;
    padding: 20px;
    line-height: 28px;
}

.service::before {
    content: "";
    position: absolute;
    inset: 0; 
    padding: 2px; 
    border-radius: inherit;
    background: var(--color-accent-gradient);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; 
    mask-composite: exclude;
    z-index: -1;
}

.serviceSvg {
    margin: auto;
    min-width: 90px;        
    height: auto;
}

.serviceSvg img {
    min-width: 90px;        
    height: auto;       
    display: block;     
}

@media (max-width: 1024px) {
    .serviceList {
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: row;
    }

    .service {
        width: calc(50% - 16px);
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .service {
        width: 100%;
    }
}
/* projects */

.projectList{
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    gap: 60px;
}
.project{
    display: flex;
    gap: 40px;
}
.project > img{
    max-width: 680px;
    margin-bottom: 40px;
}
.projectDescription{
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    line-height: 1.8;
}
.projectDescription > h3{
    font-size: 16px;
    font-weight: 100;
}
.projectClient{
    font-weight: 900;
}

.ctaMoreProjects {
  display: block;
  width: fit-content; 
  margin: 0 auto; 
  text-align: center;
}
@media screen and (max-width:1024px) {
    .project{
        flex-wrap: wrap;
        gap: 0px;
    }
    .project > img{
        max-width: 100%;
    }
    .projectDescription{
        gap: 20px
    }
    .project:nth-child(2){
        flex-direction: column-reverse;
    }
}
/* faq */

.faq-list {
  max-width: 800px;
  margin: 80px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--color-bg-secondary);
  border-radius: 12px;
  padding: 1px;
  position: relative;
  overflow: hidden;
  z-index: 100;
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--color-accent-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  z-index: 0; 
  pointer-events: none; 
}

.faq-question {
  width: 100%;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 18px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter';
  letter-spacing: 0.3px;
}

.faq-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
  margin-right: 50px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  margin: 0 20px 0 20px;
  padding-bottom: 0;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}


/* animations */

.hero > h1,
.hero > h2,
.ctaHero {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero.animate > h1,
.hero.animate > h2,
.hero.animate > .ctaHero {
    opacity: 1;
    transform: translateY(0);
}

.hero > h2 {
    transition-delay: 0.2s;
}

.ctaHero {
    transition-delay: 0.4s;
}

.service, .project {
    opacity: 0;
    transform: translateY(40px); /* смещение вниз */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service.animate, .project.animate {
    opacity: 1;
    transform: translateY(0);
}

.service:nth-child(1) { transition-delay: 0.1s; }
.service:nth-child(2) { transition-delay: 0.3s; }
.service:nth-child(3) { transition-delay: 0.5s; }

.project:nth-child(1) { transition-delay: 0.1s; }
.project:nth-child(2) { transition-delay: 0.3s; }

@media screen and (max-width:1024px){
    .service:nth-child(1) { transition-delay: 0.1s; }
    .service:nth-child(2) { transition-delay: 0.1s; }
    .service:nth-child(3) { transition-delay: 0.1s; }

    .project:nth-child(1) { transition-delay: 0.1s; }
    .project:nth-child(2) { transition-delay: 0.1s; }
}

/* добавим начальное состояние для кнопки */
.ctaMoreProjects {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* когда в зоне видимости */
.ctaMoreProjects.animate {
    opacity: 1;
    transform: translateY(0);
}

/*  */
@media screen and (max-width:360px){
    .TomFitLogo{
        max-width:200px;
    }
}