:root {
  --ink: #102d48;
  --ink-soft: #294b67;
  --muted: #61778a;
  --blue: #0879bd;
  --blue-dark: #07578a;
  --sky: #eaf6fd;
  --sky-strong: #c9e8f8;
  --paper: #ffffff;
  --surface: #f7fafc;
  --line: #cbdde9;
  --warm: #9a723e;
  --navy: #0b2c47;
  --shadow: 0 18px 42px rgba(16, 45, 72, .1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding: 0 max(28px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid rgba(203, 221, 233, .9);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 184px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.header-phone,
.footer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.nav a:hover,
.header-phone:hover,
.footer a:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.header-phone {
  color: var(--blue-dark);
  font-weight: 800;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.site-header.open .menu-button span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.open .menu-button span:nth-child(2) {
  opacity: 0;
}

.site-header.open .menu-button span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: url("assets/hero-office.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 66, .72);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 66px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 70px;
  align-items: end;
}

.hero-copy {
  max-width: 830px;
}

.hero-kicker,
.eyebrow,
.pricing-caption,
.case-client {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-kicker {
  color: #9edbff;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(46px, 5.1vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .84);
  font-size: 20px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .34);
}

.hero-points li {
  padding: 20px 24px 0 0;
}

.hero-points li + li {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .26);
}

.hero-points strong,
.hero-points span {
  display: block;
}

.hero-points strong {
  margin-bottom: 7px;
  color: #fff;
  font-size: 15px;
}

.hero-points span {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.5;
}

.hero-proof {
  padding: 26px 0 4px 30px;
  border-left: 3px solid #79cdf4;
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  margin-bottom: 8px;
  color: #fff;
  font-size: 58px;
  line-height: 1;
}

.hero-proof span {
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
}

.section-shell,
.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.expertise {
  padding: 84px 0 0;
  background: var(--paper);
}

.expertise-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.expertise-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 17px;
}

.expertise-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expertise-facts span {
  padding: 20px 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.expertise-facts span + span {
  border-left: 1px solid var(--line);
}

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 48px;
}

.services .section-heading {
  max-width: none;
}

.services .section-heading h2,
.services .section-heading > p:not(.eyebrow) {
  white-space: nowrap;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.service-list {
  border-top: 2px solid var(--ink);
}

.service-item {
  display: grid;
  grid-template-columns: 64px minmax(250px, .8fr) minmax(0, 1.35fr);
  gap: 34px;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.service-number {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.service-title h3 {
  font-size: 24px;
}

.service-label {
  margin: 0;
  color: var(--warm);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-copy {
  color: var(--muted);
}

.service-copy p:last-child {
  margin-bottom: 0;
}

.pricing-band {
  padding: 96px 0 104px;
  color: #fff;
  background: var(--navy);
}

.section-heading.light > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .66);
}

.section-heading.light .eyebrow {
  color: #8fd7fb;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.success-fee {
  padding: 34px;
  border: 1px solid rgba(169, 219, 247, .36);
  border-radius: 6px;
  background: #113b5d;
}

.pricing-caption {
  color: #90d8fb;
}

.rate-list {
  margin: 28px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.rate-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.rate-list span {
  color: rgba(255, 255, 255, .72);
}

.rate-list strong {
  color: #fff;
  white-space: nowrap;
}

.pricing-note,
.offer-note {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.fixed-prices {
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.fixed-prices article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.fixed-prices h3 {
  margin-bottom: 4px;
  font-size: 19px;
}

.fixed-prices p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .58);
  font-size: 14px;
}

.fixed-prices strong {
  color: #a8def7;
  font-size: 19px;
  white-space: nowrap;
}

.offer-note {
  padding-top: 20px;
}

.cases {
  padding-bottom: 92px;
}

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

.case-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.case-client {
  color: var(--warm);
}

.case-card p:not(.case-client) {
  color: var(--muted);
}

.case-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.reviews-band {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid #e1e9ef;
  border-bottom: 1px solid #e1e9ef;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 66px;
  align-items: start;
}

.reviews-intro {
  position: sticky;
  top: 100px;
}

.reviews-intro p:not(.eyebrow) {
  color: var(--muted);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-document {
  display: grid;
  grid-template-rows: 250px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(16, 45, 72, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.review-document:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(16, 45, 72, .14);
}

.review-document img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.review-document span {
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.contacts {
  padding: 100px 0;
  background: var(--sky);
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1.1fr .85fr .85fr;
  gap: 56px;
  align-items: start;
}

.contacts-heading p:not(.eyebrow) {
  color: var(--muted);
}

.contact-primary {
  display: grid;
  gap: 18px;
  padding-top: 34px;
}

.contact-phone,
.contact-email {
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--sky-strong);
  text-underline-offset: 6px;
}

.contact-phone {
  font-size: 25px;
}

.company-details {
  padding-left: 30px;
  border-left: 1px solid #a9cfe4;
}

.company-details h3 {
  font-size: 18px;
}

dl {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.footer {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 20px max(28px, calc((100vw - 1280px) / 2));
  color: rgba(255, 255, 255, .72);
  background: #071f33;
  font-size: 14px;
}

.footer img {
  width: 140px;
  padding: 5px;
  background: #fff;
}

.footer p {
  margin: 0;
}

.footer a {
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 24px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 36px rgba(16, 45, 72, .12);
    transform: translateY(-140%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s ease;
  }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid #e8f0f5;
  }

  .site-header.open .nav {
    transform: translateY(0);
    visibility: visible;
  }

  .menu-button {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr 190px;
    gap: 36px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero-points li {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 14px 0;
  }

  .hero-points li + li {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    border-left: 0;
  }

  .expertise-grid,
  .reviews-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .reviews-intro {
    position: static;
    max-width: 700px;
  }

  .service-item {
    grid-template-columns: 52px minmax(230px, .8fr) minmax(0, 1.2fr);
    gap: 24px;
  }

  .contacts-layout {
    grid-template-columns: 1fr 1fr;
  }

  .contacts-heading {
    grid-column: 1 / -1;
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 62px;
    padding: 0 16px;
  }

  .brand-logo {
    width: 150px;
  }

  .header-phone {
    display: none;
  }

  .nav {
    top: 62px;
  }

  .hero {
    min-height: auto;
    background-position: 62% center;
  }

  .hero::before {
    background: rgba(8, 40, 66, .82);
  }

  .hero-inner {
    width: min(100% - 32px, 1180px);
    padding: 54px 0 50px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  h1 {
    font-size: 41px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-points li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 4px 0 4px 20px;
  }

  .hero-proof strong {
    margin: 0;
    font-size: 44px;
  }

  .expertise {
    padding-top: 66px;
  }

  .expertise-copy {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .expertise-facts {
    grid-template-columns: 1fr 1fr;
    margin-top: 36px;
  }

  .expertise-facts span:nth-child(3) {
    border-left: 0;
  }

  .expertise-facts span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section-shell,
  .section {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .services .section-heading h2,
  .services .section-heading > p:not(.eyebrow) {
    white-space: normal;
  }

  .section-heading > p:not(.eyebrow) {
    font-size: 16px;
  }

  .service-item {
    grid-template-columns: 40px 1fr;
    gap: 10px 16px;
    padding: 28px 0;
  }

  .service-copy {
    grid-column: 2;
  }

  .pricing-band,
  .reviews-band,
  .contacts {
    padding: 72px 0;
  }

  .pricing-layout,
  .case-grid,
  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .success-fee {
    padding: 24px;
  }

  .fixed-prices article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

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

  .review-document {
    grid-template-rows: 220px auto;
  }

  .review-document img {
    height: 220px;
  }

  .contacts-heading {
    grid-column: auto;
  }

  .contact-primary {
    padding-top: 0;
  }

  .contact-email {
    overflow-wrap: anywhere;
  }

  .company-details {
    padding: 24px 0 0;
    border-top: 1px solid #a9cfe4;
    border-left: 0;
  }

  .footer {
    grid-template-columns: 1fr auto;
    padding: 22px 20px;
  }

  .footer img {
    width: 132px;
  }

  .footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-inner {
    padding-top: 46px;
  }

  .expertise-facts,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .expertise-facts span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .review-document {
    grid-template-rows: 280px auto;
  }

  .review-document img {
    height: 280px;
  }

  .rate-list div {
    display: grid;
    gap: 3px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
