:root {
  --bg: #23233a;
  --bg-soft: #2b2b46;
  --card: #2e2e4a;
  --card-hover: #343452;
  --line: rgba(255, 255, 255, .08);
  --text: #eef0f8;
  --muted: #a7a9c0;
  --gold: #f5b301;
  --gold-dark: #d9a000;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(90, 88, 150, .45), transparent 60%),
    radial-gradient(900px 540px at -10% 22%, rgba(70, 68, 125, .35), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }

h1, h2, h3, .logo-name { font-family: 'Poppins', 'Inter', sans-serif; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 35, 58, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-badge {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: #1c1c2e;
  display: grid; place-items: center;
  font: 700 15px 'Poppins', sans-serif;
}
.logo-name { font-weight: 700; font-size: 17px; }
.logo-name .logo-surname { font-weight: 400; }
.main-nav { display: flex; gap: 30px; }
.nav-link { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; position: relative; }
.nav-link:hover { color: var(--text); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width .25s; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--text); }
.nav-link.active::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 10px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: border-color .2s, background .2s;
}
.social-icon svg { width: 16px; height: 16px; fill: var(--muted); transition: fill .2s; }
.social-icon:hover { border-color: var(--gold); background: rgba(245, 179, 1, .08); }
.social-icon:hover svg { fill: var(--gold); }
.social-icon[href*="wa.me"] svg { fill: #25d366; }
.social-icon[href*="wa.me"]:hover { border-color: #25d366; background: rgba(37, 211, 102, .12); }
.social-icon[href*="wa.me"]:hover svg { fill: #25d366; }
.social-icon[href^="mailto"] svg { fill: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .95fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero-hi { font: 400 30px 'Poppins', sans-serif; color: var(--muted); }
.hero-name {
  font-size: clamp(42px, 5.6vw, 64px);
  font-weight: 800; line-height: 1.08;
  position: relative; display: inline-block;
  margin-bottom: 22px;
}
.hero-name::after {
  content: ''; display: block;
  width: 62%; height: 6px; border-radius: 3px;
  background: var(--gold); margin-top: 14px;
}
.hero-text { color: var(--muted); font-size: 15.5px; max-width: 40ch; }
.hero-buttons { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 26px;
  border-radius: 999px; font: 600 14px 'Poppins', sans-serif;
  transition: transform .2s, background .2s, box-shadow .2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-gold { background: var(--gold); color: #1c1c2e; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245, 179, 1, .28); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-photo {
  display: flex; justify-content: center;
  position: relative; z-index: 1;
  margin-bottom: -90px;
}
.photo-wrap { position: relative; display: flex; align-items: flex-end; }
.photo-circle {
  position: absolute; left: 50%; bottom: 6px;
  width: 340px; height: 340px; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 38%, #55557f 0%, #3d3d5e 68%, transparent 100%);
}
.photo-wrap img { position: relative; width: 320px; height: auto; }

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
}
.hero-card-label { font: 600 12px 'Poppins', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-card-text { font: 600 19px/1.45 'Poppins', sans-serif; margin: 10px 0 14px; }
.hero-socials { display: flex; gap: 10px; margin-top: 18px; }

.more-link { color: var(--gold); font: 600 13px 'Poppins', sans-serif; display: inline-flex; align-items: center; gap: 7px; }
.more-link .arrow { transition: transform .2s; }
.more-link:hover .arrow { transform: translateX(5px); }

/* ---------- Clients strip ---------- */
.clients { padding: 10px 0 20px; position: relative; z-index: 2; }
.clients-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
}
.clients-label { color: var(--muted); font-size: 13.5px; max-width: 200px; }
.clients-logos {
  display: flex; gap: 16px; flex: 1; align-items: center;
  flex-wrap: nowrap; overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  cursor: grab;
}
.clients-logos::-webkit-scrollbar { display: none; }
.clients-logos.dragging { cursor: grabbing; scroll-behavior: auto; }
.client-logo {
  background: rgba(12, 12, 26, .5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.client-logo img { height: 30px; width: auto; display: block; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-title { font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.section-text { color: var(--muted); font-size: 15px; max-width: 42ch; }
.section-text-wide { max-width: 62ch; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; margin-top: 36px; }
.stat-num { display: block; font: 800 30px 'Poppins', sans-serif; color: var(--gold); }
.stat-label { color: var(--muted); font-size: 13px; }

.services-list { display: flex; flex-direction: column; }
.service-row {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line);
  transition: padding .2s;
}
.service-row:hover { padding-left: 14px; }
.service-row:first-child { border-top: 1px solid var(--line); }
.service-thumb { width: 74px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.service-info h3 { font-size: 17.5px; font-weight: 700; }
.service-info p { color: var(--muted); font-size: 13px; }
.service-arrow { margin-left: auto; font-size: 22px; color: var(--muted); transition: color .2s, transform .2s; }
.service-row:hover .service-arrow { color: var(--gold); transform: translateX(6px); }

/* ---------- Cards ---------- */
.cards-section { padding-top: 10px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .25s, background .25s;
}
.service-card:hover { transform: translateY(-6px); background: var(--card-hover); }
.card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(245, 179, 1, .12);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; fill: var(--gold); }
.service-card h3 { font-size: 18px; font-weight: 700; }
.service-card p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- References ---------- */
.refs { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.ref-item {
  display: flex; align-items: flex-start; gap: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px;
  transition: background .2s, border-color .2s;
}
.ref-item:hover { background: var(--card-hover); border-color: rgba(245, 179, 1, .35); }
.ref-num { font: 800 34px 'Poppins', sans-serif; color: rgba(245, 179, 1, .55); min-width: 52px; }
.ref-body { flex: 1; }
.ref-body h3 { font-size: 19px; font-weight: 700; }
.ref-url { display: inline-block; color: var(--gold); font-size: 13px; font-weight: 600; margin: 3px 0 10px; }
a.ref-url:hover { text-decoration: underline; }
.ref-body p:last-child { color: var(--muted); font-size: 14.5px; }
.ref-thumbs {
  position: relative;
  width: 235px;
  align-self: stretch;
  min-height: 130px;
  flex-shrink: 0;
}
.ref-thumbs > * { position: absolute; inset: 0; z-index: 1; }
.ref-thumbs img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: top;
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  transition: transform .25s, border-color .25s;
}
.ref-thumbs a img { cursor: zoom-in; }
.ref-thumbs img.ref-cover { object-position: center; }
.ref-thumbs > :nth-child(1) { z-index: 3; }
.ref-thumbs > :nth-child(2) { z-index: 2; transform: translate(14px, -10px) rotate(3deg); }
.ref-thumbs > :nth-child(3) { z-index: 1; transform: translate(26px, -18px) rotate(6deg); }
.ref-thumbs > :nth-child(n+2) img { filter: brightness(.7); }
.ref-thumbs a:hover img { transform: scale(1.02); border-color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 15, 28, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1200px, 92vw); max-height: 86vh;
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
  cursor: default;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
  color: var(--text); font-size: 20px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: rgba(245,179,1,.2); border-color: var(--gold); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-close { top: 22px; right: 22px; transform: none; position: absolute; }
.lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font: 600 13px 'Poppins', sans-serif;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- Service modal ---------- */
.svc-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 15, 28, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.svc-modal.open { opacity: 1; pointer-events: auto; }
.svc-card {
  position: relative;
  width: min(560px, 100%); max-height: 86vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 34px 34px 28px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.svc-head { display: flex; align-items: center; gap: 16px; margin: 0 40px 16px 0; }
.svc-head .svc-thumb { width: 84px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.svc-card h3 { font-size: 22px; margin: 0; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.svc-nav { display: flex; gap: 10px; }
.svc-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
  color: var(--text); font-size: 19px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.svc-arrow:hover { background: rgba(245,179,1,.2); border-color: var(--gold); }
.svc-card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 16px; }
.svc-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.svc-card li { position: relative; padding: 7px 0 7px 26px; font-size: 14.5px; color: var(--text); }
.svc-card li::before { content: ''; position: absolute; left: 0; top: 14px; width: 12px; height: 2px; background: var(--gold); border-radius: 2px; }
.svc-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.svc-close:hover { background: rgba(245,179,1,.2); border-color: var(--gold); }
.svc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #14141f; font: 700 14px 'Poppins', sans-serif;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.svc-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245,179,1,.3); }
@media (max-width: 720px) { .svc-card { padding: 26px 22px 22px; } }
.ref-tag {
  display: inline-block;
  font: 600 11px 'Poppins', sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(245, 179, 1, .35);
  background: rgba(245, 179, 1, .08);
  padding: 5px 13px; border-radius: 999px;
  margin-bottom: 10px;
  white-space: nowrap;
}

/* ---------- More sites ---------- */
.more-sites {
  margin-top: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.more-sites-toggle {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 30px;
  cursor: pointer; list-style: none;
  transition: background .2s;
  user-select: none;
}
.more-sites-toggle::-webkit-details-marker { display: none; }
.more-sites-toggle:hover { background: var(--card-hover); }
.more-sites-label { font: 700 18px 'Poppins', sans-serif; }
.more-sites-count {
  font: 600 12px 'Poppins', sans-serif;
  color: var(--gold);
  border: 1px solid rgba(245, 179, 1, .35);
  background: rgba(245, 179, 1, .08);
  padding: 4px 11px; border-radius: 999px;
}
.more-sites-chevron { margin-left: auto; display: flex; transition: transform .25s; }
.more-sites-chevron svg { width: 22px; height: 22px; fill: var(--muted); }
.more-sites[open] .more-sites-chevron { transform: rotate(180deg); }
.sites-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 4px 30px 30px;
}
.site-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.site-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 179, 1, .35);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.site-card .shot { display: block; overflow: hidden; }
.site-card .shot img {
  width: 100%; aspect-ratio: 16 / 10; display: block;
  object-fit: cover; object-position: top;
  transition: transform .3s;
  cursor: zoom-in;
}
.site-card .shot:hover img { transform: scale(1.03); }
.site-card-body { padding: 15px 18px 18px; }
.site-name { display: inline-block; font: 700 15px 'Poppins', sans-serif; color: var(--text); }
.site-name:hover { color: var(--gold); }
.site-desc { color: var(--muted); font-size: 13px; margin-top: 5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 15px; font-size: 15.5px; }
.contact-list a:hover { color: var(--gold); }
.contact-ic {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-ic svg { width: 20px; height: 20px; fill: var(--gold); }

.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { font: 600 13px 'Poppins', sans-serif; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.contact-form input, .contact-form textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font: 400 15px 'Inter', sans-serif;
  resize: vertical;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form .btn { align-self: flex-start; }
.form-note { color: var(--muted); font-size: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { border-radius: 12px; padding: 13px 16px; font-size: 14px; }
.form-ok { background: rgba(52, 199, 89, .14); border: 1px solid rgba(52, 199, 89, .4); color: #7ee2a0; }
.form-err { background: rgba(255, 69, 58, .12); border: 1px solid rgba(255, 69, 58, .4); color: #ff9d97; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.footer-top { color: var(--gold); font-weight: 600; }
.footer-top:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-left { grid-column: 1 / -1; }
  .services-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .sites-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .main-nav.open { max-height: 300px; }
  .nav-link { padding: 15px 5%; border-top: 1px solid var(--line); display: block; }
  .nav-toggle { display: block; }
  .header-right .social-icon { display: none; }
  .hero { padding: 46px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-left { order: 1; }
  .hero-right { order: 2; }
  .hero-photo { order: 3; margin-bottom: -80px; }
  .photo-circle { width: 280px; height: 280px; }
  .photo-wrap img { width: 260px; }
  .clients-strip { flex-direction: column; align-items: stretch; }
  .clients-logos { width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .sites-grid { grid-template-columns: 1fr; }
  .more-sites-toggle { padding: 20px 22px; }
  .sites-grid { padding: 2px 22px 22px; }
  .ref-item { flex-direction: column; gap: 12px; padding: 26px; }
  .ref-thumbs { width: 100%; height: 190px; min-height: 0; margin: 18px 0 14px; }
  .ref-thumbs:has(> :nth-child(2)) { margin: 40px 0 16px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-btn { width: 40px; height: 40px; }
  .stats { gap: 20px 14px; }
  .section { padding: 52px 0; }
}
