*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:Inter,system-ui,sans-serif;
  background:#020617;
  color:#e5e7eb;
  line-height:1.6;
}

/* NAV */
.nav{
  position:fixed;top:0;left:0;right:0;
  background:rgba(2,6,23,.9);
  backdrop-filter:blur(10px);
  z-index:1000;
}
.nav-inner{
  max-width:1200px;
  margin:auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
  font-weight:800;
}
.logo img{
  height:40px;
  border-radius:12px;
}
.nav-links{
  display:flex;
  gap:24px;
}
.nav-links a{
  color:#e5e7eb;
  text-decoration:none;
  font-weight:600;
}
.burger{
  display:none;
  background:none;
  border:none;
  flex-direction:column;
  gap:6px;
}
.burger span{
  width:26px;height:3px;
  background:#fff;
}

/* HERO */
.hero{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:120px 20px 60px;
}
.hero h1{font-size:clamp(36px,6vw,64px)}
.hero p{max-width:700px;margin:20px 0}
.btn{
  padding:14px 32px;
  background:#2563eb;
  color:#fff;
  border-radius:999px;
  text-decoration:none;
}

/* SECTIONS */
.section{
  padding:80px 20px;
  text-align:center;
}
.section.dark{background:#020617}
.section-subtitle{opacity:.8;margin-bottom:40px}

/* SERVICES */
.grid{
  max-width:1100px;
  margin:40px auto 0;
  display:grid;
  gap:28px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.service-card {
  background: #0f172a;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .4s ease, box-shadow .4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.service-img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 20px;
  border-radius: 14px;
  transition: transform .4s ease;
}

.service-card:hover .service-img {
  transform: scale(1.08);
}

.icon{font-size:32px;margin-bottom:10px}

/* PRICE */
.price-table{
  margin:40px auto;
  width:100%;
  max-width:700px;
  border-collapse:collapse;
}
.price-table th,
.price-table td{
  border:1px solid #334155;
  padding:14px;
}
.price-table th{background:#1e293b}
.price-note{max-width:700px;margin:20px auto}

/* GALLERY */
.gallery{
  max-width:1100px;
  margin:40px auto;
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}
.gallery img{
  width:100%;
  border-radius:14px;
}

/* CONTACTS */
.contacts{
  max-width:700px;
  margin:40px auto;
  display:grid;
  gap:20px;
}

/* FOOTER */
footer{
  padding:30px;
  text-align:center;
  opacity:.6;
}

/* MOBILE */
@media(max-width:768px){
  .nav-links{
    position:absolute;
    top:64px;right:0;
    background:#020617;
    flex-direction:column;
    padding:20px;
    display:none;
  }
  .nav-links.open{display:flex}
  .burger{display:flex}
}
.section {
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 36px;
  margin-bottom: 40px;
}

.gallery {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform .4s ease, box-shadow .4s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.section {
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 36px;
  margin-bottom: 40px;
}

.gallery {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform .4s ease, box-shadow .4s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
/* ===== CARD ANIMATION (SAFE) ===== */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
