:root {
  --navy: #0a3d62;
  --navy-dark: #072c47;
  --gold: #f5b042;
  --ink: #1b2a38;
  --muted: #6b7886;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e4e9f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { display: block; width: 100%; object-fit: cover; }

h1, h2, h3 { line-height: 1.2; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 42px; height: 42px; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--navy); line-height: 1.1; }
.brand-name small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--gold); letter-spacing: 0.4px; }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--gold); }

.cta-phone { display: flex; align-items: center; gap: 14px; }
.phone { text-decoration: none; font-weight: 700; color: var(--navy); white-space: nowrap; }

.btn {
  display: inline-block; background: var(--gold); color: #1c1a12;
  padding: 11px 20px; border-radius: 10px; text-decoration: none;
  font-weight: 700; border: none; cursor: pointer; font-size: 0.95rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,176,66,0.4); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 70px 0; }
.hero-text h1 { font-size: 2.7rem; margin-bottom: 18px; }
.hero-text h1 span { color: var(--gold); }
.hero-text p { color: #d5e2ef; font-size: 1.1rem; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 30px; font-size: 0.9rem; color: #cfe0f0; }
.hero-img img { border-radius: 18px; box-shadow: 0 25px 60px rgba(0,0,0,0.45); aspect-ratio: 4/3; }

/* ---------- Stats ---------- */
.stats { background: var(--gold); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; text-align: center; }
.stat strong { display: block; font-size: 1.9rem; color: var(--navy-dark); }
.stat span { font-size: 0.95rem; color: #4a3b12; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section.dark { background: var(--navy); color: #fff; }
.section.dark .section-sub { color: #b9cede; }
.section-title { font-size: 1.9rem; color: var(--navy); margin-bottom: 8px; text-align: center; }
.dark .section-title { color: #fff; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--card); border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(10,61,98,0.08); border: 1px solid var(--line);
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-5px); }
.card img { height: 170px; }
.card h3 { padding: 16px 18px 4px; color: var(--navy); }
.card p { padding: 0 18px 20px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.office { background: rgba(255,255,255,0.06); border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.office img { height: 140px; }
.office h3 { padding: 14px 16px 4px; font-size: 1.05rem; color: #fff; }
.office p { padding: 0 16px 12px; color: #b9cede; font-size: 0.9rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img img { border-radius: 16px; box-shadow: 0 20px 50px rgba(10,61,98,0.18); aspect-ratio: 4/3; }
.about-text .section-title { text-align: left; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text ul { list-style: none; margin-bottom: 24px; }
.about-text li { padding: 6px 0; color: var(--ink); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-wrap { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info .section-title { text-align: left; }
.contact-info > p { color: var(--muted); margin-bottom: 22px; }
.contact-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-line span { color: var(--muted); font-weight: 600; }
.contact-line a { color: var(--navy); font-weight: 600; text-decoration: none; }
.map-btn { margin-top: 24px; }

.contact-form {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 6px 24px rgba(10,61,98,0.08);
}
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; width: 100%; background: var(--bg);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--gold); outline-offset: -1px; background: #fff;
}
.form-msg { text-align: center; font-weight: 600; min-height: 1.2em; color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #b9cede; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; padding: 50px 0 30px; }
.brand-footer { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; }
.footer-col h4 { color: #fff; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: #b9cede; text-decoration: none; padding: 4px 0; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; font-size: 0.82rem; color: #8fa6bc; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .offices { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-text h1 { font-size: 2.1rem; }
}
@media (max-width: 560px) {
  .cards, .offices { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.8rem; }
}
