/* Public site. styles.css supplies the V01-DS fonts, artwork and base controls. */
:root {
  --navy: #19384c;
  --navy-deep: #122b3a;
  --ink: #192d39;
  --text: #334047;
  --muted: #566168;
  --copper: #9b7348;
  --copper-ink: #745333;
  --ivory: #fffdf9;
  --paper: #f5f1ea;
  --paper-2: #faf7f2;
  --line: #ded7cc;
  --radius-card: 16px;
  --radius-control: 8px;
  --shadow-card: 0 14px 38px -24px rgba(54, 42, 25, .38);
  --section-space: clamp(52px, 5.6vw, 82px);
  --column-gap: clamp(32px, 5vw, 72px);
}

html { scroll-padding-top: 24px; }
body, .header, .order, .svc-page { background: var(--ivory); }
.kicker { font-size: 11px; letter-spacing: .16em; }
.btn { border-radius: 7px; }
.topbar { background: var(--paper-2); }
.header__in { min-height: 78px; padding-block: 10px; }
.brand { gap: 4px; }
.brand__name { font-size: 21px; line-height: 1.04; }
.brand__role { font-size: 9px; }
.header__cta { font-size: 14px; }
.topbar__in { padding-block: 2px; }

.hero {
  padding: clamp(38px, 3.3vw, 54px) 0 clamp(85px, 7.4vw, 116px);
}
.hero::after { background-position: center 55%; }
.hero::before {
  background: linear-gradient(90deg, rgba(248,244,236,.8), rgba(248,244,236,.38) 38%, transparent 67%);
}
.hero__title {
  margin-top: 14px;
  font-size: clamp(48px, 4.5vw, 70px);
  line-height: 1.005;
  letter-spacing: -.034em;
}
.hero__lead { align-items: center; gap: 16px; margin-top: 22px; max-width: none; font-size: 17px; }
.hero__rule { width: 32px; height: 1px; margin: 0; }
.hero__address { display: none; }

.panel { margin-top: -54px; }
.panel__card, .booking__card { border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.panel__card { --panel-inset: clamp(20px, 2vw, 28px); }
.panel__top { padding: clamp(22px, 2.3vw, 30px) var(--panel-inset); }
.panel__title, .order__title, .booking__title, .svc__title { letter-spacing: -.032em; }
.panel__title { font-size: clamp(28px, 2.7vw, 40px); }
.directory-link, .map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: #bdad99;
  text-underline-offset: .26em;
}
.directory-link { min-height: 40px; font-size: 15px; }
.directory-link .icon { width: 17px; height: 17px; }
.map-link { min-height: 32px; font-size: 14px; }
.map-link .icon { width: 14px; height: 14px; }
.directory-link:hover, .map-link:hover { text-decoration-color: currentColor; }
.tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; margin-top: 20px; gap: 7px; }
.tile {
  display: grid;
  grid-template-rows: 28px auto;
  align-content: start;
  align-items: start;
  justify-content: stretch;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-2);
  min-height: 90px;
  height: 100%;
  padding: 15px 4px 14px;
  gap: 9px;
}
.tile::after { content: none; }
.tile__icon { width: 27px; height: 27px; color: #88643d; }
.tile__label { font-size: .9rem; letter-spacing: -.01em; line-height: 1.3; text-wrap: balance; }
.tile__arrow { display: none; }
.tile:active { background: #f0e8db; }
.company-services { margin-top: 20px; }
.company-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.company-services__rows { display: none; }
.service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px clamp(14px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}
.service-card__icon { width: 23px; height: 23px; margin-top: 2px; color: var(--copper-ink); }
.service-card__body { display: flex; flex-direction: column; }
.service-card__title { margin: 0; font-family: inherit; font-size: clamp(21px, 2vw, 26px); font-weight: 700; line-height: 1.2; }
.service-card__description { max-width: 68ch; margin-top: 7px; font-size: 15px; }
.service-card__links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: auto; padding-top: 4px; }
.service-card__links .map-link { min-height: 44px; }
.service-card:focus-within { border-color: #bdad99; }
.panel__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  padding: 12px var(--panel-inset);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.panel__hours, .panel__hours p { display: flex; align-items: center; gap: 12px; }
.panel__hours { font-size: 14px; color: var(--muted); }
.panel__hours > .icon { color: var(--copper); width: 20px; height: 20px; }
.panel__hours strong { color: var(--ink); font-weight: 550; }
.panel__hours span { border-left: 1px solid var(--line); padding-left: 12px; }

.order { padding: var(--section-space) 0; }
.order__grid, .notary__grid, .office__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px var(--column-gap);
}
.order__title, .office .booking__title { margin: 0; font-size: clamp(34px, 3vw, 46px); }
.order__lead { margin-top: 14px; max-width: 34ch; }
.order__phone { margin-top: 12px; }
.order__phone .icon { color: var(--copper); }
.steps__item { grid-template-columns: 38px minmax(0,1fr); gap: 14px; padding: 18px 0; }
.steps__num { font-size: 24px; }
.steps__text { max-width: 62ch; }
.steps__text a, .catalog-other__lead a { text-decoration-color: #b9ac9a; }
.tariff {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px 28px;
  margin: 2px 0 0;
  padding: 24px;
  border-radius: 10px;
  background: var(--paper-2);
}
.tariff__intro { display: flex; align-items: flex-start; gap: 14px; }
.tariff__title { font: 600 26px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.tariff__text { margin-top: 8px; max-width: 53ch; }
.tariff__group { padding-left: 20px; border-left: 1px solid var(--line); }
.tariff__group h3 { margin-bottom: 5px; font: 600 16px/1.4 var(--font-text); color: var(--ink); }
.tariff__group .map-link { min-height: 34px; }
.tariff__source .map-link { color: var(--muted); font-size: 13px; }

.notary { padding: var(--section-space) 0; border-top: 1px solid var(--line); }
.notary__grid { align-items: start; }
.notary__title { font: 600 clamp(34px, 3vw, 46px)/1.14 var(--font-display); letter-spacing: -.032em; color: var(--ink); }
.notary__name { margin-top: 14px; font-weight: 600; color: var(--ink); }
.notary__role { margin-top: 4px; max-width: 38ch; }
.notary__intro .map-link { margin-top: 12px; }
.notary__documents { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.notary__credentials { border-top: 1px solid var(--line); }
.notary__credentials > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notary__credentials dt { color: var(--muted); font-size: 14px; line-height: 1.4; }
.notary__credentials dd { margin-top: 4px; font-size: 16px; font-weight: 550; color: var(--ink); }
.notary__credentials .notary__issuer { font-size: 13px; font-weight: 400; color: var(--muted); }
.notary__scan { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration-color: #bdad99; }
.notary__scan img { width: 96px; height: auto; border: 1px solid var(--line); background: white; }
.notary__scan > span:first-of-type { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.4; }
.notary__scan .icon { width: 14px; height: 14px; }

.office, .booking--page {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.office { padding: var(--section-space) 0; }
.office__grid { align-items: start; }
.contacts { margin-top: 20px; }
.contacts__row { grid-template-columns: 114px minmax(0,1fr); gap: 14px; padding: 12px 0; }
.contacts__row dt { align-items: baseline; color: var(--muted); font-size: 13px; }
.contacts__row dt .icon { align-self: start; margin-top: .15em; }
.contacts__row dd { color: var(--ink); font-size: 15px; }
.contacts__row dd a { padding-block: 2px; text-decoration-color: #b5a894; }
.contacts__secondary { font-size: 13px; color: var(--muted); }
.office__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.contacts-map {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9d0c2;
  border-radius: var(--radius-card);
  background: var(--ivory);
}
.contacts-map__stage { position: relative; aspect-ratio: 2 / 1; background: var(--paper); }
.contacts-map__frame, .map-preview, .map-preview__drawing, .map-preview img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contacts-map__frame.is-loading { opacity: 0; pointer-events: none; }
.map-preview { overflow: hidden; container-type: inline-size; }
.map-preview[hidden], .map-switch[hidden] { display: none; }
/* The labels are positioned on the original 2:1 street plan. The larger image
   includes the surrounding blocks for the taller appointment map. */
.map-preview__drawing {
  inset: 50% auto auto 50%;
  width: 100%;
  height: auto;
  aspect-ratio: 2;
  transform: translate(-50%, -50%);
  container-type: inline-size;
}
.map-preview img { inset: -100% 0 auto; height: 300%; }
.map-metro, .map-office-pin, .map-street { position: absolute; white-space: nowrap; }
.map-metro { width: 0; height: 0; font-size: clamp(10px, 2.4cqw, 13px); font-weight: 600; color: #47392f; }
.map-metro b {
  display: grid; place-items: center; position: absolute; width: 1.55em; height: 1.55em;
  transform: translate(-50%, -50%); background: #855044; border-radius: 50%;
  color: white; font: 700 1em/1 var(--font-text); box-shadow: 0 0 0 2px #fff9ed;
}
.map-metro span { position: absolute; padding: 0 .35em; background: #fffaf0ed; border-radius: 3px; line-height: 1.45; }
.map-metro--west { left: 14.79%; top: 25.53%; }
.map-metro--west span { left: 1.05em; bottom: -.65em; }
.map-metro--south { left: 69.57%; top: 76.38%; }
.map-metro--south span { right: -.65em; top: 1em; }
.map-metro--east { left: 86%; top: 71.17%; }
.map-metro--east span { right: -.75em; bottom: 1em; }
.map-office-pin {
  left: 44.33%; bottom: 47.29%; transform: translateY(-9px) translateX(-50%);
  padding: 6px 11px; border-radius: 5px; background: var(--navy-deep); color: #fff;
  font-size: clamp(12px, 2.8cqw, 17px); font-weight: 550; line-height: 1.35;
  box-shadow: 0 3px 8px #49381932;
}
.map-office-pin::after {
  content: ""; position: absolute; left: calc(50% - 5px); bottom: -9px;
  border: solid transparent; border-width: 9px 5px 0; border-top-color: var(--navy-deep);
}
.map-street { top: 38%; left: 5%; transform: rotate(12deg); transform-origin: left center; font-size: clamp(9px, 2.1cqw, 13px); color: #735632; text-shadow: 0 1px 2px white; }
.map-credit { position: absolute; right: 0; bottom: 0; padding: 4px 7px; background: #fffcf4ed; color: #514b41; font-size: 11px; line-height: 1.15; text-decoration: none; }
@container (max-width: 420px) {
  .map-metro--west span { left: -.65em; bottom: 1em; }
  .map-credit { top: 0; bottom: auto; }
}
.contacts-map__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.map-switch { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--ivory); color: var(--navy); font-size: 14px; font-weight: 500; }
.map-switch:hover { background: var(--paper-2); }
.map-switch .icon { width: 16px; height: 16px; color: var(--copper-ink); }
.map-status { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.map-status:empty { display: none; }
/* Inline overlay that redraws Красная Пресня over the scheme when the section
   scrolls into view. Same strokes as the static SVG, one continuous path per curb. */
.map-draw { position: absolute; inset: 0; display: block; width: 100%; height: 100%; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.map-draw__casing { stroke: #bda882; stroke-width: 9.5; }
.map-draw__line { stroke: #fff0cd; stroke-width: 7; }
/* One soft radar ring after the pin lands; hidden unless the animation plays. */
.map-office-pin::before {
  content: ""; position: absolute; left: calc(50% - 8px); bottom: -17px;
  width: 16px; height: 16px; border: 2px solid var(--navy-deep); border-radius: 50%;
  opacity: 0; pointer-events: none;
}

.booking--page { padding: 24px 0 var(--section-space); }
.appointment-heading { margin: 25px 0 28px; }
.appointment-heading .booking__title, .svc__title { font-size: clamp(38px, 3.6vw, 54px); margin: 0; line-height: 1.08; }
.appointment-heading .booking__lead { max-width: 58ch; margin-top: 12px; }
.booking__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--column-gap); align-items: stretch; }
.booking__card { min-width: 0; padding: clamp(20px, 2.25vw, 32px); border-radius: var(--radius-card); }
.appointment-office__title, .catalog-other__title {
  font: 600 clamp(24px, 2vw, 30px)/1.2 var(--font-display);
  letter-spacing: -.025em;
  color: var(--ink);
}
.form { gap: 20px; }
.form .field__input { font-size: 16px; border-radius: var(--radius-control); }
.field__error[hidden], .form[hidden], .form-result[hidden], .no-js #booking-form { display: none; }
.form-result__status { margin-top: 14px; font-size: 14px; color: var(--muted); }
.form-result__title { margin-top: 0; }
.form-result__status:empty { display: none; }
.form-fallback { font-size: 16px; }

.svc-page { padding: 24px 0 var(--section-space); }
.svc-grid { margin-top: 30px; gap: var(--column-gap); }
#catalog-title { margin-top: 26px; }
.tiles--catalog { margin-top: 26px; }
.catalog-other { margin-top: 56px; padding: 36px 0 10px; border-top: 1px solid var(--line); }
.catalog-other__lead { max-width: 66ch; margin-top: 12px; color: var(--muted); }
.catalog-other__lead a { white-space: nowrap; }
.catalog-other__list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 40px; margin-top: 26px; }
.catalog-other__list li { padding: 16px 0; border-top: 1px solid var(--line); line-height: 1.55; }
.svc__lead { margin-top: 16px; }
.svc-block { margin-top: 32px; }
.svc-block > .svc-block__note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.template-list { margin-top: 16px; border-top: 1px solid var(--line); }
.template-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.template-list__title { font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; }
.template-list__description { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.template-list__meta { margin-top: 4px; color: var(--muted); font-size: 13px; }
.template-list__download { justify-self: start; min-height: 44px; padding-inline: 14px; font-size: 14px; }
.aside-card, .tariff-card { border-radius: 12px; background: var(--paper-2); }
.aside-card__map { margin-top: 8px; }
.crumbs__item:nth-child(2):last-child { display: inline-flex; }
.footer { background: var(--ivory); }
.footer__role { max-width: 32ch; }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 18px 36px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; text-decoration-color: #c3b6a5; }
.footer__bottom { position: relative; border: 0; align-items: center; margin-top: 24px; padding-top: 10px; }
.footer__bottom::before { content: ""; position: absolute; inset: 0 var(--gutter) auto; border-top: 1px solid var(--line); }
.footer__bottom .map-link { font-size: 12px; }

@media (min-width: 1081px) {
  .topbar__in { gap: 0; }
  .topbar__item + .topbar__item { padding-left: 18px; margin-left: 18px; position: relative; }
  .topbar__item + .topbar__item::before { content: ""; position: absolute; left: 0; height: 12px; border-left: 1px solid var(--line); }
  .topbar__hours + .topbar__phone { margin-left: auto; padding-left: 0; }
  .topbar__hours + .topbar__phone::before { display: none; }
  .nav__list a { position: relative; }
  .nav__list a::after { content: ""; position: absolute; inset: auto 0 5px; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: left; }
  .nav__list a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
}

@media (max-width: 1080px) {
  .topbar__hours { display: inline-flex; }
  .header__cta { display: inline-flex; margin-left: auto; }
  .header__in { gap: 10px; }
  .js .nav {
    transform: translateY(-12px);
    opacity: 0;
    transition: opacity .18s ease-out, transform .22s var(--ease-out), visibility 0s linear .22s;
  }
  .js .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .hero__copy { max-width: none; }
  .hero__lead { max-width: 38ch; }
  .order__grid, .office__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .svc-grid { grid-template-columns: minmax(0, 1fr) minmax(245px, 33%); }
}
@media (width <= 960px) {
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .company-services__grid { display: none; }
  .company-services__rows { display: block; margin-top: 10px; }
  .tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 8px 2px;
    gap: 12px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    text-align: left;
  }
  .tile:hover { transform: none; box-shadow: none; background: var(--paper-2); }
  .tile__icon { width: 21px; height: 21px; }
  .tile__label { font-size: 15px; letter-spacing: normal; text-wrap: wrap; }
  .tile__arrow { display: block; width: 15px; height: 15px; margin-left: auto; color: var(--copper); }
}
@media (600px < width <= 960px) {
  .panel__card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "title services" "booking services" "companies companies";
    gap: 16px clamp(24px, 4vw, 40px);
    padding: clamp(20px, 3.5vw, 30px);
  }
  .panel__top { display: contents; }
  .panel__title { grid-area: title; text-wrap: balance; }
  .panel .tiles { grid-area: services; margin: 0; }
  .panel .company-services { grid-area: companies; margin-top: 0; }
  .panel__foot { grid-area: booking; align-self: start; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: transparent; }
  .panel__foot .btn { padding-inline: 12px; font-size: 15px; }
  .panel__hours { align-items: flex-start; gap: 8px; }
  .panel__hours > .icon { margin-top: 2px; }
  .panel__hours p { flex-direction: column; align-items: flex-start; gap: 2px; }
  .panel__hours span { border: 0; padding: 0; }
  .tiles--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 900px) {
  .footer__in { flex-wrap: wrap; }
  .footer__bottom { flex-direction: row; flex-wrap: wrap; }
  .crumbs__item:nth-child(2) { display: inline-flex; }
  .order__grid, .notary__grid, .office__grid, .booking__grid, .svc-grid { grid-template-columns: minmax(0,1fr); }
  .order__grid { gap: 24px; }
  .office__grid { gap: 28px; }
  .notary__grid { gap: 24px; }
  .tariff { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 24px; }
  .tariff__intro { grid-column: 1 / -1; }
  .tariff__group { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .svc-aside { position: static; }
}
@media (max-width: 600px) {
  :root { --gutter: clamp(16px, 4.7vw, 24px); --radius-card: 12px; }
  html { scroll-padding-top: 12px; }
  .topbar { display: none; }
  .header__in { min-height: 70px; padding-block: 8px; }
  .header__cta { min-height: 42px; gap: 6px; padding: 9px 12px; }
  .header__cta .icon { width: 15px; height: 15px; }
  .brand__name { font-size: 18px; }
  .brand__role { display: block; font-size: 8px; letter-spacing: .13em; }
  .burger { border-color: transparent; width: 42px; height: 42px; }
  .hero { padding: 30px 0 56px; }
  .hero::after { background-position: 62% 42%; }
  .hero::before { background: linear-gradient(90deg, rgba(249,245,237,.94), rgba(249,245,237,.84) 38%, rgba(249,245,237,.24) 73%, rgba(249,245,237,.04)); }
  .hero .kicker { font-size: 9px; letter-spacing: .13em; }
  .hero__title { margin-top: 10px; font-size: clamp(35px, 9.1vw, 48px); }
  .hero__lead { margin-top: 14px; max-width: 235px; gap: 9px; font-size: 14px; line-height: 1.45; }
  .hero__rule { width: 17px; }
  .hero__address { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-top: 1px; font-size: 13px; text-decoration-color: #ad9c83; }
  .hero__address .icon { width: 14px; height: 14px; color: var(--copper-ink); }
  .panel { margin-top: -39px; }
  .panel__top { padding: 18px 16px 8px; }
  .panel__title { font-size: clamp(24px, 6.2vw, 30px); }
  .tiles { margin-top: 12px; }
  .panel__foot { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 16px; }
  .panel__hours, .panel__hours p { gap: 7px; }
  .panel__hours { font-size: 12px; }
  .panel__hours span { padding-left: 7px; }
  .panel__hours > .icon { width: 15px; height: 15px; }
  .panel__hours p { flex-wrap: wrap; }
  .tariff { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 14px; }
  .tariff__icon { display: none; }
  .tariff__group .map-link { min-height: 40px; }
  .contacts__row { grid-template-columns: minmax(88px, .62fr) minmax(0,1.38fr); gap: 9px; }
  .contacts__row dt { gap: 6px; font-size: 12px; }
  .contacts__row dd { font-size: 14px; overflow-wrap: anywhere; }
  .notary__documents { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .notary__scan { flex-direction: row; justify-self: start; gap: 12px; }
  .notary__scan img { width: 54px; }
  .contacts-map__caption { gap: 4px 10px; padding: 8px 10px; }
  .contacts-map__caption .map-link, .map-switch { font-size: 12px; min-height: 40px; }
  .map-switch { padding-inline: 8px; }
  .booking--page, .svc-page { padding-top: 16px; }
  .appointment-heading { margin: 18px 0 20px; }
  .appointment-heading .booking__title, .svc__title { font-size: clamp(32px, 8vw, 40px); }
  .appointment-heading .booking__lead { margin-top: 9px; font-size: 15px; }
  .catalog-other__list { grid-template-columns: minmax(0,1fr); }
  .tiles--catalog { margin-top: 20px; }
  .template-list__item { grid-template-columns: minmax(0, 1fr); }
  .svc-grid { margin-top: 20px; }
  .svc-block { margin-top: 28px; }
  .footer__in { gap: 12px; }
}
@media (max-width: 360px) {
  .header__in { gap: 5px; }
  .header__cta .icon { display: none; }
  .panel__hours span { border: 0; padding: 0; }
}
@media (hover: none) {
  .tile:hover { transform: none; box-shadow: none; }
  .link-arrow:hover::after { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .contacts-map__frame { transition: opacity .2s ease-out; }
  .motion-in { animation: arrive .48s var(--ease-out) backwards; }
  .service-card.motion-in, .company-services__rows .tile.motion-in { animation-duration: .42s; }
  .service-card:nth-child(2).motion-in { animation-delay: .06s; }
  .nav__list a::after, .directory-link .icon { transition: transform .2s var(--ease-out); }
  /* Booking result lands like a notarial seal pressed onto the page. */
  .form-result:not([hidden]) { animation: stamp-in .32s cubic-bezier(.23, 1, .32, 1); }
  /* The map scene: curbs draw toward each other, the pin lands, a single ring,
     then the labels. Runs once, when .contacts-map receives .motion-in. */
  .contacts-map.motion-in .map-draw use { animation: map-draw 1.2s ease-in-out .3s backwards; }
  .contacts-map.motion-in .map-office-pin { animation: map-pin-pop .3s var(--ease-out) 1.35s backwards; }
  .contacts-map.motion-in .map-office-pin::before { animation: map-pin-ring .8s ease-out 1.7s both; }
  .contacts-map.motion-in .map-street { animation: map-fade .45s ease-out 1.75s backwards; }
  .contacts-map.motion-in .map-metro--west { animation: map-fade .45s ease-out 1.9s backwards; }
  .contacts-map.motion-in .map-metro--south { animation: map-fade .45s ease-out 2.02s backwards; }
  .contacts-map.motion-in .map-metro--east { animation: map-fade .45s ease-out 2.14s backwards; }
  @keyframes arrive {
    from { opacity: .35; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes stamp-in {
    from { opacity: 0; transform: scale(1.12) rotate(-2.5deg); }
  }
  @keyframes map-draw {
    from { stroke-dasharray: 700; stroke-dashoffset: 700; }
    to { stroke-dasharray: 700; stroke-dashoffset: 0; }
  }
  @keyframes map-pin-pop {
    from { opacity: 0; transform: translateY(-9px) translateX(-50%) scale(.55); }
    to { opacity: 1; transform: translateY(-9px) translateX(-50%); }
  }
  @keyframes map-pin-ring {
    0% { opacity: 0; transform: scale(.35); }
    30% { opacity: .45; }
    100% { opacity: 0; transform: scale(2.3); }
  }
  @keyframes map-fade {
    from { opacity: 0; }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .directory-link:hover .icon:last-child { transform: translateX(3px); }
  .service-card { transition: border-color .18s ease, background-color .18s ease; }
  .service-card:hover { border-color: #bdad99; background-color: var(--ivory); }
  .service-card__links .map-link .icon { transition: transform .18s var(--ease-out); }
  .service-card__links .map-link:hover .icon { transform: translateX(3px); }
}
/* Desktop tiles get a corner chevron that slides in on hover; the scan
   preview zooms slightly inside its frame. Touch layouts keep their static rows. */
@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
  .tile { position: relative; }
  .tile__arrow {
    display: block; position: absolute; top: 9px; right: 9px;
    width: 14px; height: 14px; color: var(--copper);
    opacity: 0; transform: translateX(-5px);
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
  }
  .tile:is(:hover, :focus-visible) .tile__arrow { opacity: 1; transform: none; }
  .notary__scan img { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
  .notary__scan:is(:hover, :focus-visible) img { transform: scale(1.045); box-shadow: 0 8px 16px -10px rgba(54, 42, 25, .5); }
}
@media (prefers-reduced-motion: reduce) {
  .js .nav, .js .nav.is-open { transition: none !important; transform: none; }
}
@media print {
  .hero, .office, .booking--page, .svc-page { background: white; }
  .hero::before, .hero::after { display: none; }
  .panel, .office, .booking--page, .svc-page { margin: 0; padding-block: 12px; }
  .header__cta, .contacts-map__frame { display: none; }
  .contacts-map.motion-in :is(.map-draw use, .map-office-pin, .map-street, .map-metro) { animation: none; }
}

/* Official services and reviews use the same columns as the office below. */
.visit-info {
  border-top: 1px solid var(--line);
  padding-block: var(--section-space);
}
.visit-info__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px var(--column-gap);
}
.visit-info__title {
  font: 600 clamp(30px, 2.9vw, 42px)/1.14 var(--font-display);
  letter-spacing: -.032em;
  color: var(--ink);
}
.resources, .reviews {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  row-gap: 20px;
  min-width: 0;
}
.resources__list {
  display: grid;
  grid-template-rows: repeat(4, auto);
  border-top: 1px solid var(--line);
}
.resources__list li { display: flex; border-bottom: 1px solid var(--line); }
.resource {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 4px 16px;
  padding: 15px 2px;
  color: var(--ink);
  text-decoration: none;
}
.resource__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.resource__desc { grid-column: 1; color: var(--muted); font-size: 14px; line-height: 1.45; }
.resource > .icon { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 16px; height: 16px; color: var(--copper-ink); }
.resource:is(:hover, :focus-visible) .resource__title { text-decoration: underline; text-underline-offset: .2em; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.reviews__head .map-link { min-height: 36px; }
.reviews__frame-wrap {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: white;
}
.reviews__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 901px) {
  .visit-info__grid { row-gap: 18px; }
  .resources, .reviews { grid-row: span 2; grid-template-rows: subgrid; row-gap: inherit; }
}
@media (max-width: 900px) {
  .visit-info__grid { grid-template-columns: minmax(0, 1fr); }
  .resources, .reviews { row-gap: 14px; }
  .reviews__frame-wrap { min-height: 430px; }
}
@media (max-width: 600px) {
  .reviews__frame-wrap { min-height: 460px; }
  .resource { padding-block: 13px; }
}

/* Privacy policy page. */
.legal-page { padding: 48px 0 72px; }
.legal-page__inner { max-width: var(--container); }
.legal-page__title { max-width: 760px; margin: 10px 0 8px; font-family: var(--font-display); font-size: clamp(34px, 4vw, 54px); line-height: 1.06; color: var(--navy); }
.legal-page__meta { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.legal-page h2 { margin: 30px 0 10px; font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--navy); }
.legal-page p { margin: 0 0 14px; max-width: 74ch; color: var(--text); line-height: 1.65; }
.legal-page a { color: var(--copper-ink); }
.legal-page__back { margin-top: 34px; }
@media (max-width: 760px) {
  .legal-page { padding: 32px 0 52px; }
}


/* Lists inside legal pages (privacy policy). */
.legal-page ul {
    margin: 0 0 16px;
    padding-left: 22px;
    max-width: 74ch;
    color: var(--text);
    line-height: 1.65;
}

.legal-page li { margin: 0 0 6px; }
.legal-page li::marker { color: var(--copper); }

.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }


