@font-face {
  font-family: "CairoLocal";
  src: url("../vendors/Cairo/static/Cairo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CairoLocal";
  src: url("../vendors/Cairo/static/Cairo-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CairoLocal";
  src: url("../vendors/Cairo/static/Cairo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CairoLocal";
  src: url("../vendors/Cairo/static/Cairo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CairoLocal";
  src: url("../vendors/Cairo/static/Cairo-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --law-navy: #061a3d;
  --law-navy-2: #0b2e63;
  --law-blue: #176ed2;
  --law-blue-light: #eaf3ff;
  --law-white: #ffffff;
  --law-bg: #f2f6fb;

  --law-text: #061a3d;
  --law-muted: #0b2e63;
  --law-muted-soft: #123f72;

  --law-border: #c6d5e6;
  --law-shadow: rgba(15, 45, 84, 0.12);
}

.law-master-page {
  min-height: 100vh;
  background: var(--law-bg);
  color: var(--law-text);
  font-family: "CairoLocal", Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.law-master-page *,
.law-master-page *::before,
.law-master-page *::after {
  box-sizing: border-box;
}

.law-master-page button,
.law-master-page a,
.law-master-page input,
.law-master-page select,
.law-master-page textarea {
  font-family: "CairoLocal", Tahoma, "Segoe UI", Arial, sans-serif;
}

.law-master-page a {
  color: inherit;
}

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

/* Hero */
.law-hero {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      rgba(5, 18, 45, 0.93) 0%,
      rgba(6, 31, 70, 0.82) 42%,
      rgba(10, 52, 109, 0.46) 70%,
      rgba(9, 46, 95, 0.14) 100%),
    url("../images/law.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.law-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(89, 154, 255, 0.16), transparent 35%),
    linear-gradient(to top, rgba(2, 15, 38, 0.22), transparent 50%);
}

.law-hero__content {
  position: relative;
  z-index: 2;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--law-white);
}

.law-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--law-white);
  font-size: 13px;
  font-weight: 800;
}

.law-hero h1 {
  max-width: 720px;
  margin: 16px 0 10px;
  color: var(--law-white);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
}

.law-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
}

.law-hero__actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.law-btn {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.law-btn:hover {
  transform: translateY(-2px);
}

.law-btn--primary {
  background: var(--law-white);
  color: var(--law-navy);
}

.law-btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--law-white);
  background: rgba(255, 255, 255, 0.05);
}

/* Programs */
.law-programs-section {
  padding: 65px 0 82px;
}

.law-section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.law-section-heading span {
  color: var(--law-blue);
  font-size: 14px;
  font-weight: 800;
}

.law-section-heading h2 {
  margin: 7px 0 5px;
  color: var(--law-navy);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.45;
}

.law-section-heading p {
  margin: 0;
  color: var(--law-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

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

.law-program-card {
  min-height: 360px;
  padding: 26px 23px 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--law-border);
  border-radius: 20px;
  background: var(--law-white);
  box-shadow: 0 15px 34px var(--law-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.law-program-card:hover {
  transform: translateY(-6px);
  border-color: #7fa7d4;
  box-shadow: 0 22px 42px rgba(16, 45, 84, 0.16);
}

.law-program-card__top {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.law-program-card__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--law-blue-light);
  color: var(--law-blue);
  font-size: 24px;
}

.law-program-card__top > span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf4fb;
  color: var(--law-blue);
  font-size: 12px;
  font-weight: 800;
}

.law-program-card h3 {
  margin: 0 0 10px;
  color: var(--law-navy);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.6;
}

.law-program-card > p {
  margin: 0;
  color: var(--law-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

.law-program-card__meta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.law-program-card__meta span {
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: #edf4fb;
  color: var(--law-text);
  font-size: 12px;
  font-weight: 800;
}

.law-program-card__meta i {
  color: var(--law-blue);
}

.law-program-card__button {
  width: 100%;
  min-height: 45px;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  background: var(--law-navy);
  color: var(--law-white);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.law-program-card__button:hover {
  transform: translateY(-1px);
  background: var(--law-navy-2);
}

/* Details */
.law-details[hidden],
.law-program-detail[hidden],
#programsList[hidden] {
  display: none;
}

.law-back-button {
  min-height: 42px;
  margin-bottom: 24px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #aac0d8;
  border-radius: 9px;
  background: var(--law-white);
  color: var(--law-navy);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.law-detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.law-sidebar {
  position: sticky;
  top: 105px;
}

.law-sidebar__card {
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: var(--law-navy);
  color: var(--law-white);
  box-shadow: 0 18px 38px rgba(8, 31, 72, 0.22);
}

.law-sidebar__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--law-white);
  font-size: 23px;
}

.law-sidebar__card > span {
  display: block;
  margin-bottom: 6px;
  color: #a7d3ff;
  font-size: 14px;
  font-weight: 800;
}

.law-sidebar__card h2 {
  margin: 0 0 20px;
  color: var(--law-white);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.6;
}

.law-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.law-sidebar__nav a {
  width: 100%;
  padding: 11px 12px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--law-white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
  text-align: right;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.law-sidebar__nav a:hover,
.law-sidebar__nav a.active {
  background: var(--law-white);
  color: var(--law-navy);
  border-color: var(--law-white);
}

.law-detail-content {
  min-width: 0;
}

.law-detail-header {
  padding: 24px;
  border: 1px solid var(--law-border);
  border-radius: 18px;
  background: var(--law-white);
  box-shadow: 0 14px 30px rgba(18, 49, 88, 0.08);
}

.law-detail-header span {
  color: var(--law-blue);
  font-size: 13px;
  font-weight: 800;
}

.law-detail-header h2 {
  margin: 7px 0 6px;
  color: var(--law-navy);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.5;
}

.law-detail-header p {
  margin: 0;
  color: var(--law-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
}

.law-facts-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.law-facts-grid > div {
  min-height: 86px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--law-border);
  border-radius: 12px;
  background: var(--law-white);
  text-align: center;
}

.law-facts-grid span {
  color: var(--law-muted);
  font-size: 13px;
  font-weight: 800;
}

.law-facts-grid strong {
  color: var(--law-navy);
  font-size: 16px;
  font-weight: 800;
}

.law-info-card {
  margin-top: 16px;
  padding: 22px;
  scroll-margin-top: 110px;
  border: 1px solid var(--law-border);
  border-radius: 18px;
  background: var(--law-white);
  box-shadow: 0 10px 24px rgba(17, 48, 87, 0.06);
}

.law-info-card--highlight {
  border-color: #8bb4e4;
  background: var(--law-blue-light);
}

.law-info-card__title {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.law-info-card__title i {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--law-blue-light);
  color: var(--law-blue);
  font-size: 14px;
}

.law-info-card__title h3 {
  margin: 0;
  color: var(--law-navy);
  font-size: 18px;
  font-weight: 800;
}

.law-info-card p,
.law-info-card li {
  color: var(--law-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
}

.law-info-card p {
  margin: 0;
}

.law-info-card ul,
.law-info-card ol {
  margin: 0;
  padding-right: 22px;
}

.law-info-card li + li {
  margin-top: 5px;
}

.law-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.law-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--law-navy);
  font-size: 13px;
  font-weight: 800;
}

.law-register {
  margin-top: 30px;
  text-align: center;
}

.law-register a {
  min-height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  background: var(--law-navy);
  color: var(--law-white);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(7, 26, 61, 0.22);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.law-register a:hover {
  transform: translateY(-2px);
  background: var(--law-navy-2);
}

/* Responsive */
@media (max-width: 1050px) {
  .law-programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .law-detail-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
  }

  .law-facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .law-detail-layout {
    grid-template-columns: 1fr;
  }

  .law-sidebar {
    position: static;
  }

  .law-sidebar__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .law-shell {
    width: calc(100% - 28px);
  }

  .law-hero {
    min-height: 300px;
    background-position: 60% center;
  }

  .law-hero__content {
    min-height: 300px;
    align-items: center;
    text-align: center;
  }

  .law-hero h1 {
    font-size: 27px;
  }

  .law-hero p {
    font-size: 15px;
    line-height: 1.9;
  }

  .law-hero__actions {
    justify-content: center;
  }

  .law-programs-section {
    padding: 45px 0 60px;
  }

  .law-programs-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .law-program-card {
    min-height: auto;
  }

  .law-program-card h3 {
    font-size: 20px;
  }

  .law-program-card > p {
    font-size: 15px;
  }

  .law-back-button {
    width: 100%;
  }

  .law-detail-header {
    padding: 20px 17px;
  }

  .law-detail-header h2 {
    font-size: 22px;
  }

  .law-detail-header p {
    font-size: 15px;
  }

  .law-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .law-info-card {
    padding: 18px 15px;
    border-radius: 14px;
  }

  .law-info-card__title h3 {
    font-size: 16px;
  }

  .law-info-card p,
  .law-info-card li {
    font-size: 15px;
  }

  .law-register a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .law-shell {
    width: calc(100% - 22px);
  }

  .law-hero,
  .law-hero__content {
    min-height: 280px;
  }

  .law-hero h1 {
    font-size: 25px;
  }

  .law-sidebar__card h2 {
    font-size: 24px;
  }

  .law-sidebar__nav {
    grid-template-columns: 1fr;
  }

  .law-facts-grid {
    grid-template-columns: 1fr;
  }

  .law-facts-grid > div {
    min-height: 72px;
  }
}