:root {
  --e: #1c1310;
  --a: #f9f8f6;
  --white: #ffffff;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --pad: 56px;
  --line: rgba(28, 19, 16, 0.22);
  --line-strong: rgba(28, 19, 16, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--e);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.62);
  margin-bottom: 12px;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.35);
}

.serif {
  font-family: var(--font-serif);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 0;
  transition: opacity 0.2s, background 0.2s;
  border: 1px solid transparent;
  line-height: 1;
}

.btn:hover {
  opacity: 0.9;
}

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

.btn-outline {
  background: transparent;
  color: var(--e);
  border-color: var(--e);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
  opacity: 1;
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.btn-light {
  background: var(--white);
  color: var(--e);
  font-weight: 600;
}

.btn-light:hover {
  background: var(--a);
  opacity: 1;
}

.btn-block {
  width: 100%;
}

.text-link {
  font-size: 13px;
  color: rgba(28, 19, 16, 0.76);
  border-bottom: 1px solid rgba(28, 19, 16, 0.25);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo--invert img {
  filter: brightness(0) invert(1);
}

.logo span {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--e);
}

.logo--invert span {
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(28, 19, 16, 0.80);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}

.nav a.is-active {
  color: var(--e);
  font-weight: 600;
  border-bottom-color: var(--e);
}

.nav-cta {
  padding: 10px 20px !important;
  background: var(--e);
  color: var(--white) !important;
  font-weight: 500;
  border-bottom: 0 !important;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--e);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

.site-footer {
  background: var(--e);
  padding: 56px var(--pad) 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 20px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
}

.socials a:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.footer-nav li+li,
.hours li+li {
  margin-top: 12px;
}

.footer-nav a,
.contact-list span,
.contact-list a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-nav a:hover,
.contact-list a:hover {
  color: var(--white);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.35);
}

.hours .muted {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.hours .val {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  background: var(--white);
}

.hero-copy {
  padding: 64px var(--pad) 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.12;
  margin: 24px 0;
}

.lead {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(28, 19, 16, 0.85);
  max-width: 24rem;
  margin-bottom: 40px;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(28, 19, 16, 0.1);
}

.stats .num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}

.stats .lbl {
  font-size: 12px;
  color: rgba(28, 19, 16, 0.68);
  margin-top: 2px;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(28, 19, 16, 0.1);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
}

.badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
}

.badge span {
  display: block;
  font-size: 12px;
  color: rgba(28, 19, 16, 0.70);
  margin-top: 2px;
}

.corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: var(--e);
}

.section {
  padding: 64px var(--pad);
}

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

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

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
}

.section-head p.sub {
  font-size: 13px;
  color: rgba(28, 19, 16, 0.68);
  margin-top: 8px;
}

.service-list {
  border-top: 1px solid var(--line-strong);
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: transparent;
}

.service-row.is-active {
  background: var(--white);
  outline: 1px solid var(--e);
  padding: 18px 16px;
}

.service-row .left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.service-row .id {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(28, 19, 16, 0.50);
  width: 28px;
  flex-shrink: 0;
}

.service-row .name,
.service-row .desc {
  display: block;
}

.service-row .name {
  font-size: 14px;
  font-weight: 600;
}

.service-row .desc {
  font-size: 12px;
  color: rgba(28, 19, 16, 0.68);
  margin-top: 2px;
}

.service-row .meta {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.service-row .dur {
  font-size: 12px;
  color: rgba(28, 19, 16, 0.58);
}

.service-row .price {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  min-width: 72px;
  text-align: right;
}

.service-row .arrow {
  color: transparent;
}

.service-row.is-active .arrow {
  color: var(--e);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  border: 1px solid var(--line);
}

.price-card header {
  background: var(--e);
  padding: 14px 20px;
}

.price-card header p {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(28, 19, 16, 0.08);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row .n {
  font-size: 13px;
  font-weight: 500;
}

.price-row .note {
  font-size: 11px;
  color: rgba(28, 19, 16, 0.58);
  margin-top: 2px;
}

.price-row .p {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.faq-intro h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

.faq-intro p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(28, 19, 16, 0.70);
  margin-bottom: 32px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .chevron {
  flex-shrink: 0;
  color: rgba(28, 19, 16, 0.76);
  transition: transform 0.2s;
}

.faq-item[open] .chevron {
  transform: rotate(180deg);
}

.faq-item .answer {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(28, 19, 16, 0.76);
  padding-bottom: 20px;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.area-card {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.area-card:last-child {
  border-right: 0;
}

.area-card .k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.5);
  margin-bottom: 12px;
}

.area-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.25;
}

.area-card p:last-child {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(28, 19, 16, 0.72);
}

.drivers {
  background: var(--e);
  padding: 56px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.drivers h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin: 12px 0;
}

.drivers p.body {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 36rem;
}

.drivers .side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.drivers .hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

.page-hero {
  padding: 56px var(--pad) 48px;
  border-bottom: 1px solid rgba(28, 19, 16, 0.1);
}

.page-hero .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 600;
}

.page-hero .intro {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(28, 19, 16, 0.76);
}

.profile {
  border: 1px solid var(--line);
}

.profile-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.profile-photo {
  height: 380px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s;
}

.profile:hover .profile-photo img {
  transform: scale(1.05);
}

.profile-bio {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-bio h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-bio .role {
  font-size: 13px;
  color: rgba(28, 19, 16, 0.68);
  margin-bottom: 24px;
}

.profile-bio .text {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(28, 19, 16, 0.76);
  margin-bottom: 24px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 24px;
  border-top: 1px solid rgba(28, 19, 16, 0.1);
  gap: 16px;
}

.meta-grid .k {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.55);
  margin-bottom: 4px;
}

.meta-grid .v {
  font-size: 13px;
  font-weight: 600;
}

.profile-tags {
  padding: 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(28, 19, 16, 0.1);
  background: var(--a);
}

.tag {
  font-size: 11px;
  color: rgba(28, 19, 16, 0.76);
  border: 1px solid rgba(28, 19, 16, 0.2);
  padding: 6px 12px;
}

.profile-tags .btn {
  margin-left: auto;
  padding: 8px 24px;
  font-size: 12px;
}

.cert-list {
  border-top: 1px solid var(--line-strong);
  margin-top: 8px;
}

.cert-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(28, 19, 16, 0.1);
}

.cert-row .year {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: rgba(28, 19, 16, 0.55);
  width: 40px;
  flex-shrink: 0;
}

.cert-row .title {
  font-size: 13px;
  font-weight: 600;
}

.cert-row .org {
  font-size: 12px;
  color: rgba(28, 19, 16, 0.68);
  margin-top: 2px;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
}

.bio-card {
  padding: 36px;
  background: var(--white);
}

.bio-card:nth-child(odd) {
  border-right: 1px solid var(--line-strong);
}

.bio-card:nth-child(-n+2) {
  border-bottom: 1px solid var(--line-strong);
}

.bio-card .n {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.50);
}

.bio-card .rule {
  width: 32px;
  height: 1px;
  background: var(--e);
  opacity: 0.15;
  margin: 20px 0;
}

.bio-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 16px;
}

.bio-card p {
  font-size: 13px;
  line-height: 1.78;
  color: rgba(28, 19, 16, 0.76);
}

.private-note {
  margin-top: 24px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.private-note .k {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.55);
  margin-bottom: 8px;
}

.private-note .q {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  max-width: 220px;
}

.private-note .div {
  width: 1px;
  background: rgba(28, 19, 16, 0.12);
  align-self: stretch;
  flex-shrink: 0;
}

.private-note p.body {
  font-size: 13px;
  line-height: 1.78;
  color: rgba(28, 19, 16, 0.76);
  flex: 1;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  margin-bottom: 48px;
}

.feat-card {
  display: flex;
  flex-direction: column;
}

.feat-card+.feat-card {
  border-left: 1px solid var(--line-strong);
}

.feat-card .bar {
  padding: 16px 28px;
  background: var(--e);
  display: flex;
  align-items: center;
  gap: 12px;
}

.feat-card .type {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.feat-card .yr {
  font-family: var(--font-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-left: auto;
}

.feat-card .body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feat-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.feat-card .d {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(28, 19, 16, 0.70);
  margin-bottom: 16px;
  flex: 1;
}

.feat-card .n {
  font-size: 11px;
  color: rgba(28, 19, 16, 0.58);
  border-top: 1px solid rgba(28, 19, 16, 0.1);
  padding-top: 16px;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.edu-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(28, 19, 16, 0.09);
}

.edu-row .year {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  color: rgba(28, 19, 16, 0.50);
  width: 36px;
  flex-shrink: 0;
}

.edu-row .type {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.55);
  margin-bottom: 4px;
}

.edu-row .title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.edu-row .org {
  font-size: 11px;
  color: rgba(28, 19, 16, 0.62);
}

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

.value-card {
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--line-strong);
}

.value-card .n {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(28, 19, 16, 0.50);
}

.value-card .rule {
  width: 32px;
  height: 1px;
  background: var(--e);
  opacity: 0.2;
  margin: 20px 0 24px;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.value-card p {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(28, 19, 16, 0.76);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.step {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--e);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.step h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(28, 19, 16, 0.70);
}

.oferta-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-bottom: 1px solid rgba(28, 19, 16, 0.1);
}

.oferta-hero .copy {
  padding: 56px var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.oferta-hero h1 {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 600;
  line-height: 1.13;
  margin: 20px 0 24px;
}

.oferta-hero .lead {
  font-size: 14px;
  margin-bottom: 32px;
}

.oferta-hero .stats {
  margin-top: 32px;
  padding-top: 32px;
}

.oferta-hero .stats .num {
  font-size: 24px;
}

.office-label {
  position: absolute;
  bottom: 28px;
  right: 28px;
  padding: 14px 20px;
  background: var(--e);
  color: var(--white);
}

.office-label .k {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}

.office-label .v {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
}

.oferta-table-head,
.oferta-row {
  display: grid;
  grid-template-columns: 48px 1fr 120px 120px 36px;
  align-items: center;
}

.oferta-table-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28, 19, 16, 0.2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.55);
}

.oferta-row {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
}

.oferta-row.is-active {
  background: var(--white);
  outline: 1px solid var(--e);
  padding: 20px 16px;
}

.oferta-row .name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.oferta-row .name {
  font-size: 14px;
  font-weight: 600;
}

.oferta-row .chip {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.68);
  border: 1px solid rgba(28, 19, 16, 0.2);
  padding: 2px 8px;
}

.oferta-row .short,
.oferta-row .full {
  font-size: 12px;
  color: rgba(28, 19, 16, 0.70);
  line-height: 1.5;
  padding-right: 40px;
}

.oferta-row .full {
  display: none;
}

.oferta-row.is-active .short {
  display: none;
}

.oferta-row.is-active .full {
  display: block;
}

.oferta-row .meta-cell {
  font-size: 12px;
  color: rgba(28, 19, 16, 0.70);
}

.oferta-row .arrow {
  color: rgba(28, 19, 16, 0.55);
  display: flex;
  justify-content: center;
}

.oferta-row.is-active .arrow {
  color: var(--e);
}

.oferta-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(28, 19, 16, 0.1);
  font-size: 12px;
  color: rgba(28, 19, 16, 0.58);
}

.office-strip {
  height: 300px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.office-strip .cell {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.office-strip .cell:last-child {
  border-right: 0;
}

.office-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.office-strip .cell:hover img {
  transform: scale(1.05);
}

.office-strip .veil {
  position: absolute;
  inset: 0;
  background: rgba(28, 19, 16, 0.08);
}

.strip-label {
  position: absolute;
  bottom: 24px;
  left: var(--pad);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
}

.strip-label .k {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.68);
}

.strip-label .v {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
}

.faq-box {
  padding: 24px;
  border: 1px solid rgba(28, 19, 16, 0.15);
  background: var(--a);
}

.faq-box .k {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.58);
  margin-bottom: 12px;
}

.faq-box .row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(28, 19, 16, 0.76);
}

.faq-card {
  border: 1px solid rgba(28, 19, 16, 0.18);
  margin-top: -1px;
}

.faq-card summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  background: var(--white);
}

.faq-card[open] summary {
  background: var(--a);
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card .q {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.faq-card .idx {
  font-family: var(--font-serif);
  color: rgba(28, 19, 16, 0.55);
  flex-shrink: 0;
}

.faq-card .body {
  background: var(--a);
  padding: 0 24px 24px;
}

.faq-card .body-inner {
  border-top: 1px solid rgba(28, 19, 16, 0.1);
  padding-top: 14px;
  margin-left: 28px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(28, 19, 16, 0.76);
}

.cennik-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.cennik-hero h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 600;
}

.cennik-hero .intro {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(28, 19, 16, 0.70);
  margin-top: 16px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
}

.highlights article {
  padding: 20px;
  border-right: 1px solid var(--line-strong);
}

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

.highlights .k {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(28, 19, 16, 0.55);
  margin-bottom: 4px;
}

.highlights .num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}

.highlights .lbl {
  font-size: 11px;
  color: rgba(28, 19, 16, 0.68);
  margin-top: 2px;
}

.price-table {
  border: 1px solid var(--line-strong);
  margin-bottom: 32px;
}

.price-table .head,
.price-table .row {
  display: grid;
  grid-template-columns: 32px 1fr 140px 120px 120px;
  align-items: center;
  padding: 14px 24px;
}

.price-table .head {
  background: var(--e);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-table .head .id {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.price-table .head .col {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
}

.price-table .row {
  border-top: 1px solid rgba(28, 19, 16, 0.07);
  font-size: 13px;
}

.price-table .row:nth-child(odd) {
  background: var(--a);
}

.price-table .row:nth-child(even) {
  background: var(--white);
}

.price-table .row .p {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}

.price-table .row .muted {
  font-size: 12px;
  color: rgba(28, 19, 16, 0.70);
}

.price-table .row .note {
  font-size: 11px;
  color: rgba(28, 19, 16, 0.58);
}

.policy {
  border: 1.5px solid var(--e);
}

.policy-head {
  background: var(--e);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
}

.policy-head h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.policy-head .side {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 20rem;
  text-align: right;
}

.policy-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
}

.policy-col {
  padding: 28px;
  border-right: 1px solid rgba(28, 19, 16, 0.1);
}

.policy-col:last-child {
  border-right: 0;
}

.policy-col .title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
}

.policy-col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(28, 19, 16, 0.76);
}

.dot {
  width: 4px;
  height: 4px;
  background: rgba(28, 19, 16, 0.25);
  margin-top: 8px;
  flex-shrink: 0;
}

.policy-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid rgba(28, 19, 16, 0.1);
  background: var(--a);
  font-size: 11px;
  color: rgba(28, 19, 16, 0.62);
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 24px 32px;
  background: var(--e);
  gap: 24px;
}

.cta-strip h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.cta-strip p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.cta-strip .actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.kontakt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}

.kontakt-info {
  padding: 56px var(--pad) 48px;
  background: var(--a);
  border-right: 1px solid var(--line);
}

.kontakt-info h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 8px;
}

.kontakt-info>.lead {
  font-size: 13px;
  margin-bottom: 40px;
  max-width: 20rem;
}

.person-card {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.person-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.person-card h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.person-card .role {
  font-size: 11px;
  color: rgba(28, 19, 16, 0.62);
  margin-top: 2px;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 16px;
  border-top: 1px solid rgba(28, 19, 16, 0.09);
  gap: 8px;
}

.person-grid div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(28, 19, 16, 0.76);
}

.address-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.address-box .k {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.55);
  margin-bottom: 12px;
}

.address-box .inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.address-box h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
}

.address-box p {
  font-size: 12px;
  color: rgba(28, 19, 16, 0.70);
  margin-top: 2px;
}

.address-box .hint {
  font-size: 11px;
  color: rgba(28, 19, 16, 0.58);
  margin-top: 8px;
}

.kontakt-form {
  padding: 56px var(--pad) 48px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.kontakt-form h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.kontakt-form>.lead {
  font-size: 13px;
  margin-bottom: 40px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.80);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(28, 19, 16, 0.25);
  border-radius: 0;
  background: var(--a);
  color: var(--e);
  font-size: 13px;
  outline: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border: 2px solid var(--e);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(28, 19, 16, 0.08);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(28, 19, 16, 0.68);
}

.consent input {
  margin-top: 2px;
  accent-color: var(--e);
}

.consent a {
  color: var(--e);
  text-decoration: underline;
}

.form-note {
  font-size: 10px;
  text-align: center;
  color: rgba(28, 19, 16, 0.55);
}

.form-note a {
  color: inherit;
  text-decoration: underline;
}

.form-status {
  display: none;
  font-size: 13px;
  line-height: 1.55;
  padding: 12px 14px;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #eef5ee;
  color: #1d4a24;
}

.form-status.is-error {
  background: #f7ecea;
  color: #6b1f14;
}

.form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.grecaptcha-badge {
  visibility: hidden;
}

.timeline {
  border-top: 1px solid rgba(28, 19, 16, 0.1);
}

.timeline-track {
  position: relative;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(16.66% + 18px);
  right: calc(16.66% + 18px);
  height: 1px;
  background: rgba(28, 19, 16, 0.15);
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.t-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
}

.t-node {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  border: 1.5px solid var(--e);
  background: var(--white);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
}

.t-node.is-done {
  background: var(--e);
  color: var(--white);
}

.t-step .k {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 19, 16, 0.55);
  margin-bottom: 6px;
}

.t-step h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.t-step p {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(28, 19, 16, 0.70);
  margin-bottom: 16px;
}

.t-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(28, 19, 16, 0.25);
  color: rgba(28, 19, 16, 0.76);
}

.t-tag.is-done {
  background: var(--e);
  color: var(--white);
  border-color: var(--e);
}

.crisis {
  background: var(--e);
}

.crisis-head {
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.crisis-head .rest {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.crisis-head .note {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.4);
}

.crisis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crisis-grid article {
  padding: 32px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

.crisis-grid .lbl {
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.crisis-grid a {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.crisis-grid .n {
  font-size: 10px;
  margin-top: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.crisis-foot {
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.crisis-foot a {
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
}

@media (max-width: 1100px) {
  :root {
    --pad: 32px;
  }

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

  .area-card:nth-child(2n) {
    border-right: 0;
  }

  .area-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .hero h1,
  .oferta-hero h1,
  .page-hero h1,
  .cennik-hero h1,
  .kontakt-info h1 {
    font-size: 36px;
  }

  .price-table .head,
  .price-table .row {
    grid-template-columns: 28px 1fr 100px 90px 90px;
    padding: 12px 16px;
  }

  .oferta-table-head,
  .oferta-row {
    grid-template-columns: 40px 1fr 100px 100px 28px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }

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

  .nav a {
    padding: 12px var(--pad);
    border-bottom: 0;
  }

  .nav-cta {
    margin: 8px var(--pad) 0;
    text-align: center;
  }

  .hero,
  .oferta-hero,
  .kontakt,
  .faq-grid,
  .page-hero .split,
  .cennik-hero,
  .footer-grid,
  .price-grid,
  .area-grid,
  .values-grid,
  .steps,
  .timeline-steps,
  .crisis-grid,
  .policy-cols,
  .office-strip,
  .profile-top,
  .bio-grid,
  .feat-grid,
  .split-2,
  .highlights,
  .stats {
    grid-template-columns: 1fr;
  }

  .area-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .area-card:last-child {
    border-bottom: 0;
  }

  .hero,
  .oferta-hero,
  .kontakt {
    min-height: 0;
  }

  .hero-photo,
  .oferta-hero .hero-photo {
    min-height: 320px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .profile-photo {
    height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .drivers,
  .cta-strip,
  .oferta-foot,
  .section-head,
  .footer-bottom,
  .policy-head,
  .policy-foot,
  .crisis-head,
  .crisis-foot,
  .private-note,
  .profile-tags {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-tags .btn {
    margin-left: 0;
  }

  .drivers .side,
  .cta-strip .actions {
    align-items: stretch;
    width: 100%;
  }

  .form-row,
  .person-grid {
    grid-template-columns: 1fr;
  }

  .highlights article {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .feat-card+.feat-card {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .bio-card:nth-child(odd) {
    border-right: 0;
  }

  .bio-card {
    border-bottom: 1px solid var(--line-strong);
  }

  .price-table {
    overflow-x: auto;
  }

  .price-table .head,
  .price-table .row {
    min-width: 640px;
  }

  .oferta-table-head {
    display: none;
  }

  .oferta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .office-strip {
    height: auto;
  }

  .office-strip .cell {
    height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-track::before {
    display: none;
  }

  .t-step {
    padding: 16px 0;
    align-items: flex-start;
    text-align: left;
  }

  .policy-col {
    border-right: 0;
    border-bottom: 1px solid rgba(28, 19, 16, 0.1);
  }

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

/* —— Diploma gallery (O mnie) —— */
.diploma-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.diploma-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  padding: 0;
  transition: outline-color 0.2s ease, transform 0.2s ease;
  outline: 1px solid transparent;
}

.diploma-card:hover,
.diploma-card:focus-visible {
  outline: 1px solid var(--e);
  transform: translateY(-2px);
}

.diploma-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  max-height: 220px;
  overflow: hidden;
  background: #f0eeeb;
  border-bottom: 1px solid var(--line);
}

.diploma-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.diploma-card:hover .diploma-thumb img {
  transform: scale(1.03);
}

.diploma-card--landscape .diploma-thumb {
  aspect-ratio: 4 / 3;
}

.diploma-card--landscape .diploma-thumb img {
  object-fit: contain;
  background: #f0eeeb;
}

.diploma-card--rotate .diploma-thumb img,
.diploma-card--rotate-cw .diploma-thumb img,
.diploma-card--rotate-90 .diploma-thumb img,
.diploma-card--rotate-180 .diploma-thumb img {
  object-fit: contain;
  transform-origin: center center;
}

.diploma-card--rotate .diploma-thumb img {
  transform: rotate(-90deg) scale(1.25);
}

.diploma-card--rotate:hover .diploma-thumb img {
  transform: rotate(-90deg) scale(1.3);
}

.diploma-card--rotate-cw .diploma-thumb img,
.diploma-card--rotate-90 .diploma-thumb img {
  transform: rotate(90deg) scale(1.25);
}

.diploma-card--rotate-cw:hover .diploma-thumb img,
.diploma-card--rotate-90:hover .diploma-thumb img {
  transform: rotate(90deg) scale(1.3);
}

.diploma-card--rotate-180 .diploma-thumb img {
  transform: rotate(180deg) scale(1.05);
}

.diploma-card--rotate-180:hover .diploma-thumb img {
  transform: rotate(180deg) scale(1.08);
}

.diploma-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
}

.diploma-meta .yr {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(28, 19, 16, 0.55);
}

.diploma-meta .ttl {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--e);
}

.diploma-meta .org {
  font-size: 11px;
  color: rgba(28, 19, 16, 0.68);
  line-height: 1.4;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 19, 16, 0.72);
  border: 0;
  cursor: pointer;
  padding: 0;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-dialog img {
  max-width: 100%;
  max-height: calc(92vh - 64px);
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(28, 19, 16, 0.35);
}

.lightbox-dialog img.is-rotated {
  transform: rotate(-90deg);
  max-height: min(920px, 90vw);
  max-width: calc(92vh - 64px);
}

.lightbox-dialog img.is-rotated-cw {
  transform: rotate(90deg);
  max-height: min(920px, 90vw);
  max-width: calc(92vh - 64px);
}

.lightbox-dialog img.is-rotated-180 {
  transform: rotate(180deg);
}

.lightbox-caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  max-width: 36rem;
  line-height: 1.45;
}

.lightbox-counter {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--e);
  color: var(--a);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-close:hover {
  background: var(--white);
  color: var(--e);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--e);
  color: var(--a);
  cursor: pointer;
  padding: 0;
}

.lightbox-nav:hover {
  background: var(--white);
  color: var(--e);
}

.lightbox-nav--prev {
  left: max(16px, calc(50% - 500px));
}

.lightbox-nav--next {
  right: max(16px, calc(50% - 500px));
}

@media (max-width: 720px) {
  .lightbox-nav--prev {
    left: 8px;
  }

  .lightbox-nav--next {
    right: 8px;
  }

  .lightbox {
    padding: 16px 52px;
  }
}

@media (max-width: 1100px) {
  .diploma-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .diploma-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.legal-meta {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(28, 19, 16, 0.55);
}

.legal {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.legal-block + .legal-block {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.legal-block h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
}

.legal-block p,
.legal-block li {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(28, 19, 16, 0.85);
}

.legal-block p + p,
.legal-block ul {
  margin-top: 12px;
}

.legal-block ul {
  padding-left: 1.2em;
  list-style: disc;
}

.legal-block li + li {
  margin-top: 8px;
}

.legal-block a {
  color: var(--e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.75);
}