:root {
    --navy: #1B2A4A;
    --navy-deep: #131F38;
    --paper: #F2ECE0;
    --paper-warm: #EAE2D2;
    --brass: #9C7A42;
    --brass-light: #C7A872;
    --ink: #201E1A;
    --ink-soft: #4A4640;
    --line: rgba(28, 26, 22, 0.14);
    --line-on-navy: rgba(242, 236, 224, 0.18);
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
  }

  h1, h2, h3, .display {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

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

  /* === Skip link / focus === */
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
  }

  /* === Header === */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 32px;
    max-width: 1180px;
    margin: 0 auto;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .brand-text {
    font-family: 'Fraunces', serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.15;
  }
  .brand-text span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    margin-top: 2px;
  }

  nav {
    flex: 1 1 auto;
    min-width: 0;
  }
  nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 1.9vw, 28px);
    list-style: none;
    flex-wrap: nowrap;
  }
  nav a {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s;
    white-space: nowrap;
  }
  nav a:hover { color: var(--navy); }

  .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 0 0 auto;
  }
  .nav-phone {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .nav-cta {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: var(--brass-light);
    color: var(--navy-deep);
    padding: 11px 18px;
    border-radius: 2px;
    transition: background 0.2s;
    white-space: nowrap;
  }
  .nav-cta:hover { background: #DDBE89; }

  .nav-toggle { display: none; }

  /* === Hero === */
  .hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    color: var(--paper);
    overflow: hidden;
    padding: 70px 0;
    background: var(--navy-deep) url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?q=80&w=1800&auto=format&fit=crop') center 25% / cover no-repeat;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(19,31,56,0.94) 0%, rgba(19,31,56,0.88) 38%, rgba(19,31,56,0.55) 62%, rgba(19,31,56,0.25) 100%);
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    max-width: 600px;
  }

  .eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-light);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--brass-light);
  }

  .hero h1 {
    font-size: 48px;
    line-height: 1.12;
    margin-bottom: 22px;
    max-width: 560px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  }
  .hero h1 em {
    font-style: italic;
    color: var(--brass-light);
  }

  .hero-lede {
    font-size: 17.5px;
    color: rgba(242, 236, 224, 0.88);
    max-width: 480px;
    margin-bottom: 32px;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
  }

  .btn-primary {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    background: var(--brass-light);
    color: var(--navy-deep);
    padding: 15px 28px;
    border-radius: 2px;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
  }
  .btn-primary:hover { background: #DDBE89; transform: translateY(-1px); }

  .btn-ghost {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--paper);
    padding: 14px 24px;
    border: 1px solid rgba(242,236,224,0.45);
    border-radius: 2px;
    transition: border-color 0.2s, background 0.2s;
  }
  .btn-ghost:hover { border-color: var(--brass-light); background: rgba(242,236,224,0.06); }

  .hero-stats {
    position: relative;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
  }
  .hero-stat {
    display: flex;
    align-items: baseline;
    gap: 9px;
  }
  .hero-stat strong {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--brass-light);
  }
  .hero-stat span {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(242,236,224,0.75);
    max-width: 90px;
    line-height: 1.3;
  }

  /* === Trust strip === */
  .trust-strip {
    background: var(--navy-deep);
    border-top: 1px solid var(--line-on-navy);
    padding: 26px 0;
  }
  .trust-strip .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
  }
  .trust-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: rgba(242,236,224,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
  }
  .trust-item strong {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--brass-light);
  }

  /* === Attorney (team) section === */
  #avukat-profili { background: var(--paper-warm); border-top: 1px solid var(--line); }
  .team-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 52px;
  }
  .team-head .eyebrow { justify-content: center; color: var(--brass); }
  .team-head .eyebrow::before { display: none; }
  .team-head h2 {
    font-size: 34px;
    color: var(--navy);
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
  }
  .team-head .underline {
    width: 56px;
    height: 2px;
    background: var(--brass-light);
    margin: 16px auto 18px;
  }
  .team-head p {
    font-size: 16px;
    color: var(--ink-soft);
  }

  .attorney-card {
    max-width: 320px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
  }
  .attorney-card:hover { box-shadow: 0 16px 40px rgba(28,26,22,0.12); transform: translateY(-3px); }
  .attorney-photo {
    aspect-ratio: 4/4.3;
    background: var(--paper-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }
  .attorney-photo .portrait-placeholder { padding: 24px; }
  .attorney-body { padding: 24px 26px 28px; }
  .attorney-body h3 {
    font-size: 21px;
    color: var(--navy);
    margin-bottom: 3px;
  }
  .attorney-role {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brass);
    letter-spacing: 0.03em;
    margin-bottom: 12px;
  }
  .attorney-meta {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .attorney-meta span { display: flex; align-items: center; gap: 8px; }
  .attorney-meta svg { width: 15px; height: 15px; color: var(--brass); flex-shrink: 0; }
  .attorney-link {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s, color 0.2s;
  }
  .attorney-link:hover { gap: 10px; color: var(--brass); }

  /* === Section generic === */
  section { padding: 96px 0; }
  .section-head {
    max-width: 620px;
    margin-bottom: 56px;
  }
  .section-head .eyebrow { color: var(--brass); }
  .section-head .eyebrow::before { background: var(--brass); }
  .section-head .eyebrow { color: var(--navy); }
  .section-head .eyebrow::before { background: var(--navy); }
  .section-head h2 {
    font-size: 36px;
    color: var(--navy);
    line-height: 1.2;
  }
  .section-head p {
    margin-top: 16px;
    font-size: 17px;
    color: var(--ink-soft);
  }

  /* === About === */
  #hakkimizda { background: var(--paper); border-top: 1px solid var(--line); }
  .about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
  }
  .portrait-frame {
    border: 1px solid var(--line);
    background: var(--paper-warm);
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .portrait-placeholder {
    text-align: center;
    color: var(--ink-soft);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 32px;
  }
  .portrait-placeholder svg { width: 64px; height: 64px; margin-bottom: 14px; color: var(--brass); }
  .timeline {
    margin-top: 28px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .timeline-row {
    display: flex;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: 'Inter', sans-serif;
  }
  .timeline-row:last-child { border-bottom: none; }
  .timeline-year {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--brass);
    width: 110px;
    flex-shrink: 0;
    font-size: 15px;
  }
  .timeline-text { font-size: 14.5px; color: var(--ink-soft); }

  .about-body p { margin-bottom: 18px; font-size: 16.5px; color: var(--ink-soft); }
  .about-body p:first-child {
    font-size: 19px;
    color: var(--ink);
  }

  /* === Practice areas === */
  #alanlar { background: var(--navy); color: var(--paper); }
  #alanlar .section-head .eyebrow { color: var(--brass-light); }
  #alanlar .section-head .eyebrow::before { background: var(--brass-light); }
  #alanlar .section-head h2 { color: var(--paper); }
  #alanlar .section-head p { color: rgba(242,236,224,0.75); }

  .featured-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-on-navy);
    margin-bottom: 1px;
    border: 1px solid var(--line-on-navy);
  }
  .area-card {
    background: var(--navy-deep);
    padding: 32px 28px;
    transition: background 0.25s;
  }
  .area-card:hover { background: #1A2740; }
  .area-card .num {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--brass-light);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
  }
  .area-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
    color: var(--paper);
  }
  .area-card p {
    font-size: 14.5px;
    color: rgba(242,236,224,0.68);
  }

  .other-areas {
    margin-top: 56px;
  }
  .other-areas-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass-light);
    margin-bottom: 20px;
  }
  .pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .pill {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: rgba(242,236,224,0.85);
    border: 1px solid var(--line-on-navy);
    padding: 9px 16px;
    border-radius: 100px;
  }


  /* === Mediation === */
  .mediation-band {
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .mediation-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: start;
  }
  .mediation-points {
    display: grid;
    gap: 14px;
  }
  .mediation-point {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 20px 22px;
  }
  .mediation-point strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    line-height: 1.25;
    color: var(--navy);
    margin-bottom: 12px;
  }
  .mediation-point span {
    display: block;
    font-size: 15px;
    color: var(--ink-soft);
  }

  .map-card {
    margin-top: 28px;
    border: 1px solid var(--line-on-navy);
    overflow: hidden;
    background: rgba(242,236,224,0.04);
  }
  .map-card iframe {
    width: 100%;
    height: 240px;
    border: 0;
    display: block;
  }
  .map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line-on-navy);
  }
  .map-actions a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-deep);
    background: var(--brass-light);
    padding: 10px 14px;
    border-radius: 2px;
  }
  .map-actions a:hover { background: #DDBE89; }
  .floating-call {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brass-light);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(20,20,15,0.25);
  }
  .floating-call svg { width: 25px; height: 25px; }
  .cookie-notice {
    display: none;
    position: fixed;
    left: 24px;
    bottom: 24px;
    max-width: 360px;
    z-index: 999;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    padding: 14px 16px;
    box-shadow: 0 8px 26px rgba(20,20,15,0.18);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
  }
  .cookie-notice button {
    margin-top: 10px;
    background: var(--navy);
    color: var(--paper);
    border: 0;
    padding: 8px 12px;
    cursor: pointer;
  }
  .legal-links { display: flex; gap: 14px; }
  .legal-links a:hover { color: var(--brass-light); }

  /* === Process === */
  #surec { background: var(--paper); }
  .process-list {
    border-top: 1px solid var(--line);
  }
  .process-row {
    display: grid;
    grid-template-columns: 90px 1fr 1.6fr;
    gap: 32px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
  }
  .process-row .step-num {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    color: var(--brass);
    font-weight: 600;
  }
  .process-row h3 {
    font-size: 19px;
    color: var(--navy);
  }
  .process-row p {
    color: var(--ink-soft);
    font-size: 15.5px;
  }

  /* === Contact === */
  #iletisim { background: var(--navy-deep); color: var(--paper); border-top: 1px solid var(--line-on-navy); }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .contact-info-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .contact-info-item svg {
    width: 20px; height: 20px;
    color: var(--brass-light);
    flex-shrink: 0;
    margin-top: 3px;
  }
  .contact-info-item .label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass-light);
    margin-bottom: 4px;
  }
  .contact-info-item .value {
    font-size: 16px;
    color: var(--paper);
  }
  .contact-info-item .value a:hover { color: var(--brass-light); }

  .hours-table {
    margin-top: 32px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
  }
  .hours-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-on-navy);
    color: rgba(242,236,224,0.8);
  }

  form { display: flex; flex-direction: column; gap: 16px; }
  .field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(242,236,224,0.75);
  }
  .field input, .field select, .field textarea {
    width: 100%;
    background: rgba(242,236,224,0.06);
    border: 1px solid var(--line-on-navy);
    color: var(--paper);
    padding: 13px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    border-radius: 2px;
  }
  .field input::placeholder, .field textarea::placeholder { color: rgba(242,236,224,0.35); }
  .field textarea { resize: vertical; min-height: 100px; }
  .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  .submit-btn {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    background: var(--brass-light);
    color: var(--navy-deep);
    padding: 15px 28px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 6px;
  }
  .submit-btn:hover { background: #DDBE89; }
  .submit-btn:disabled { cursor: wait; opacity: 0.7; }
  .form-note {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: rgba(242,236,224,0.5);
    margin-top: 4px;
  }
  .form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .form-status {
    display: none;
    padding: 16px;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
  }
  .form-success {
    background: rgba(199, 168, 114, 0.12);
    border: 1px solid var(--brass-light);
    color: var(--brass-light);
  }
  .form-error {
    background: rgba(190, 72, 72, 0.12);
    border: 1px solid #E4A0A0;
    color: #F2C0C0;
  }

  /* === Footer === */
  footer {
    background: var(--navy-deep);
    border-top: 1px solid var(--line-on-navy);
    padding: 28px 0;
  }
  .footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: rgba(242,236,224,0.45);
  }

  @media (max-width: 1080px) {
    .nav-wrap { gap: 16px; padding-left: 24px; padding-right: 24px; }
    nav ul { gap: 14px; }
    nav a { font-size: 13px; }
    .nav-cta { display: none; }
  }

  /* === Responsive === */
  @media (max-width: 880px) {
    nav, .nav-cta { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 38px; }
    .seal-wrap { order: -1; max-width: 160px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; }
    .portrait-frame { max-width: 280px; }
    .featured-areas { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .mediation-grid { grid-template-columns: 1fr; gap: 32px; }
    .row-2 { grid-template-columns: 1fr; }
    .process-row { grid-template-columns: 1fr; gap: 8px; }
    .trust-strip .container { flex-direction: column; gap: 14px; }
  }


/* === Stability fixes: header anchors, area cards and contact layout === */
html {
  scroll-padding-top: 92px;
}

body#top {
  scroll-margin-top: 0;
}

section[id], div[id] {
  scroll-margin-top: 92px;
}

.brand {
  cursor: pointer;
}

.featured-areas {
  align-items: stretch;
}

.area-card {
  display: flex;
  flex-direction: column;
  min-height: 228px;
}

.area-card p {
  margin-top: auto;
}

.contact-grid {
  align-items: start;
}

.contact-info-item,
.contact-info-item .value,
.contact-info-item .value a,
.hours-row,
form,
.field,
.field input,
.field select,
.field textarea {
  min-width: 0;
}

.contact-info-item .value,
.contact-info-item .value a {
  overflow-wrap: anywhere;
  word-break: normal;
}

.hours-row {
  gap: 18px;
}

.field select {
  line-height: 1.4;
}

@media (max-width: 1160px) {
  .nav-wrap {
    gap: 14px;
    padding-left: 22px;
    padding-right: 22px;
  }

  nav ul {
    gap: 12px;
  }

  nav a,
  .nav-phone {
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  nav {
    display: none;
  }

  .nav-right {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 78px;
  }

  section[id], div[id] {
    scroll-margin-top: 78px;
  }

  .nav-wrap {
    padding: 14px 18px;
  }

  .brand-text {
    font-size: 16px;
  }

  .brand-text span {
    font-size: 9.5px;
  }

  .nav-phone {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 69px);
    padding: 54px 0 46px;
    text-align: center;
    align-items: center;
    background-position: center center;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(19,31,56,0.96) 0%, rgba(19,31,56,0.90) 52%, rgba(19,31,56,0.72) 100%);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero .eyebrow {
    justify-content: center;
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .hero .eyebrow::before {
    display: none;
  }

  .hero h1 {
    max-width: 340px;
    margin: 0 auto 18px;
    font-size: clamp(32px, 9.2vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .hero-lede {
    max-width: 340px;
    margin: 0 auto 26px;
    font-size: 15.5px;
    line-height: 1.55;
  }

  .hero-actions {
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    max-width: 292px;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 12px;
  }

  .hero-stat {
    width: calc(33.333% - 8px);
    min-width: 92px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  .hero-stat strong {
    font-size: 21px;
  }

  .hero-stat span {
    max-width: 96px;
    font-size: 11.5px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-info-item {
    gap: 12px;
  }

  .cookie-notice {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .floating-call {
    right: 18px;
    bottom: 18px;
  }
}

/* === Mobile navigation framework === */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  color: var(--navy);
  flex: 0 0 auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop { display: none; }

@media (max-width: 1024px) {
  body.nav-open { overflow: hidden; }
  .nav-wrap { position: relative; }
  .nav-toggle {
  display: inline-flex;
  margin-left: auto;
  order: 3;
}

.nav-right {
  display: none;
}

  #primary-nav {
    position: fixed;
    top: 77px;
    left: 0;
    right: 0;
    z-index: 1001;
    display: block;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(19, 31, 56, 0.16);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  #primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  #primary-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 24px 14px;
  }

  #primary-nav li { border-bottom: 1px solid var(--line); }
  #primary-nav li:last-child { border-bottom: 0; }

  #primary-nav a {
    display: block;
    min-height: 44px;
    padding: 13px 0;
    font-size: 15px;
    color: var(--navy);
  }

  .nav-backdrop {
    position: fixed;
    inset: 77px 0 0;
    z-index: 1000;
    display: block;
    background: rgba(19, 31, 56, 0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-backdrop[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 560px) {
  #primary-nav { top: 69px; }
  .nav-backdrop { inset: 69px 0 0; }
  .nav-toggle { width: 42px; height: 42px; }
}



@media (max-width: 380px) {
  .hero {
    padding-top: 44px;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-lede {
    font-size: 14.5px;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-stat strong {
    font-size: 19px;
  }

  .hero-stat span {
    font-size: 10.8px;
  }
}
