:root {
  --navy: #061b31;
  --navy-2: #08223c;
  --ink: #111827;
  --muted: #4b5563;
  --line: #d7dde5;
  --soft: #f6f7f9;
  --white: #ffffff;
  --gold: #bd8842;
  --gold-light: #d9a85d;
  --green: #2db84d;
  --blue: #30a8e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img,
svg {
  display: block;
}

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

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

.container.narrow {
  width: min(760px, calc(100% - 48px));
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.06);
}

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

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

.brand-mark {
  width: 52px;
  height: 52px;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  display: block;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 33px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.main-nav a {
  padding: 10px 0;
}

.button {
  min-height: 48px;
  min-width: 142px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(6, 27, 49, 0.14);
}

.button-dark {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.button-gold {
  color: var(--white);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.02);
}

.button-outline-dark {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--white);
}

.header-cta {
  min-width: 216px;
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--navy);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 17, 32, 0.96) 0%, rgba(5, 25, 45, 0.9) 32%, rgba(5, 25, 45, 0.35) 62%, rgba(5, 25, 45, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 34px 0 44px;
}

.hero h1 {
  margin: 0 0 22px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
}

.hero p {
  width: min(420px, 100%);
  margin: 0 0 34px;
  color: var(--white);
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.section {
  padding: 58px 0 64px;
}

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

.section-muted {
  background: var(--soft);
}

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

.section-heading.centered {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
}

.section-heading span {
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 18px;
  background: var(--gold);
}

.section-heading.centered span {
  margin-left: auto;
  margin-right: auto;
}

.heading-light h2 {
  color: var(--white);
}

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

.practice-card,
.fee-card,
.credential-card,
.quick-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.practice-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px 24px 26px;
  text-align: center;
}

.practice-card svg,
.fee-card svg {
  width: 52px;
  height: 52px;
  color: var(--navy);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-card h3,
.case-card h3,
.fee-card h3,
.credential-card h3,
.quick-card h3,
.why h3 {
  margin: 18px 0 8px;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.2;
}

.practice-card p {
  margin: 0 0 17px;
  color: #111827;
  font-size: 14px;
  line-height: 1.55;
}

.practice-card a {
  margin-top: auto;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.why {
  padding: 42px 0 54px;
  color: var(--white);
  background: var(--navy);
}

.why .section-heading {
  margin-bottom: 18px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-grid article {
  min-height: 176px;
  padding: 24px 32px 10px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.why-grid article:last-child {
  border-right: 0;
}

.why-grid svg {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  color: var(--gold-light);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why h3 {
  color: var(--white);
  font-size: 17px;
}

.why p {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
}

.case-list {
  display: grid;
  gap: 28px;
}

.case-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 166px;
  overflow: hidden;
  border: 1px solid rgba(215, 221, 229, 0.72);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.case-card img {
  width: 100%;
  height: 100%;
  min-height: 166px;
  object-fit: cover;
}

.case-card div {
  padding: 29px 30px 24px;
}

.case-card h3 {
  margin-top: 0;
  font-size: 23px;
}

.case-card p {
  margin: 0 0 14px;
  color: #111827;
  font-size: 14px;
}

.case-card strong {
  color: #9a641f;
  font-size: 15px;
}

.centered-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

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

.fee-card {
  position: relative;
  min-height: 312px;
  padding: 29px 24px 22px;
  text-align: center;
}

.fee-card.popular {
  padding-top: 53px;
  border-color: var(--navy);
  box-shadow: 0 14px 28px rgba(6, 27, 49, 0.11);
}

.fee-card .badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 5px 5px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.fee-card svg {
  margin: 0 auto;
}

.fee-card h3 {
  margin: 13px 0 6px;
  font-size: 17px;
}

.price {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.1;
}

.duration {
  margin: 2px 0 16px;
  color: #111827;
  font-size: 13px;
}

.fee-card ul {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 0;
  color: #111827;
  font-size: 12px;
  line-height: 1.9;
  text-align: left;
  list-style: none;
}

.fee-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--navy);
  font-weight: 700;
}

.fee-card .button {
  width: 100%;
  min-height: 42px;
}

.fee-note {
  width: min(760px, 100%);
  margin: 22px auto 0;
  color: #111827;
  font-size: 13px;
}

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

.credential-card {
  min-height: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 31px 18px 24px;
  text-align: center;
}

.credential-emblem {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.credential-emblem.shield {
  background: #ac1d2b;
  clip-path: polygon(10% 0, 90% 0, 90% 62%, 50% 100%, 10% 62%);
}

.credential-emblem.crown {
  color: #1e5ac8;
  background: transparent;
  border: 0;
  font-size: 42px;
}

.credential-emblem.crown::before {
  content: "♛";
  font-size: 42px;
}

.credential-emblem.crown {
  font-size: 0;
}

.credential-emblem.seal {
  color: #1a5aa8;
  background: #f5c94d;
  border: 6px solid #1a5aa8;
  border-radius: 50%;
}

.credential-emblem.state {
  color: #6b7280;
  background: #eef2f7;
  border: 2px solid #9aa5b1;
  border-radius: 50%;
}

.credential-card h3 {
  min-height: 49px;
  margin: 0 0 18px;
  color: #111827;
  font-size: 18px;
}

.credential-card p {
  margin: auto 0 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.45;
}

.contact-section {
  padding-top: 62px;
}

.case-form {
  display: grid;
  gap: 18px;
}

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

.case-form label {
  display: block;
}

.case-form label > span:first-child:not(.consent span) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.case-form input,
.case-form select,
.case-form textarea {
  width: 100%;
  border: 1px solid #cfd6df;
  border-radius: 5px;
  background: var(--white);
  color: #111827;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.case-form input,
.case-form select {
  height: 58px;
  padding: 0 20px;
}

.case-form textarea {
  min-height: 156px;
  resize: vertical;
  padding: 20px;
}

.case-form input:focus,
.case-form select:focus,
.case-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(6, 27, 49, 0.1);
}

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 13px;
}

.consent input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
}

.consent a {
  color: var(--navy);
  font-weight: 800;
}

.submit-button {
  width: min(360px, 100%);
  min-height: 56px;
  justify-self: center;
  margin-top: 2px;
}

.quick-contact {
  padding-top: 50px;
}

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

.quick-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px 22px;
  text-align: center;
}

.contact-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
}

.contact-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon.whatsapp {
  color: var(--green);
}

.contact-icon.telegram {
  color: var(--white);
  background: var(--blue);
}

.contact-icon.phone {
  color: var(--navy);
}

.quick-card h3 {
  margin: 4px 0 7px;
  font-size: 22px;
}

.quick-card p {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    padding: 18px 0;
    flex-wrap: wrap;
  }

  .brand {
    min-width: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding-top: 4px;
  }

  .header-cta {
    min-width: 190px;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

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

  .hero p {
    font-size: 19px;
  }

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

  .why-grid article:nth-child(2) {
    border-right: 0;
  }

  .why-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .fees-grid {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .container,
  .container.narrow {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    box-shadow: none;
  }

  .header-inner {
    gap: 16px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    font-size: 12px;
  }

  .header-cta {
    width: 100%;
    min-width: 100%;
  }

  .main-nav {
    gap: 18px;
    font-size: 12px;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-image {
    object-position: 67% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 17, 32, 0.97) 0%, rgba(5, 25, 45, 0.86) 48%, rgba(5, 25, 45, 0.3) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.2));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 54px;
  }

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

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

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 46px 0 52px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .practice-grid,
  .why-grid,
  .credentials-grid,
  .quick-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .why-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .why-grid article:last-child {
    border-bottom: 0;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card img {
    height: 196px;
  }

  .case-card div {
    padding: 24px 22px;
  }
}
