:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --ink: #171c26;
  --muted: #4f5867;
  --line: #d5dbe6;
  --brand: #2f4566;
  --brand-strong: #243753;
  --footer: #1d2b40;
  --soft: #e9eef7;
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--brand);
}

.topbar {
  background: var(--footer);
  color: #f8fbff;
  font-size: 14px;
}

.topbar__inner,
.header__inner,
.section,
.footer__inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.contact-link,
.brand,
.icon-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.contact-link svg,
.brand svg,
.icon-line svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.header {
  background: #f8fafc;
}

.header__inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

.brand svg {
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
}

.nav a[aria-current="page"] {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span {
  opacity: 0;
}

.menu-open .menu-toggle::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle::after {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  padding: 92px 0;
}

.section--tight {
  padding-top: 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rule {
  width: 28px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--brand);
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 500;
}

.home-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
}

h2 {
  margin-bottom: 30px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 660px;
  color: #202632;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 460px);
  align-items: center;
  gap: 72px;
  padding-top: 64px;
}

.hero-copy p {
  max-width: 470px;
}

.hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

.hero-media img {
  width: 100%;
  height: 365px;
  object-fit: cover;
  object-position: 50% 18%;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.btn {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  padding: 0 24px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .22) 45%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.btn span,
.btn svg {
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #ffffff;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn--icon {
  width: 48px;
  padding: 0;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

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

.card {
  min-height: 212px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
  box-shadow: 0 1px 0 rgba(27, 38, 56, .03);
}

.card__mark {
  width: 28px;
  height: 2px;
  margin-bottom: 22px;
  background: var(--brand);
}

.card p {
  flex: 1;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #202632;
  font-size: 14px;
  font-weight: 600;
}

.text-link svg {
  width: 14px;
  height: 14px;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  align-items: center;
  gap: 110px;
  border-radius: var(--radius);
  background: var(--footer);
  color: #ffffff;
  padding: 72px 46px;
}

.about-band img {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 35%;
}

.about-band p,
.footer p,
.footer a {
  color: rgba(255, 255, 255, .74);
}

.about-band .text-link {
  color: #ffffff;
}

.about-band .text-link:hover {
  color: rgba(255, 255, 255, .82);
}

.about-band h2 {
  color: #ffffff;
}

.home-hero .actions .btn:first-child {
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.home-hero .actions .btn:first-child:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px rgba(47, 69, 102, .22);
}

.home-hero .actions .btn--icon:hover svg {
  transform: translate(2px, -2px);
  transition: transform 180ms ease;
}

.faq {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 88px;
  align-items: start;
  border-radius: var(--radius);
  background: #eef2f8;
  padding: 80px 42px;
}

.faq__list {
  display: grid;
  gap: 10px;
}

details {
  border-radius: var(--radius);
  background: var(--panel);
}

summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  color: #222936;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

details[open] summary::after {
  transform: rotate(225deg);
}

details p {
  margin: -6px 20px 20px;
  font-size: 14px;
}

.cta {
  text-align: center;
}

.cta p {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  padding: 0 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr;
  gap: 84px;
  border-radius: var(--radius);
  background: var(--footer);
  color: #ffffff;
  padding: 70px 56px;
}

.footer h3 {
  color: #ffffff;
  font-size: 20px;
}

.footer ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .brand {
  color: #ffffff;
}

.footer .brand svg {
  color: #ffffff;
}

.page-hero {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero--wide {
  max-width: none;
}

.about-page {
  display: grid;
  grid-template-columns: 1fr minmax(350px, 470px);
  align-items: center;
  gap: 90px;
}

.about-page img {
  width: 100%;
  height: 590px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 20%;
}

.contact-page {
  padding-bottom: 170px;
}

.contact-page h1 {
  margin-bottom: 28px;
}

.contact-list {
  display: grid;
  gap: 28px;
  max-width: 460px;
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
}

.contact-list svg {
  color: var(--brand);
}

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article h1 {
  margin-bottom: 30px;
}

.article h2 {
  margin-top: 54px;
  margin-bottom: 12px;
  font-size: 23px;
  font-weight: 700;
}

.article ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 17px;
}

.article li + li {
  margin-top: 6px;
}

.lawyer-card {
  max-width: 760px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  margin: 76px auto 0;
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}

.lawyer-card img {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 24%;
}

.lawyer-card__body {
  align-self: center;
  padding: 12px 20px 12px 0;
}

.lawyer-card .icon-line {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 500;
}

.specialisations-hero {
  text-align: center;
  padding-bottom: 46px;
}

.specialisations-hero p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.not-found {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 16px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .home-hero,
  .about-page,
  .about-band,
  .faq,
  .lawyer-card {
    grid-template-columns: 1fr;
  }

  .home-hero {
    gap: 32px;
  }

  .hero-media {
    order: -1;
  }

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

  .about-band,
  .faq {
    gap: 42px;
  }

  .about-page img,
  .about-band img {
    height: 470px;
  }

  .lawyer-card__body {
    padding: 0;
  }

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

@media (max-width: 720px) {
  .topbar__inner,
  .header__inner,
  .section,
  .footer__inner {
    width: min(100% - 32px, var(--max));
  }

  .topbar__inner {
    min-height: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 8px 0;
    font-size: 12px;
  }

  .header__inner {
    min-height: 72px;
  }

  .brand {
    max-width: calc(100% - 54px);
    font-size: 16px;
    line-height: 1.2;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 110px 16px auto;
    z-index: 20;
    display: grid;
    gap: 0;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 40px rgba(24, 32, 45, .18);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    border-radius: var(--radius);
    padding: 14px;
  }

  .nav a:hover {
    background: var(--soft);
  }

  .section {
    padding: 58px 0;
  }

  .section--tight {
    padding-top: 42px;
  }

  h1,
  .home-hero h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-media img {
    height: 252px;
    object-position: 50% 18%;
  }

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

  .card {
    min-height: auto;
  }

  .about-band,
  .faq {
    padding: 28px 20px;
  }

  .about-page img,
  .about-band img {
    height: 360px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 36px 28px;
  }

  .article ul {
    font-size: 16px;
  }

  .lawyer-card {
    padding: 14px;
  }

  .lawyer-card img {
    height: 360px;
  }

  .contact-page {
    padding-bottom: 64px;
  }
}

@media (max-width: 420px) {
  .topbar__inner,
  .header__inner,
  .section,
  .footer__inner {
    width: calc(100% - 24px);
  }

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

  .actions {
    margin-top: 24px;
  }

  .btn {
    min-height: 44px;
    padding: 0 18px;
  }

  .btn--icon {
    width: 44px;
  }
}
