/* Адвокатская контора № 21 — временный сайт */

@font-face {
  font-family: "Old Standard TT"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/old-standard-tt-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Old Standard TT"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/old-standard-tt-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Old Standard TT"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/old-standard-tt-cyrillic-400-italic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Old Standard TT"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/old-standard-tt-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/literata-cyrillic-wght-normal.woff2) format("woff2-variations"), url(fonts/literata-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/literata-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/literata-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(fonts/literata-cyrillic-wght-italic.woff2) format("woff2-variations"), url(fonts/literata-cyrillic-wght-italic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(fonts/literata-latin-wght-italic.woff2) format("woff2-variations"), url(fonts/literata-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bordeaux: #6E1C2A;
  --ink: #1F232A;
  --muted: #5C6169;
  --rule: #DCD8D3;
  --tint: #F4EEEF;
  --paper: #FCFCFA;
  --on-bordeaux: #FCFCFA;
  --on-bordeaux-soft: #E6CDD1;
  --on-bordeaux-rule: rgba(230, 205, 209, 0.38);
  --display: "Old Standard TT", "Times New Roman", serif;
  --text: "Literata", Georgia, "Times New Roman", serif;
  --gutter: 16px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) {
  body { font-size: 18px; }
  :root { --gutter: 40px; }
}

img { max-width: 100%; }

a { color: var(--bordeaux); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.cover :focus-visible, .strip :focus-visible, .footer :focus-visible { outline-color: var(--on-bordeaux); }

::selection { background: var(--bordeaux); color: var(--on-bordeaux); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: var(--gutter); }

/* ---------- обложка главной ---------- */

.cover {
  background: var(--bordeaux);
  color: var(--on-bordeaux);
  padding: 18px 0 clamp(36px, 6vw, 64px);
}
.cover a { color: inherit; text-decoration-color: rgba(252, 252, 250, 0.45); }
.cover a:hover { text-decoration-color: currentColor; }

.cover__nav { display: flex; justify-content: flex-end; gap: 28px; font-size: 1rem; }

.cover__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 1.6rem + 7vw, 8.25rem);
  line-height: 0.96;
  letter-spacing: -0.012em;
  margin: clamp(56px, 11vw, 136px) 0 0;
}

.cover__parent {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem);
  line-height: 1.25;
  color: var(--on-bordeaux-soft);
  margin: 0.55em 0 0;
}

.cover__contacts {
  margin-top: clamp(44px, 8vw, 96px);
  padding-top: 16px;
  border-top: 1px solid var(--on-bordeaux-rule);
  display: flex; flex-wrap: wrap; gap: 4px 48px;
  font-size: 1.125rem;
}
.cover__contacts p { margin: 0; }
.cover__contacts a { white-space: nowrap; }

/* ---------- список адвокатов ---------- */

.roll { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 112px); }

.roll__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
.roll__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.2rem);
  line-height: 1.08;
  margin: 0;
}
.roll__count { margin: 0; color: var(--muted); }

.roll__groups { padding-top: 6px; }
@media (min-width: 980px) {
  .roll__groups { columns: 2; column-gap: 72px; }
}

.group {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  padding-top: 14px;
}
.group__letter {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--bordeaux);
  padding-top: 12px;
}
.group__list { list-style: none; margin: 0; padding: 0; }

.row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}
.row:hover .row__name, .row:focus-visible .row__name {
  color: var(--bordeaux);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.thumb {
  display: block; width: 64px; height: 80px;
  object-fit: cover; background: var(--tint);
}
.thumb--mono {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.45rem; letter-spacing: 0.03em;
  color: var(--bordeaux);
  border: 1px solid #E5D8DA;
}

.row__name { display: block; font-size: 1.05rem; line-height: 1.35; }
.row__surname { font-weight: 600; }
.row__reg {
  display: block; margin-top: 3px;
  font-size: 0.86rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.row__fa { display: block; margin-top: 2px; font-size: 0.86rem; color: var(--ink); }

/* ---------- полоса на страницах адвокатов ---------- */

.strip { background: var(--bordeaux); color: var(--on-bordeaux); }
.strip__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 4px 20px; padding-block: 14px;
}
.strip a { color: inherit; text-decoration-color: rgba(252, 252, 250, 0.45); }
.strip a:hover { text-decoration-color: currentColor; }
.strip__home { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; text-decoration: none; }
.strip__all { font-size: 1rem; }

/* ---------- страница адвоката ---------- */

.person { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 9vw, 112px); }

.person__grid { display: grid; gap: 28px 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .person__grid { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
}

.person__photo { max-width: 240px; }
@media (min-width: 760px) { .person__photo { max-width: none; } }

.portrait {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4;
  object-fit: cover; background: var(--tint);
}
.portrait--mono {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 3.4rem; letter-spacing: 0.03em;
  color: var(--bordeaux);
  border: 1px solid #E5D8DA;
  max-width: 132px;
}
@media (min-width: 760px) {
  .portrait--mono { max-width: 220px; font-size: 4.2rem; }
}

.person__name { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.04; }
.person__surname { display: block; font-size: clamp(2.6rem, 1.7rem + 3.4vw, 4.4rem); letter-spacing: -0.01em; }
.person__given { display: block; font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.3rem); margin-top: 0.2em; }

.fa-notice {
  margin: 28px 0 0;
  padding: 0.45em 0.6em;
  border: 2px solid var(--ink);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 2em;            /* вдвое крупнее основного текста страницы */
  line-height: 1.22;
  font-weight: 500;
}

.person__status { margin: 26px 0 0; }
.person__reg { margin: 2px 0 0; color: var(--muted); }

.person__contacts {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 28px;
  margin: 28px 0 0; padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.person__contacts dt { grid-column: 1; color: var(--muted); }
.person__contacts dd { grid-column: 2; margin: 0; overflow-wrap: anywhere; }
.person__contacts a { white-space: nowrap; }
.js-mail-note { color: var(--muted); font-size: 0.9em; }

.person__via {
  margin: 28px 0 0; padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.person__via a { white-space: nowrap; }

.person__bio {
  max-width: 40em;
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 26px;
  border-top: 2px solid var(--ink);
  line-height: 1.7;
  hyphens: auto;
}
.person__bio p { margin: 0 0 1em; }
.person__bio ul { margin: -0.4em 0 1.1em; padding-left: 1.15em; }
.person__bio li { margin: 0.3em 0; padding-left: 0.2em; }
.person__bio li::marker { color: var(--bordeaux); }
.person__bio strong { font-weight: 620; }
.person__bio > :last-child { margin-bottom: 0; }

/* ---------- подвал с контактами ---------- */

.footer {
  background: var(--bordeaux);
  color: var(--on-bordeaux);
  padding: clamp(48px, 7vw, 80px) 0 28px;
}
.footer a { color: inherit; text-decoration-color: rgba(252, 252, 250, 0.5); }
.footer a:hover { text-decoration-color: currentColor; }

.footer__grid { display: grid; gap: 18px 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) {
  .footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.footer__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.7rem); line-height: 1.08;
  margin: 0;
}
.footer__body p { margin: 0; }
.footer__address { font-family: var(--display); font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem); line-height: 1.25; }
.footer__phone { font-family: var(--display); font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem); line-height: 1.3; margin-top: 4px !important; }
.footer__phone a { white-space: nowrap; }
.footer__mail { font-size: 1.125rem; margin-top: 8px !important; }
.footer .js-mail-note { color: var(--on-bordeaux-soft); }
.footer__map { display: inline-block; margin-top: 16px; }
.footer__legal {
  grid-column: 1 / -1;
  margin: 28px 0 0; padding-top: 16px;
  border-top: 1px solid var(--on-bordeaux-rule);
  font-size: 0.875rem; color: var(--on-bordeaux-soft);
  display: grid; gap: 10px 56px; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) {
  .footer__legal { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.footer__legal p { margin: 0; }
.footer__links {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px;
}
.footer__links a { color: var(--on-bordeaux); }

/* ---------- 404 ---------- */

.notfound { padding: clamp(48px, 9vw, 120px) 0; }
.notfound__title { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 1.7rem + 3vw, 4rem); line-height: 1.05; margin: 0 0 0.4em; }
.notfound p { max-width: 36em; margin: 0; }

@media print {
  .cover, .strip, .footer { background: none; color: #000; }
  .cover a, .strip a, .footer a { color: #000; }
  .skip, .cover__nav, .strip__all { display: none; }
}
