body { font-family: 'DM Sans', sans-serif; }

/* Preloader */
#preloader { transition: opacity 0.5s ease, visibility 0.5s ease; }
#preloader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero */
.hero-bg {
  background: linear-gradient(135deg, #111827 0%, #1e293b 50%, #0f1f3d 100%);
}
.hero-grid {
  background-image:
    linear-gradient(rgba(44,74,124,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,74,124,0.15) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
@keyframes riseIn { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.hero-title { font-size: clamp(2.6rem, 6vw, 5rem); }
.hero-slider { position: relative; min-height: 31rem; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 4rem 3rem 5rem; background-color: #111827; background-position: center; background-size: cover; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,24,39,0.96) 0%, rgba(17,24,39,0.82) 47%, rgba(17,24,39,0.3) 100%); }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide-content { position: relative; z-index: 1; max-width: 48rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: 0.75rem; color: #2563EB; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-kicker::before { content: ''; width: 2rem; height: 1px; background: #2563EB; }
.hero-slide-title { margin-top: 1.5rem; color: #fff; font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(2.4rem, 5.5vw, 5rem); line-height: 1.05; }
.hero-slide-title em { color: #2563EB; font-style: normal; }
.hero-slide-content p { max-width: 42rem; margin-top: 1.5rem; color: rgba(255,255,255,0.7); font-size: 1.05rem; line-height: 1.75; }
.hero-slide-gamut { background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80'); }
.hero-slide-entry { background-image: url('https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80'); }
.hero-slide-secretarial { background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=80'); }
.hero-slide-audit { background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1800&q=80'); }
.hero-slide-advisory { background-image: url('https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1800&q=80'); }
.hero-slide-operations { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80'); }
.hero-slider-controls { position: absolute; right: 2rem; bottom: 1.75rem; z-index: 3; display: flex; align-items: center; gap: 1rem; }
.hero-slider-arrow { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 1.1rem; transition: background 0.2s ease, border-color 0.2s ease; }
.hero-slider-arrow:hover, .hero-slider-arrow:focus-visible { background: #2563EB; border-color: #2563EB; color: #fff; }
.hero-slider-dots { display: flex; align-items: center; gap: 0.45rem; }
.hero-slider-dots button { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: rgba(255,255,255,0.45); transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease; }
.hero-slider-dots button.is-active { width: 1.4rem; border-radius: 0.5rem; background: #2563EB; }

/* Nav */
#navbar {
  background: rgba(17,24,39,0.97);
  backdrop-filter: blur(16px);
}
.nav-scrolled {
  background: rgba(17,24,39,0.97) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(59,130,246,0.2);
}

/* Section fade */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* Service card hover line */
.svc-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: #2563EB;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.svc-card:hover::before { transform: scaleX(1); }

/* Form inputs */
.field {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
  color: #111827;
}
.field:focus { border-color: #2C4A7C; background: #fff; }
.field::placeholder { color: #94a3b8; }
select.field { appearance: none; cursor: pointer; }

/* Alert */
.alert { display: none; }
.alert.show { display: block; }

/* Mobile menu */
#mob-menu { right: -100%; transition: right 0.4s cubic-bezier(0.25,0.46,0.45,0.94); }

/* Services navigation */
.nav-service-group { position: relative; }
.nav-service-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 220px;
  padding: 0.5rem;
  background: #1e293b;
  border: 1px solid rgba(59,130,246,0.2);
  box-shadow: 0 18px 35px rgba(15,23,42,0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-service-group:hover .nav-service-menu,
.nav-service-group:focus-within .nav-service-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-service-menu a {
  display: block;
  padding: 0.7rem 0.8rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.75rem;
  line-height: 1.35;
}
.nav-service-menu a:hover,
.nav-service-menu a:focus { color: #60A5FA; background: rgba(255,255,255,0.06); }
.mob-service-group summary { list-style: none; cursor: pointer; }
.mob-service-group summary::-webkit-details-marker { display: none; }
.mob-service-group[open] summary { color: #60A5FA; }
.mob-service-link { padding: 0.7rem 0 0.7rem 1rem; }

/* Team page */
.team-portrait {
  position: relative;
  display: flex;
  min-height: 20rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #1e3a8a, #2563EB 58%, #60A5FA);
  color: #fff;
}
.team-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.team-portrait span {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  opacity: 0.9;
}
.team-portrait-muted { background: linear-gradient(145deg, #64748b, #94a3b8); }
.team-role {
  margin-top: 0.6rem;
  color: #2563EB !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.team-email {
  display: inline-block;
  margin: -0.5rem 0 0.75rem;
  color: #2563EB;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team-email:hover { color: #1D4ED8; }

/* About page */
.about-hero {
  padding: 9rem 0 4rem;
  background: #2563EB;
}
.about-hero-shape {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  background: #1D4ED8;
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 0 100%);
}
.about-hero-copy { position: relative; z-index: 1; }
.about-hero-image {
  width: 100%;
  height: clamp(22rem, 42vw, 37rem);
  border-radius: 0.9rem;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 24px 60px rgba(17,24,39,0.2);
}
.about-section-image {
  width: 100%;
  height: clamp(16rem, 30vw, 25rem);
  border-radius: 0.9rem;
  object-fit: cover;
}
.about-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
  color: #64748b;
  line-height: 1.65;
}
.about-list li::before {
  content: '›';
  margin-right: 0.55rem;
  color: #2563EB;
  font-weight: 700;
}
.about-values { scroll-margin-top: 7rem; }
.about-mantra-image {
  width: min(100%, 56rem);
  max-height: 28rem;
  margin: 2rem auto 0;
  border-radius: 0.75rem;
  object-fit: cover;
}
@media (max-width: 767px) {
  .about-hero { padding: 7rem 0 3rem; }
  .about-hero-shape { width: 100%; opacity: 0.35; }
  .about-hero-image { height: 24rem; }
}

/* Service detail page */
.detail-hero { padding-top: 9rem; padding-bottom: 7rem; }
.detail-copy p { color: #64748b; line-height: 1.85; }
.detail-copy h2 { margin-top: 3.5rem; margin-bottom: 1.25rem; }
.detail-copy h3 { margin-top: 2rem; margin-bottom: 0.85rem; }
.detail-copy ul { display: grid; gap: 0.75rem; margin-top: 1rem; padding-left: 1.25rem; color: #64748b; line-height: 1.7; }
.detail-copy li::marker { color: #2563EB; }
.audit-list { display: grid; gap: 1rem; }
.audit-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: #64748b; line-height: 1.6; }
.audit-list li::before { content: '✓'; display: inline-flex; flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; align-items: center; justify-content: center; margin-top: 0.15rem; background: #2C4A7C; color: #fff; font-size: 0.7rem; font-weight: 700; }

/* Registration page visual */
.registration-visual { position: relative; min-height: 27rem; }
.registration-phone { position: absolute; right: 12%; top: 0; width: 15rem; height: 29rem; padding: 1rem; border: 0.75rem solid #fff; border-radius: 2rem; background: #f8fafc; box-shadow: 0 24px 50px rgba(15,23,42,0.28); transform: rotate(4deg); }
.registration-phone::before { content: ''; display: block; width: 4rem; height: 0.3rem; margin: -0.3rem auto 1.25rem; border-radius: 999px; background: #cbd5e1; }
.registration-score { padding: 1rem; background: #fff; box-shadow: 0 8px 20px rgba(15,23,42,0.08); }
.registration-score strong { display: block; color: #f15a29; font-size: 2.5rem; line-height: 1; }
.registration-float { position: absolute; left: 0; bottom: 1rem; width: 16rem; padding: 1.25rem; background: #fff; box-shadow: 0 18px 35px rgba(15,23,42,0.2); transform: rotate(-4deg); }
.registration-ring { width: 7rem; height: 7rem; margin: 1rem auto 0; border: 0.7rem solid #2C4A7C; border-right-color: #f15a29; border-bottom-color: #65cbd3; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #111827; }

/* Gallery */
.gallery-item { overflow: hidden; background: #fff; box-shadow: 0 8px 20px rgba(15,23,42,0.08); }
.gallery-item figcaption { padding: 0.9rem 1rem 1.1rem; color: #475569; font-size: 0.8rem; line-height: 1.4; }
.gallery-art { display: flex; min-height: 15rem; align-items: center; justify-content: center; padding: 2rem; color: #fff; text-align: center; font-family: Georgia, serif; font-size: 1.6rem; line-height: 1.1; }
.gallery-art span { position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(15,23,42,0.45); }
.gallery-art-stage { background: linear-gradient(135deg, #071b4d 0 35%, #1570c8 35% 70%, #2563EB 70%); }
.gallery-art-stage-alt { background: linear-gradient(155deg, #111827 0 45%, #2c4a7c 45% 75%, #2563EB 75%); }
.gallery-art-team { background: linear-gradient(135deg, #0f766e, #0ea5e9 55%, #2563EB); }
.gallery-art-office { background: linear-gradient(145deg, #e2e8f0, #64748b 48%, #2c4a7c); color: #fff; }
.gallery-art-field { background: linear-gradient(#78a94b 0 55%, #b77b3b 55%); }
.gallery-art-field-alt { background: linear-gradient(135deg, #1d4d2b, #8bbf54 55%, #b77b3b 55%); }
.gallery-art-marathon { background: linear-gradient(135deg, #f97316, #ef4444 48%, #2c4a7c 48%); }
.gallery-art-marathon-alt { background: linear-gradient(135deg, #0ea5e9, #22c55e 52%, #f59e0b 52%); }

@media (max-width: 767px) {
  .nav-service-group { width: 100%; }
  .nav-service-group > a { display: block; }
  .nav-service-menu { display: none; }
  .detail-hero { padding-top: 8rem; padding-bottom: 5rem; }
}

/* Responsive headings */
.section-title { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
.contact-title { font-size: clamp(1.7rem, 3vw, 2.5rem); }

@media (max-width: 767px) {
  .hero-slider { min-height: 34rem; }
  .hero-slide { padding: 3rem 1.25rem 5rem; }
  .hero-slide::before { background: linear-gradient(90deg, rgba(17,24,39,0.95), rgba(17,24,39,0.7)); }
  .hero-slide-content p { font-size: 0.95rem; }
  .hero-slider-controls { right: 1.25rem; bottom: 1.25rem; }
}
