:root{
  --bg:#0b0b0d;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.04);
  --text:#f2f2f4;
  --muted:#b6b6c2;
  --line: rgba(255,255,255,0.10);
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
  --r: 18px;

  /* Section backgrounds */
  --bg-about: url("../img/bg-about.jpg");
  --bg-works: url("../img/bg-works.jpg");
  --bg-reviews: url("../img/bg-reviews.jpg");
  --bg-contacts: url("../img/bg-contacts.jpg");
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,11,13,0.78);
  border-bottom: 1px solid var(--line);
}

.headerRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.brandDot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(167,167,255,0.9);
  box-shadow: 0 0 18px rgba(167,167,255,0.55);
}

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
  color: var(--muted);
  font-size: 14px;
}

.nav a{
  padding: 8px 10px;
  border-radius: 12px;
}

.nav a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.headerActions{
  display:flex;
  gap: 10px;
  align-items:center;
}

.langBtn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.langBtn:hover{ background: rgba(255,255,255,0.10); }

.burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
}

.mobileNav{
  display:none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  margin: 0 16px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(18,18,23,0.96);
}
.mobileNav a{
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--muted);
}
.mobileNav a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

/* Sections with background images */
.section{
  padding: 44px 0;
}

.section.has-bg{
  position: relative;
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.has-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.90);
}

.section.has-bg .container{
  position: relative;
  z-index: 1;
}

/* Assign backgrounds by data-bg attr */
.section[data-bg="about"]{ background-image: var(--bg-about); }
.section[data-bg="works"]{ background-image: var(--bg-works); }
.section[data-bg="reviews"]{ background-image: var(--bg-reviews); }
.section[data-bg="contacts"]{ background-image: var(--bg-contacts); }

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.sectionHead{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sectionHead.center{
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.h1{
  font-size: clamp(28px, 3vw, 42px);
  margin: 8px 0 8px;
  line-height: 1.1;
}
.h2{
  font-size: 22px;
  margin: 0;
}
.h3{
  font-size: 18px;
  margin: 8px 0 8px;
}
.kicker{
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}
.sub{
  color: var(--muted);
  margin: 0 0 10px;
}
.p{
  margin: 0 0 12px;
  color: var(--text);
}
.muted{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Hero */
.heroGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.heroMedia{
  min-height: 380px;
}
.heroMedia img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.heroText{
  padding: 20px;
}

.bullets{
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{ margin: 6px 0; }

.ctaRow{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor:pointer;
  transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: rgba(167,167,255,0.18);
  border-color: rgba(167,167,255,0.40);
}
.btn.primary:hover{
  background: rgba(167,167,255,0.24);
  border-color: rgba(167,167,255,0.58);
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.thumb{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--panel2);
}

.thumb img{
  width:100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.thumb:hover img{ transform: scale(1.03); }

/* Reviews */
.reviews{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reviewCard{
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align:center;
}

.avatar{
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
}

.reviewText{
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Contacts */
.contactsGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.contactTile{
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
}

.contactTile:hover{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.contactTitle{
  font-weight: 800;
  margin-bottom: 6px;
}
.contactMeta{
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.footer{
  padding: 18px 0 30px;
  background: rgba(11,11,13,0.92);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footerRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footerLinks{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}
.lightbox.open{ display:flex; }

.lightboxImg{
  max-width: min(1100px, 100%);
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}

.lightboxClose{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px){
  .heroGrid{ grid-template-columns: 1fr; }
  .heroMedia{ min-height: 320px; }

  .gallery{ grid-template-columns: 1fr; }
  .thumb img{ height: 260px; }

  .reviews{ grid-template-columns: 1fr; }
  .contactsGrid{ grid-template-columns: 1fr; }

  .nav{ display:none; }
  .burger{ display:inline-flex; align-items:center; justify-content:center; }
}
.lightboxNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightboxNav.prev{ left: 16px; }
.lightboxNav.next{ right: 16px; }

.lightboxNav:hover{
  background: rgba(0,0,0,0.65);
}

@media (max-width: 768px){
  .lightboxNav{
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
}

.footerCredit{
  color: var(--muted);
  font-size: 13px;
}

.footerCredit a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footerCredit a:hover{
  opacity: 0.8;
}

