/* Preview redesign. Logo blue #002484, white, cool gray. No theme CSS. */

:root {
  --navy: #002484;
  --navy-deep: #001a5c;
  --ink: #142033;
  --muted: #4d5b70;
  --paper: #f4f6fa;
  --line: #d7dfec;
  --white: #fff;
  --header: #0c1016;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 40;
  transform: translateY(-140%);
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  font-weight: 700;
}

.skip:focus { transform: none; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.contact :focus-visible {
  outline-color: #fff;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; }

a { color: var(--navy); }

button, input, textarea { font: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  color: #fff;
  overflow: visible;
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  margin-left: auto;
}

.nav > a,
.drop > a {
  display: flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.drop {
  position: relative;
  display: flex;
  align-items: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-family: Raleway, "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 7px;
}

.site-header .wrap {
  width: min(1280px, calc(100% - 32px));
}

.nav a:hover { color: #fff; }

.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 320px;
  padding: 6px 0 8px;
  background: var(--header);
}

.drop:hover .sub,
.drop:focus-within .sub { display: block; }

.sub a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sub a:hover { background: rgba(255, 255, 255, 0.06); }

.tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.lang {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang.is-on { color: #fff; }

.espa {
  height: 28px;
  width: auto;
  background: #fff;
  border-radius: 3px;
  padding: 2px 4px;
}

.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 18, 70, 0.82) 0%, rgba(0, 26, 92, 0.45) 48%, rgba(0, 18, 70, 0.2) 100%),
    url("../upload/slide1.jpg") center 42% / cover no-repeat;
}

.hero .wrap { padding: 88px 0 72px; }

.eyebrow {
  margin: 0 0 14px;
  font-family: Raleway, "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-family: Raleway, "Open Sans", sans-serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.hero p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.section { padding: 72px 0; }

.section h2,
.block h3 {
  margin: 0 0 8px;
  font-family: Raleway, "Open Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
}

.section h2 { font-size: 28px; }

.rule {
  width: 36px;
  height: 2px;
  margin: 0 auto 22px;
  background: var(--navy);
}

.lead {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.card .photo {
  height: 210px;
  background-position: center 20%;
  background-size: cover;
}

.card p {
  margin: 0;
  padding: 18px 18px 22px;
  color: var(--muted);
}

.band { background: var(--white); }

#history,
#base,
#councils,
#activities,
#personnel,
#responsibility,
#large-damages-we-have-handled,
#structure,
#services,
#company,
#clients,
#news,
#contact {
  scroll-margin-top: 88px;
}

.chapters { margin-top: 56px; }

.chapter {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 8px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.chapter h3 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: left;
}

.chapter .copy { max-width: 68ch; }

.block h3 {
  text-align: left;
  font-size: 18px;
  letter-spacing: 0.1em;
}

.block .rule { margin: 0 0 16px; }

.copy p,
.copy li {
  color: var(--muted);
}

.copy p { margin: 0 0 14px; }

.copy ul {
  margin: 0;
  padding-left: 18px;
}

.copy li { margin: 0 0 8px; }

.copy strong { color: var(--ink); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0 0 22px;
}

.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  font-family: Raleway, "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.tabs button.is-on {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

#structure .tab.is-on,
#councils .tab.is-on { display: block; }

#structure .ps-person,
#councils .ps-person {
  display: block;
  margin: 0;
  padding: 18px 0 6px;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
}

#structure .tab > .ps-person:first-child,
#councils .tab > .ps-person:first-child {
  border-top: 0;
  padding-top: 0;
}

#structure .ps-person h4,
#councils .ps-person h4 {
  margin: 0 0 8px;
  font-family: Raleway, "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

#structure .ps-person h4 span,
#councils .ps-person h4 span {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

#structure .ps-person p,
#structure .ps-person li,
#councils .ps-person p,
#councils .ps-person li { max-width: 72ch; }

#structure ul.ps-people,
#councils ul.ps-people {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

#structure ul.ps-people:not(:has(strong)),
#councils ul.ps-people:not(:has(strong)) {
  columns: 2;
  column-gap: 40px;
}

#structure ul.ps-people li,
#councils ul.ps-people li {
  break-inside: avoid;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

#structure ul.ps-people li:has(strong),
#councils ul.ps-people li:has(strong) {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 4px 24px;
  align-items: baseline;
}

#structure .tab > ul.ps-people:first-child,
#councils .tab > ul.ps-people:first-child {
  margin-top: 0;
}

#structure .tab > ul.ps-people:first-child > li:first-child,
#councils .tab > ul.ps-people:first-child > li:first-child,
#structure .tab > ul.ps-people:not(:has(strong)):first-child > li,
#councils .tab > ul.ps-people:not(:has(strong)):first-child > li {
  border-top: 0;
  padding-top: 0;
}

.news {
  display: block;
}

.news article {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px 24px;
  align-items: baseline;
  padding: 18px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
}

.news time {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.news h3 { margin: 0; font-size: 18px; }

.news p { display: none; }

.story {
  width: min(760px, 100%);
  margin: 0 auto;
}

.story h1 {
  margin: 0 0 10px;
  font-family: Raleway, "Open Sans", sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: left;
}

.story time {
  display: block;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.story .body { color: var(--ink); }

.story .body img { margin: 16px 0; }

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tab { display: none; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.services article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.services img { width: 32px; height: 32px; }

.services h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: left;
}

.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.logos div,
.logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.logos img {
  max-height: 54px;
  width: auto;
  object-fit: contain;
}

.logo-name {
  color: var(--ink);
  font-family: Raleway, "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.clients {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}

.clients li { color: var(--muted); }

.news h3 a { color: var(--ink); text-decoration: none; }

.more {
  margin-top: auto;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
}

button.more {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.center { text-align: center; margin-top: 26px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contact {
  background: var(--navy-deep);
  color: #fff;
}

.contact h2 { color: #fff; }

.contact .rule { background: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.contact a { color: #fff; }

.phones {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.phones li { margin: 0 0 8px; }

.phones span { display: block; color: rgba(255, 255, 255, 0.7); font-size: 13px; }

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 22px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
}

form label { display: block; font-size: 13px; font-weight: 700; }

form label.full,
form .full,
form button { grid-column: 1 / -1; }

form input,
form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #5a6a7e;
  border-radius: 8px;
  background: var(--paper);
}

form textarea { min-height: 120px; }

form button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.note { margin: 8px 0 0; font-size: 14px; }

.hp { position: absolute; left: -9999px; }

.site-footer {
  padding: 28px 0 36px;
  background: var(--header);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.copy a,
.faq a,
.story a,
.link-list a,
.directory a,
.clients a,
.contact a {
  text-underline-offset: 3px;
}

.site-footer a { color: #fff; }

.faq {
  width: min(760px, 100%);
  margin: 0 auto;
}

.faq p {
  margin: 0 0 8px;
  color: var(--muted);
}

.faq p strong {
  display: block;
  margin: 22px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-family: Raleway, "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.directory {
  width: min(640px, 100%);
  margin: 0 auto;
}

.directory .phones li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.directory .phones span {
  display: inline;
  color: var(--ink);
  font-weight: 700;
}

.directory .phones a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-variant-numeric: tabular-nums;
}

.link-list {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 48px;
}

.link-list li {
  break-inside: avoid;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.link-list a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .menu-btn { display: inline-block; margin-left: 0; }

  .nav.is-open .sub {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 8px 14px;
    background: transparent;
  }

  .nav.is-open .sub a {
    padding: 8px 4px;
    white-space: normal;
  }

  .chapter { grid-template-columns: 1fr; gap: 10px; }

  .tools { margin-left: auto; }

  .site-header .bar { gap: 10px; }

  .brand img { height: 32px; }

  .espa {
    height: 22px;
    max-width: 108px;
    object-fit: contain;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--header);
  }

  .nav.is-open { display: flex; }

  .nav a { display: block; padding: 12px 4px; }

  .hero { min-height: 520px; }

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

  .cards,
  .services,
  .logos,
  .clients,
  .contact-grid,
  #structure .ps-person,
  .news article {
    grid-template-columns: 1fr;
  }

  #structure ul.ps-people,
  #structure ul.ps-people:not(:has(strong)),
  #councils ul.ps-people,
  #councils ul.ps-people:not(:has(strong)),
  .link-list { columns: 1; }

  #structure ul.ps-people li:has(strong),
  #councils ul.ps-people li:has(strong) { grid-template-columns: 1fr; }

  .directory .phones li { flex-direction: column; gap: 4px; }

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

  form { grid-template-columns: 1fr; }

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