:root {
  --primary: #0a1f3d;
  --primary-light: #132d4a;
  --accent: #c8a84e;
  --accent-light: #dbbd6a;
  --accent-dark: #a8882e;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #0a1f3d;
  --text-dark: #1a1a2e;
  --text-light: #6b7280;
  --text-white: #f0f2f5;
  --border: #e0e4e8;
  --shadow: 0 2px 12px rgba(10, 31, 61, 0.08);
  --shadow-lg: 0 8px 32px rgba(10, 31, 61, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.navbar .logo span { color: var(--accent); }
.navbar .logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  padding: 4px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--primary);
}
.btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}
.btn-outline:hover {
  background: var(--text-white);
  color: var(--primary);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--bg);
}
.btn-accent-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-accent-outline:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-white);
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 36px;
  opacity: 0.88;
  line-height: 1.7;
}
.hero .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-white);
  padding: 64px 0 52px;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-white); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--primary);
}
.section-alt .section-title,
.section-dark .section-title { color: inherit; }
.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}
.section-dark .section-sub { color: rgba(255,255,255,0.7); }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}
.section-alt .service-card { background: var(--bg); }
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card .icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
  display: block;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* About strip (homepage) */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-strip h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.about-strip p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}
.about-strip .visual {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--text-white);
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.about-strip .visual .big-icon { font-size: 3.5rem; margin-bottom: 16px; }
.about-strip .visual p { color: rgba(255,255,255,0.85); margin-bottom: 0; font-size: 1rem; }

/* Credentials strip */
.credentials {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: center;
}
.credentials .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.credentials .item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  font-weight: 600;
}
.credentials .item .value {
  font-size: 1rem;
  font-weight: 600;
}

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 64px 0;
}
.cta-strip h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.cta-strip p {
  max-width: 520px;
  margin: 0 auto 28px;
  opacity: 0.85;
  font-size: 1.05rem;
}
.cta-strip .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent);
}
.footer p, .footer a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}
.footer a:hover { color: var(--accent); }
.footer .brand { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.footer .brand span { color: var(--accent); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer .legal-note {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 12px;
}
.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* Content pages (privacy, terms) */
.content-page { padding: 60px 0; }
.content-page h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 36px 0 12px;
}
.content-page h2:first-of-type { margin-top: 0; }
.content-page h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 24px 0 8px;
}
.content-page p, .content-page li {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}
.content-page ul { padding-left: 24px; margin-bottom: 16px; }
.content-page ul li { margin-bottom: 6px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}
.contact-details { list-style: none; }
.contact-details li {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.contact-details .cd-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-details .cd-label { font-weight: 600; color: var(--primary); display: block; font-size: 0.8rem; }
.contact-details a { color: var(--text-light); }
.contact-details a:hover { color: var(--accent-dark); }
.contact-form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.contact-form-card p { font-size: 0.9rem; color: var(--text-light); }
.contact-form-card .btn { margin-top: 8px; }

/* Services detail page */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 2px solid var(--accent);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links .btn { margin-left: 0; width: 100%; }

  .hero { padding: 72px 0 56px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 1.75rem; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }

  .services-grid,
  .services-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-strip {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-strip .visual { min-height: 200px; }

  .credentials { gap: 24px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .content-page { padding: 40px 0; }
}
