:root {
  --primary: #243F6B;
  --primary-dark: #1B3050;
  --primary-soft: #2F4E7E;
  --accent: #4A90E2;
  --accent-soft: #E8F0FB;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F7;
  --bg-mist: #EEF2F7;
  --line: #E5E7EB;
  --text: #333333;
  --text-soft: #555555;
  --text-muted: #6B7280;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08), 0 8px 16px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topline {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 9px 20px;
  color: rgba(255, 255, 255, 0.92);
  background: var(--primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--primary);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 9px 14px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  background: var(--bg-soft);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.1;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

.lead {
  max-width: 600px;
  color: var(--text-soft);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.button.primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-md);
}

.button.secondary {
  color: var(--primary);
  background: #fff;
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--primary-dark);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.portrait-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 8px;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 50% 40%, rgba(74, 144, 226, 0.12), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.portrait-wrap img {
  position: relative;
  width: clamp(240px, 28vw, 340px);
  height: clamp(240px, 28vw, 340px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.portrait-caption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.portrait-caption strong {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.portrait-caption span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.practice,
.profile,
.contact-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 7vw, 96px) 0;
}

.quick-services {
  background: var(--bg-soft);
  padding: clamp(64px, 7vw, 96px) max(20px, calc((100% - 1180px) / 2));
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 220px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 144, 226, 0.4);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.service-card p,
.practice-intro p,
.profile-text p,
.contact-band p {
  color: var(--text-soft);
}

.practice {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.practice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.practice-list li {
  position: relative;
  padding: 16px 18px 16px 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.practice-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 6px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.practice-list li:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.facts div {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.facts dt {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 6px 0 0;
  color: var(--primary);
  font-size: 17px;
  font-weight: 600;
}

.offices {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 7vw, 96px) 0;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.office-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.office-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 144, 226, 0.45);
}

.office-map {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}

.office-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.office-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}

.office-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 28px 30px;
}

.office-body h3 {
  margin: 0;
  font-size: 22px;
  color: var(--primary);
}

.office-body address {
  display: grid;
  gap: 4px;
  font-style: normal;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.office-body address strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.office-link {
  align-self: flex-start;
  padding-bottom: 2px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.office-link:hover {
  color: var(--accent);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  margin-bottom: 56px;
  padding: clamp(36px, 5vw, 56px);
  color: #fff;
  background: var(--primary);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.contact-band h2 {
  color: #fff;
}

.contact-band .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.contact-band p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-details {
  display: grid;
  gap: 10px;
  font-style: normal;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.contact-details strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-details span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.contact-details a {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
  width: max-content;
  transition: border-color 0.2s ease;
}

.contact-details a:hover {
  border-color: #fff;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer a {
  color: var(--primary);
  font-weight: 600;
}

.footer a:hover {
  color: var(--accent);
}

.akf-cc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.45);
  animation: akf-cc-fade 0.25s ease-out;
}

.akf-cc-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  color: var(--text);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px -12px rgba(15, 23, 42, 0.25);
  animation: akf-cc-slide 0.3s ease-out;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.akf-cc-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 26px 22px;
  max-height: 60vh;
  overflow-y: auto;
}

.akf-cc-title {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.akf-cc-text {
  margin: 0 0 16px;
  color: var(--text-soft);
}

.akf-cc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 16px;
}

.akf-cc-btn {
  flex: 1 1 200px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.akf-cc-btn:hover,
.akf-cc-btn:focus-visible {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  outline: none;
}

.akf-cc-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 18px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.akf-cc-cat:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.akf-cc-cat-name {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
}

.akf-cc-cat-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.akf-cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  align-self: center;
}

.akf-cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.akf-cc-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #c4c9d1;
  border-radius: 13px;
  transition: background 0.18s ease;
}

.akf-cc-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.akf-cc-toggle input:checked + .akf-cc-slider {
  background: var(--primary);
}

.akf-cc-toggle input:checked + .akf-cc-slider::before {
  transform: translateX(18px);
}

.akf-cc-toggle input:disabled + .akf-cc-slider {
  background: var(--primary);
  opacity: 0.55;
  cursor: not-allowed;
}

@keyframes akf-cc-slide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes akf-cc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .akf-cc-inner {
    padding: 20px 18px;
    max-height: 70vh;
  }

  .akf-cc-buttons {
    flex-direction: column;
  }

  .akf-cc-btn {
    flex: 0 0 auto;
  }
}

@media print {
  .akf-cc-backdrop,
  .akf-cc-modal {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .topline {
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .nav,
  .hero,
  .practice,
  .profile,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    text-align: left;
  }

  .portrait-wrap {
    margin: 0 auto;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topline {
    justify-content: flex-start;
    padding-inline: 16px;
    font-size: 12px;
  }

  .nav,
  .hero,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .quick-services > *,
  .profile-text,
  .facts {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    padding: 14px 0;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .portrait-wrap img {
    width: clamp(220px, 60vw, 280px);
    height: clamp(220px, 60vw, 280px);
  }

  .quick-services,
  .practice,
  .profile,
  .offices {
    padding: 56px 0;
  }

  .service-grid,
  .practice-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .contact-band {
    padding: 28px;
    border-radius: 10px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
