.amethyst-contacts-page #content.content-page { padding-top: 0; }

.amethyst-contacts-page :is(.content-hero, .breadcrumbs, .prose) {
  width: min(1280px, calc(100% - 2 * clamp(18px, 3vw, 32px)));
}

.amethyst-contacts-page .content-hero {
  padding-top: clamp(105px, 10vw, 130px);
  padding-bottom: 12px;
}

.amethyst-contacts-page .content-hero .kicker { display: none; }
.amethyst-contacts-page .content-hero h1 {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.04;
}

.amethyst-contacts-page .prose {
  padding: clamp(26px, 3vw, 40px) 0 clamp(54px, 8vw, 96px);
}

.amethyst-contact-branch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 28px clamp(28px, 6vw, 84px);
  align-items: start;
}

.amethyst-contact-branch + .amethyst-contact-branch {
  margin-top: clamp(50px, 8vw, 96px);
}

.amethyst-contact-branch h2 {
  margin: 0 0 26px;
  font: 500 clamp(28px, 4vw, 38px)/1.1 var(--display, sans-serif);
  letter-spacing: -.03em;
}

.amethyst-contact-branch h3 {
  margin: 0 0 6px;
  font: 500 clamp(24px, 3vw, 34px)/1.17 var(--display, sans-serif);
  letter-spacing: -.02em;
}

.amethyst-contact-branch__facts {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.amethyst-contact-branch__facts dt {
  color: #655d6a;
  font-size: 13px;
}

.amethyst-contact-branch__facts dd {
  margin: 2px 0 0;
  color: var(--ink, #242325);
  font-size: 17px;
}

.amethyst-contact-branch__facts a { color: inherit; }
.amethyst-contact-branch .btn { max-width: 100%; text-decoration: none; }
.amethyst-contact-branch__metro { margin: 0 0 16px; }
.amethyst-contact-map { width: 100%; background: #eae4ee; }
.amethyst-contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(330px, 45vw, 480px);
  border: 0;
}

.amethyst-contact-branch__route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 12px;
}

.amethyst-contact-branch__map-link { font-size: 15px; }

.amethyst-contact-branch__steps { margin-top: 20px; }
.amethyst-contact-branch__steps summary { cursor: pointer; font-size: 15px; }
.amethyst-contact-branch__steps ol { margin-top: 10px; }
.amethyst-contact-branch__steps li + li { margin-top: 6px; }
.contact-data .amethyst-home-contact-link {
  display: inline-block;
  margin-top: 5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.amethyst-footer-phone { white-space: nowrap; }

.amethyst-cookie-notice {
  position: fixed;
  z-index: 100;
  inset-inline-start: clamp(12px, 3vw, 32px);
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px 20px;
  align-items: center;
  width: max-content;
  max-width: min(515px, calc(100% - 2 * clamp(12px, 3vw, 32px)));
  padding: 14px 16px;
  border: 1px solid #d4cbd9;
  background: #f2edf4;
  color: #2b2530;
  box-shadow: 0 8px 30px #23162a22;
}

.amethyst-cookie-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
}

.amethyst-cookie-notice a {
  color: #584266;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.amethyst-cookie-notice .btn {
  flex: none;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 14px;
}

.amethyst-cookie-notice[hidden] { display: none; }

footer .footer-grid a[data-amethyst-legal-open][aria-haspopup="dialog"] { display: block; }

.amethyst-legal-dialog {
  width: min(700px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  padding: clamp(24px, 5vw, 46px);
  overflow: auto;
  overflow-wrap: anywhere;
}

.amethyst-legal-dialog .modal-close {
  top: 12px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
}

.amethyst-legal-dialog a {
  color: var(--amethyst-plum, #614568);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.amethyst-legal-content :is(h2, h3) {
  margin: 24px 0 12px;
  font: 500 clamp(20px, 2.5vw, 24px)/1.2 var(--display, sans-serif);
}

.amethyst-legal-dialog .amethyst-legal-content > h2:first-child {
  margin: 0 34px 24px 0;
  font-size: clamp(26px, 4vw, 38px);
}

.amethyst-legal-content dl { margin: 0 0 18px; }
.amethyst-legal-content dt { font-weight: 650; }
.amethyst-legal-content dd { margin: 2px 0 12px; }
.amethyst-legal-content details { margin: 16px 0; }
.amethyst-legal-content summary { cursor: pointer; }

/* One compact requisites layout for the document page and its footer dialog.
 * Keep the details readable; reduce height through aligned label/value rows. */
:is(#requisites.amethyst-legal-content, #amethyst-legal-details .amethyst-legal-content) > h2:first-child {
  margin-bottom: 16px;
}

:is(#requisites.amethyst-legal-content, #amethyst-legal-details .amethyst-legal-content) > h3 {
  margin: 20px 0 12px;
}

:is(#requisites.amethyst-legal-content, #amethyst-legal-details .amethyst-legal-content) > h2 + h3 {
  margin-top: 0;
}

:is(#requisites.amethyst-legal-content, #amethyst-legal-details .amethyst-legal-content) dl {
  display: grid;
  grid-template-columns: minmax(160px, .65fr) minmax(0, 1.35fr);
  gap: 8px 20px;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
}

:is(#requisites.amethyst-legal-content, #amethyst-legal-details .amethyst-legal-content) :is(dt, dd) {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

:is(#requisites.amethyst-legal-content, #amethyst-legal-details .amethyst-legal-content) > dl:last-child {
  margin-bottom: 0;
}

#amethyst-legal-details {
  padding: clamp(24px, 4vw, 32px);
}

@media (max-width: 720px) {
  .amethyst-contact-branch { grid-template-columns: minmax(0, 1fr); }
  .amethyst-contact-branch h2 { margin-bottom: 18px; }
}

@media (max-width: 560px) {
  :is(#requisites.amethyst-legal-content, #amethyst-legal-details .amethyst-legal-content) dl {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  :is(#requisites.amethyst-legal-content, #amethyst-legal-details .amethyst-legal-content) dd + dt {
    margin-top: 8px;
  }
}

@media (max-width: 390px) {
  .amethyst-cookie-notice { align-items: flex-start; flex-direction: column; }
}
