*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Inter, sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  background:#0f0f10;
  color:#fff;
  line-height:1.6;
}

a{
  color:inherit;
  text-decoration:none;
}

/* HEADER */
header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  padding:20px 60px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(15,15,16,0.6);
  backdrop-filter:blur(12px);
  z-index:1000;
  transition:0.3s;
}

header.scrolled{
  background:rgba(15,15,16,0.92);
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}

.logo span{
  color:#ffcc00;
}

nav{
  display:flex;
  gap:25px;
  font-size:16px;
}

nav a:hover{
  color:#ffcc00;
}

.burger{
  display:none;
  font-size:26px;
  cursor:pointer;
}

/* HERO */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:120px 60px 60px;
  background:url("back.jpg") center/cover no-repeat;
  position:relative;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
}

.hero-text{
  position:relative;
  z-index:2;
  max-width:650px;
}

.hero-text h1{
  font-size:54px;
  line-height:1.1;
  margin-bottom:20px;
}

.hero-text h1 span{
  color:#ffcc00;
}

.hero-text p{
  opacity:0.85;
  margin-bottom:30px;
}

.hero-list{
  margin-top:15px;
  margin-bottom:25px;
}

.hero-list .item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:8px;
  font-size:16px;
  opacity:0.95;
}

.check-icon{
  width:18px;
  height:18px;
  flex-shrink:0;
  color:#ffcc00;
  margin-top:2px;
}
/* BUTTONS */
.btns{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.btn{
  padding:14px 18px;
  border-radius:10px;
  font-weight:600;
  border:none;
  cursor:pointer;
  font-size:16px;
  transition:0.3s;
}

.primary{
  background:#ffcc00;
  color:#000;
}

.primary:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 25px rgba(255,204,0,0.2);
}

.secondary{
  background:transparent;
  border:1px solid rgba(255,255,255,0.2);
  color:#fff;
}

.secondary:hover{
  border-color:#ffcc00;
  color:#ffcc00;
  transform:translateY(-3px);
}

/* SECTIONS */
section{
  padding:80px 60px;
}

.title{
  font-size:32px;
  margin-bottom:40px;
}

.small{
  font-size:13px;
  opacity:0.7;
}

/* ABOUT */
#about{
  padding:120px 60px 80px;
}

.about-wrapper{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:40px;
  align-items:center;
  margin-top:30px;
}

.about-photo img{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 20px 50px rgba(0,0,0,0.5);
  object-fit:cover;
  transition:0.3s;
}

.about-photo img:hover{
  transform:scale(1.03);
}

.about-text h3{
  font-size:26px;
  margin-bottom:15px;
}

.about-text p{
  opacity:0.8;
  margin-bottom:12px;
}

.about-text ul{
  margin-top:15px;
  list-style:none;
}

.about-text li{
  margin-bottom:8px;
  opacity:0.85;
}

/* CARDS */
.card{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  padding:22px;
  border-radius:14px;
  transition:0.3s;
  backdrop-filter:blur(10px);
}

.card:hover{
  transform:translateY(-8px);
  border-color:#ffcc00;
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
}

/* SERVICES */
.services{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

/* TIMELINE */
.timeline{
  position:relative;
  margin-top:40px;
  display:flex;
  flex-direction:column;
  gap:30px;
}

.step{
  display:flex;
  gap:20px;
  position:relative;
}

.step::before{
  content:"";
  position:absolute;
  left:18px;
  top:36px;
  bottom:-30px;
  width:2px;
  background:rgba(255,255,255,0.1);
}

.step:last-child::before{
  display:none;
}

.dot{
  width:36px;
  height:36px;
  min-width:36px;
  border-radius:50%;
  background:#ffcc00;
  color:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  z-index:2;
  box-shadow:0 0 0 6px rgba(255,204,0,0.12);
}

.content{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  padding:15px 18px;
  border-radius:12px;
  transition:0.3s;
  width:100%;
}

.step:hover .content{
  transform:translateX(6px);
  border-color:rgba(255,204,0,0.4);
}

/* PORTFOLIO */
.portfolio-grid{
  column-count:3;
  column-gap:20px;
}

.work{
  break-inside:avoid;
  margin-bottom:20px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.06);
  background:#161616;
  position:relative;
  transition:0.3s;
}

.work img{
  width:100%;
  display:block;
  height:auto;
  transition:0.4s;
}

.work::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  opacity:0;
  transition:0.3s;
}

.work:hover::before{
  opacity:1;
}

.work:hover img{
  transform:scale(1.05);
}

.work:hover{
  border-color:rgba(255,204,0,0.35);
  box-shadow:0 15px 40px rgba(0,0,0,0.5);
}

/* CONTACT */
.contact{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

.contact textarea{
  min-height:160px;       
  resize:vertical;
}

input, textarea{
  width:100%;
  font-size:16px;
  padding:12px;
  margin-bottom:10px;
  border-radius:8px;
  border:none;
  background:#1b1b1b;
  color:#fff;
}

#form-status{
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.3;
  min-height: 18px;   
  display: block;
  opacity: 0.9;
}

/* успех */
#form-status.success{
  color: #7CFF7C;
}

/* ошибка */
#form-status.error{
  color: #ff6b6b;
}

/* FOOTER */
footer{
  text-align:center;
  padding:40px;
  opacity:0.6;
}

@media(max-width:900px){

  header{
    padding:15px 20px;
  }

  .hero::before{
    background:rgba(0,0,0,0.35);
  }

  nav{
    display:none;
    position:absolute;
    top:70px;
    right:20px;
    flex-direction:column;
    background:#161616;
    padding:15px;
    border-radius:10px;
  }

  nav.active{
    display:flex;
  }

  .burger{
    display:block;
  }

  .hero{
    padding:110px 30px 60px;
    align-items:flex-start;
    background-position:80% center;
  }

  .hero-text h1{
    font-size:30px;
  }

  section{
    padding:100px 30px;
  }

  #about{
    padding:110px 30px 80px;
  }

  .services{
    grid-template-columns:1fr;
  }

  .portfolio-grid{
    column-count:2;
  }

  .contact{
    grid-template-columns:1fr;
  }

  /* ABOUT MOBILE FIX */
  .about-wrapper{
    grid-template-columns:1fr;
    text-align:left;
    gap:25px;
  }

  .about-photo{
    max-width:180px;
    margin:0;
  }

  .about-text h3{
    font-size:22px;
  }

  .about-text p,
  .about-text li{
    font-size:15px;
  }
}

@media(max-width:600px){

  section{
    padding:110px 20px;
  }

  .hero{
    padding:120px 20px 60px;
  }

  .portfolio-grid{
    column-count:1;
  }
}