.rgys-about,
.rgys-about-offices {
  --rgys-blue: var(--blue, #0a2d40);
  --rgys-navy: var(--navy, #061b2b);
  --rgys-gold: var(--gold, #c8a45c);
  --rgys-paper: var(--paper, #faf8f2);
  --rgys-ink: var(--ink, #173240);
  --rgys-muted: var(--muted, #647580);
  --rgys-line: var(--line, #dce4e4);
  --rgys-frame: var(--radius-frame, 10px / 7px);
  overflow: clip;
}

.rgys-about .section-heading h2,
.rgys-about-offices .section-heading h2 {
  text-wrap: pretty;
}

.rgys-about-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.62fr);
  gap: clamp(42px, 8vw, 126px);
  align-items: start;
}

.rgys-about-copy > p {
  max-width: 680px;
  color: var(--rgys-muted);
  font-size: 18px;
  line-height: 2;
}

.rgys-about-legal-name {
  border-top: 1px solid var(--rgys-line);
  margin: 32px 0 0 !important;
  padding-top: 18px;
  color: #6a5730 !important;
  font-size: 12px !important;
  letter-spacing: 0.035em;
}

.rgys-about-legal-name span {
  padding: 0 8px;
  color: var(--rgys-gold);
}

.rgys-about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rgys-line);
  border-radius: var(--rgys-frame);
  overflow: hidden;
  background: linear-gradient(145deg, #fff 0%, #f8f3e7 100%);
}

.rgys-about-facts-label,
.rgys-about-facts-note {
  grid-column: 1 / -1;
  margin: 0;
}

.rgys-about-facts-label {
  padding: 16px 20px;
  color: #7e6737;
  background: #f0e8d7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.rgys-about-facts > div {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  border-bottom: 1px solid var(--rgys-line);
}

.rgys-about-facts > div:nth-of-type(odd) {
  border-right: 1px solid var(--rgys-line);
}

.rgys-about-facts > div:nth-last-of-type(-n + 2) {
  border-bottom: 0;
}

.rgys-about-facts strong {
  color: #735b2e;
  font: 500 clamp(22px, 2.2vw, 30px)/1.3 var(--serif);
}

.rgys-about-facts span {
  margin-top: 8px;
  color: var(--rgys-ink);
  font-size: 13px;
}

.rgys-about-facts small {
  margin-top: 5px;
  color: var(--rgys-muted);
  font-size: 13px;
}

.rgys-about-facts-note {
  padding: 14px 20px 17px;
  border-top: 1px solid var(--rgys-line);
  color: var(--rgys-muted);
  font-size: 13px;
  line-height: 1.8;
}

.rgys-about-facts-note a {
  color: #725c32;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rgys-about .notice {
  margin: 52px 0 0;
}

.rgys-about-services {
  display: grid;
  grid-template-columns: minmax(250px, 0.64fr) minmax(0, 1.36fr);
  gap: clamp(42px, 8vw, 128px);
  align-items: start;
}

.rgys-about-section-intro > p {
  max-width: 380px;
  color: var(--rgys-muted);
  font-size: 14px;
  line-height: 2;
}

.rgys-about-service-list,
.rgys-about-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rgys-about-service-list {
  border-top: 1px solid #d8d2c4;
}

.rgys-about-service-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding: 23px 0 25px;
  border-bottom: 1px solid #d8d2c4;
}

.rgys-about-service-list > li > span,
.rgys-about-steps > li > span {
  color: #927441;
  font:
    20px/1.2 Georgia,
    serif;
}

.rgys-about-kicker {
  margin: 0 0 5px;
  color: #867044;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.rgys-about-service-list h3 {
  margin: 0 0 7px;
  color: var(--rgys-ink);
  font: 600 19px/1.5 var(--serif);
}

.rgys-about-service-list p:not(.rgys-about-kicker) {
  margin: 0;
  max-width: 650px;
  color: var(--rgys-muted);
  font-size: 16px;
  line-height: 1.9;
}

.rgys-about-delivery {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 8vw, 126px);
  align-items: start;
}

.rgys-about-delivery-head > p {
  margin: 0;
  max-width: 580px;
  color: #b8cbd2;
  font-size: 14px;
  line-height: 2;
}

.rgys-about-steps {
  counter-reset: rgys-step;
}

.rgys-about-steps li {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 27px;
  margin-bottom: 25px;
  border-bottom: 1px solid #345264;
}

.rgys-about-steps li:last-child {
  margin-bottom: 0;
}

.rgys-about-steps h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
}

.rgys-about-steps p {
  margin: 0;
  color: #b8cbd2;
  font-size: 16px;
  line-height: 1.9;
}

.rgys-about-team {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  gap: clamp(42px, 7vw, 108px);
  align-items: center;
}

.rgys-about-media {
  margin: 0;
}

.rgys-about-media > div {
  overflow: hidden;
  border-radius: var(--rgys-frame);
  background: var(--rgys-navy);
  aspect-ratio: 16 / 10;
}

.rgys-about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rgys-about-media > p {
  margin: 10px 0 0;
  color: var(--rgys-muted);
  font-size: 13px;
  line-height: 1.75;
}

.rgys-about-team-copy > p:not(.rgys-about-team-boundary) {
  max-width: 560px;
  color: var(--rgys-muted);
  font-size: 18px;
  line-height: 2;
}

.rgys-about-language-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 27px 0 30px;
}

.rgys-about-language-row span {
  border: 1px solid #d6dedc;
  border-radius: var(--radius-control, 8px / 6px);
  padding: 4px 12px;
  color: #53656b;
  font-size: 13px;
}

.rgys-about-team .author-line {
  margin: 5px 0 22px;
}

.rgys-about-team-boundary {
  color: #6d7d83;
  font-size: 16px;
  line-height: 1.9;
}

.rgys-about-office-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 42px;
  margin-bottom: 43px;
}

.rgys-about-office-heading .section-heading {
  margin-bottom: 0;
}

.rgys-about-office-heading > p {
  max-width: 420px;
  margin: 0 0 6px;
  color: var(--rgys-muted);
  font-size: 16px;
  line-height: 1.9;
}

.rgys-about-office-heading > p a {
  color: #735c2e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.office-card {
  position: relative;
  display: flex;
  min-height: 382px;
  flex-direction: column;
  padding: 27px;
  border: 1px solid #d5dedc;
  border-radius: var(--radius-frame, 10px / 7px);
  background: #fff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.office-card:hover {
  transform: translateY(-3px);
  border-color: #bba169;
  box-shadow: 0 12px 32px rgba(7, 29, 43, 0.09);
}

.office-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.office-card-topline > span {
  color: #9a7c43;
  font:
    22px/1 Georgia,
    serif;
}

.office-card-topline p {
  margin: 0;
  color: #8a774e;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-align: right;
}

.office-card h3 {
  margin: 27px 0 4px;
  color: var(--rgys-ink, #173240);
  font: 600 21px/1.5 var(--serif);
}

.office-card-scope {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 22px;
  border-radius: var(--radius-control, 8px / 6px);
  padding: 4px 10px;
  color: #765e31;
  background: #f5ecda;
  font-size: 13px;
}

.office-card address {
  display: flex;
  min-height: 98px;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  color: #4c626b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.75;
}

.office-card address small {
  color: #74848a;
  font-size: 13px;
  line-height: 1.7;
}

.office-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding: 17px 0;
  border-top: 1px solid #e2e7e6;
}

.office-card-contacts a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #385460;
  font-size: 13px;
}

.office-card-contacts a:hover strong {
  color: #956f32;
}

.office-card-contacts span {
  color: #77868a;
  font-size: 13px;
}

.office-card-contacts strong {
  font-weight: 600;
  text-align: right;
  transition: color 180ms ease;
}

.office-card-map {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #bea36e;
  padding-bottom: 4px;
  color: #735d32;
  font-size: 13px;
}

.rgys-about-visit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 26px;
  border: 1px solid #d5dedc;
  border-radius: var(--radius-frame, 10px / 7px);
  padding: 25px 29px;
  background: linear-gradient(105deg, #f9fbfa, #ecf2f1);
}

.rgys-about-visit > div > span {
  color: #887345;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.rgys-about-visit h3 {
  margin: 7px 0 4px;
  color: var(--rgys-ink, #173240);
  font: 600 20px/1.5 var(--serif);
}

.rgys-about-visit p {
  margin: 0;
  max-width: 700px;
  color: #5d7077;
  font-size: 13px;
  line-height: 1.85;
}

.rgys-about-visit .button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 11px 17px;
  font-size: 13px;
}

.rgys-about-sources {
  background: #fff;
}

.rgys-about-source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.rgys-about-source-list article {
  border-top: 2px solid #c4a667;
  padding: 22px 0 0;
}

.rgys-about-source-list article > span {
  color: #8d7444;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.rgys-about-source-list h3 {
  margin: 10px 0;
  color: var(--rgys-ink);
  font: 600 18px/1.55 var(--serif);
}

.rgys-about-source-list p {
  min-height: 92px;
  margin-bottom: 13px;
  color: var(--rgys-muted);
  font-size: 16px;
  line-height: 1.9;
}

.rgys-about-source-list .text-link {
  font-size: 13px;
}

@media (max-width: 960px) {
  .rgys-about-editorial,
  .rgys-about-services,
  .rgys-about-delivery,
  .rgys-about-team {
    grid-template-columns: 1fr;
  }

  .rgys-about-office-heading {
    display: block;
  }

  .rgys-about-office-heading > p {
    margin-top: 20px;
  }

  .office-cards,
  .rgys-about-source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-card:last-child {
    grid-column: span 2;
  }

  .rgys-about-source-list article:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .rgys-about-editorial,
  .rgys-about-services,
  .rgys-about-delivery,
  .rgys-about-team {
    gap: 36px;
  }

  .rgys-about-facts > div {
    min-height: 115px;
    padding: 18px 16px;
  }

  .rgys-about-service-list li,
  .rgys-about-steps li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
  }

  .office-cards,
  .rgys-about-source-list {
    grid-template-columns: 1fr;
  }

  .office-card:last-child,
  .rgys-about-source-list article:last-child {
    grid-column: auto;
  }

  .office-card {
    min-height: 0;
    padding: 23px;
  }

  .office-card address {
    min-height: 0;
    margin-bottom: 24px;
  }

  .rgys-about-visit {
    display: block;
    padding: 23px;
  }

  .rgys-about-visit .button {
    width: 100%;
    margin-top: 20px;
  }

  .office-card-contacts a {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .office-card-contacts strong {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .office-card,
  .office-card-contacts strong {
    transition: none;
  }

  .office-card:hover {
    transform: none;
  }
}

/* Readable office details: long labels and international numbers do not compete for one row. */
.office-card address {
  font-size: 16px;
}
.office-card-contacts a {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.office-card-contacts strong {
  text-align: left;
  font-size: 16px;
}
.rgys-about-visit p {
  font-size: 16px;
}
