:root {
  --color-text: #000000;
  --color-accent: #9a8103;
  --color-nav-text: #5c5c5c;
  --color-muted: #4f4f4f;
  --color-line: #9a8103;
  --color-nav-bg: rgba(154, 129, 3, 0.2);
  --color-cookie: rgba(28, 25, 20, 0.94);
  --color-white: #ffffff;
  --font-main: Arial, Helvetica, sans-serif;
  --font-size-h1: clamp(30px, 3.2vw, 42px);
  --font-size-main-subtitle: clamp(22px, 2vw, 28px);
  --font-size-section-title: clamp(24px, 2.25vw, 34px);
  --font-size-subsection-title: 19px;
  --font-size-intro: 16px;
  --font-size-title: 30px;
  --font-size-subtitle: 24px;
  --font-size-ui: 20px;
  --font-size-body: 17px;
  --line-height-body: 1.4;
  --reading-width: 800px;
  --page-padding: 30px;
  --column-gap: 30px;
}

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

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

body.menu-open {
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20000;
  padding: 10px 14px;
  background: var(--color-white);
  color: var(--color-text);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.cookie-notice {
  position: fixed;
  right: 25%;
  bottom: 14px;
  left: 25%;
  z-index: 15000;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 7px;
  background: var(--color-cookie);
  color: var(--color-white);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}

.cookie-notice p {
  margin: 0;
}

.cookie-notice a {
  text-decoration: underline;
}

.cookie-notice button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  cursor: pointer;
}

.site-header {
  padding: 12px 18px;
  background: var(--color-white);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(255px, 1fr) minmax(470px, 1.7fr) 48px;
  gap: 24px;
  align-items: center;
  min-height: 76px;
}

.brand {
  justify-self: start;
}

.brand img {
  width: 255px;
}

.header-contact-panel {
  min-width: 0;
  text-align: center;
}

.header-contact-panel__links {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
}

.header-contact {
  position: relative;
  display: inline-flex;
  min-width: 220px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 3px;
  color: var(--color-accent);
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: var(--font-size-subtitle);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}

.header-contact:hover,
.header-contact:focus-visible {
  background: var(--color-accent);
  color: var(--color-white);
}

.menu-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 200;
  top: calc(100% + 7px);
  left: 50%;
  width: max-content;
  max-width: 210px;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu-toggle:hover::after,
.menu-toggle:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.telegram-link {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 50%;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.telegram-link {
  color: var(--color-accent);
}

.telegram-link:hover,
.telegram-link:focus-visible {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

.telegram-link svg {
  display: block;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  position: relative;
  display: none;
  flex-direction: column;
  gap: 7px;
  align-items: stretch;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--color-nav-bg);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

.menu-toggle span {
  display: block;
  height: 7px;
  background: var(--color-nav-text);
}

.site-navigation {
  position: relative;
  z-index: 100;
  height: 38px;
  border: 0;
  background: var(--color-accent);
}

.site-navigation ul {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 100%;
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.site-navigation li {
  height: 100%;
  margin: 0;
  transition: background-color 160ms ease;
}

.site-navigation a {
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 9px;
  color: var(--color-white);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-navigation li:hover,
.site-navigation li:focus-within {
  background: var(--color-white);
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
  color: var(--color-accent);
  text-decoration: none;
}

.site-navigation__close {
  display: none;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  column-gap: var(--column-gap);
  padding: 13px var(--page-padding) 0;
}

.main-primary,
.main-secondary {
  min-width: 0;
}

.intro {
  grid-area: intro;
  align-self: start;
}

.intro h1 {
  margin: 0;
  padding: 0 0 1px;
  border-bottom: 2px solid var(--color-line);
  color: var(--color-accent);
  font-size: var(--font-size-title);
  font-weight: 700;
  line-height: 1.1875;
  text-wrap: balance;
}

.intro__tagline {
  margin: 1px 0 23px;
  color: var(--color-accent);
  font-size: var(--font-size-subtitle);
  font-weight: 700;
  line-height: 1.1875;
  text-wrap: balance;
}

.intro__experience,
.intro__practices {
  font-size: var(--font-size-ui);
  line-height: 1.3;
}

.intro__experience {
  margin: 0 0 24px;
}

.intro__practices {
  margin: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.intro__practices a {
  display: inline-block;
  padding: 3px 5px;
  color: var(--color-accent);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.intro__practices a:hover,
.intro__practices a:focus-visible {
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

.portrait {
  margin: 0 0 18px;
}

.portrait img {
  width: 75%;
  max-width: 290px;
  margin-right: auto;
  margin-left: auto;
}

.credentials {
  margin-top: 18px;
}

.credentials p {
  margin: 0;
  font-size: var(--font-size-body);
  line-height: 1.45;
}

.primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 16px;
  padding: 14px 10px;
  border: 1px solid var(--color-accent);
  background: rgba(154, 129, 3, 0.1);
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--font-size-ui);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  background: var(--color-text);
  color: var(--color-white);
}

.button__label-short {
  display: none;
}

.office-card {
  margin-bottom: 18px;
  color: var(--color-text);
  font-size: var(--font-size-body);
  line-height: 1.35;
  text-align: center;
}

/* Текст в карточке не должен расширять её или страницу. */
.office-card,
.office-card__item,
.office-card__item > span,
.office-card__item strong,
.office-card__schedule {
  min-width: 0;
  max-width: 100%;
}

.office-card__item > span,
.office-card__item strong,
.office-card__schedule {
  overflow-wrap: anywhere;
  word-break: normal;
}

.office-card p {
  margin: 0 0 20px;
}

.office-card__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.office-card__icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.office-card__icon svg,
.news-column__icon svg,
.footer-contacts svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.office-card__icon--metro {
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  font-size: 16px;
}

.office-card__icon--parking {
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  font-size: 20px;
}

.office-card__schedule {
  padding-top: 4px;
}

.content-column {
  width: 100%;
  max-width: var(--reading-width);
  min-width: 0;
}

.content-section {
  margin: 0 0 32px;
}

.content-section h2 {
  margin: 0 0 16px;
  padding: 0 0 3px;
  border-bottom: 2px solid var(--color-line);
  color: var(--color-accent);
  font-size: var(--font-size-section-title);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.content-section h3 {
  margin: 24px 0 8px;
  color: var(--color-accent);
  font-size: var(--font-size-subsection-title);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.content-section p,
.content-section li {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.content-section p {
  margin: 0 0 16px;
}

.timeline,
.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li,
.experience-list li {
  margin: 0 0 16px;
}

.primary-actions--bottom {
  display: grid;
  margin-top: 44px;
}

.news-column {
  min-width: 0;
}

.telegram-subscribe { position: relative; overflow: hidden; margin: 20px 0 10px; padding: 18px; border: 1px solid rgba(154, 129, 3, 0.52); background: linear-gradient(135deg, rgba(202, 164, 56, 0.25), rgba(255, 252, 239, 0.96) 76%); box-shadow: 0 8px 22px rgba(92, 69, 11, 0.1); text-align: left; }
.telegram-subscribe__eyebrow { margin: 0 0 8px !important; color: var(--color-accent) !important; font-size: 11px !important; font-weight: 800; letter-spacing: 0.12em; line-height: 1.2 !important; text-transform: uppercase; }
.telegram-subscribe__heading { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; color: var(--color-text); }
.telegram-subscribe__heading svg { box-sizing: content-box; width: 25px; height: 25px; padding: 7px; border-radius: 50%; background: var(--color-accent); fill: none; stroke: #fff; stroke-width: 1.7; }
.telegram-subscribe__heading strong { font-size: 17px; line-height: 1.25; }
.telegram-subscribe p { margin: 0 0 10px; color: var(--color-text); font-size: 14px; line-height: 1.45; }
.telegram-subscribe__benefit { padding-top: 9px; border-top: 1px solid rgba(154, 129, 3, 0.28); color: var(--color-muted) !important; }
.telegram-subscribe__benefit strong { color: var(--color-text); font-size: inherit; }
.telegram-subscribe a { display: flex; justify-content: center; width: 100%; padding: 9px 12px; border: 1px solid var(--color-accent); background: var(--color-accent); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.telegram-subscribe a:hover, .telegram-subscribe a:focus-visible { background: #fff; color: var(--color-accent); }
.telegram-subscribe--mobile-only { display: none; }

.news-column > h2 {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 16px 0 16px;
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1.4;
  text-transform: uppercase;
}

.news-column__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  text-decoration: none;
}

.news-column__title {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-item {
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(154, 129, 3, 0.22);
  font-size: 15px;
  line-height: 1.4;
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
}

.news-item h3 a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.news-item h3 a:hover,
.news-item h3 a:focus-visible {
  text-decoration: underline;
}

.news-item time {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.news-item p {
  margin: 0 0 12px;
}

.news-item__more {
  display: flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin: 4px 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.news-item__more:hover,
.news-item__more:focus-visible {
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

.news-pagination {
  display: flex;
  gap: 6px;
  margin: 8px 0 24px;
}

.news-pagination button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--color-accent);
  background: var(--color-white);
  color: var(--color-accent);
  cursor: pointer;
}

.news-pagination button.is-active {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Пагинация остаётся только на отдельной странице публичного блога. */
body.tindex-page:not(.blog-index-page) .news-pagination {
  display: none !important;
}

.contact-section {
  margin-top: 24px;
  border-top: 1px solid rgba(154, 129, 3, 0.35);
}

.contact-section__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 30px 18px;
  text-align: center;
}

.contact-section h2 {
  margin: 0 0 4px;
  font-size: var(--font-size-ui);
  line-height: 1.2;
}

.contact-section p,
.contact-section address {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: var(--font-size-body);
  font-style: normal;
  line-height: 1.2;
}

.contact-section a {
  font-weight: 700;
  text-decoration: none;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
}

.footer-contacts a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--color-accent);
}

.footer-contacts a:hover,
.footer-contacts a:focus-visible {
  color: var(--color-text);
}

.footer-contacts svg {
  width: 22px;
  height: 22px;
}

.footer-consultation {
  width: min(300px, 100%);
  margin: 0 auto 16px;
}

.map-section {
  padding: 0 10px 16px;
  text-align: center;
}

.map-section iframe {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 180px;
  margin: 0 auto;
  border: 1px solid rgba(154, 129, 3, 0.35);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
  transition: max-width 420ms ease, height 420ms ease, box-shadow 180ms ease;
}

.map-section iframe:hover,
.map-section iframe:focus {
  max-width: 100%;
  height: 300px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.site-footer {
  min-height: 54px;
  padding: 15px 30px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: var(--font-size-body);
  line-height: 1.3;
}

.site-footer p + p {
  margin-top: 8px;
}

.site-footer__privacy {
  color: var(--color-accent);
  font-weight: 700;
  text-underline-offset: 2px;
}

.site-footer__privacy:hover,
.site-footer__privacy:focus-visible {
  color: var(--color-text);
}

/* Общая форма консультации — полностью изолирована от страницы. */
.call-bar {
  display: none !important;
}

.lead-modal {
  --lead-text: #000000;
  --lead-bg: #ffffff;
  --lead-accent: #9a8103;
  --lead-muted: #4f4f4f;
  --lead-line: #d5cda6;
  position: fixed;
  inset: 0;
  z-index: 16000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.6);
  color: var(--lead-text);
  font-family: var(--font-main);
}

.lead-modal[hidden] {
  display: none !important;
}

.lead-modal.is-open {
  display: flex;
}

.lead-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 18px 20px 14px;
  border-top: 4px solid var(--lead-accent);
  background: var(--lead-bg);
}

.lead-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lead-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lead-modal .lead-modal__dialog h2 {
  margin: 0 0 4px;
  color: var(--lead-text);
  font-family: var(--font-main);
  font-size: 22px;
  line-height: 1.25;
}

.lead-modal__sub {
  margin: 0 0 8px;
  color: var(--lead-muted);
  font-size: 14px;
  line-height: 1.25;
}

.lead-modal__call {
  display: block;
  margin-bottom: 8px;
  padding: 8px 12px;
  border: 1px solid var(--lead-line);
  background: var(--color-white);
  text-align: center;
  text-decoration: none;
}

.lead-modal__call span {
  display: block;
  margin-bottom: 2px;
  color: var(--lead-muted);
  font-size: 13px;
}

.lead-modal__call b {
  color: var(--lead-accent);
  font-size: 20px;
  white-space: nowrap;
}

.lead-modal__or {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  color: var(--lead-muted);
  font-size: 14px;
  text-align: center;
}

.lead-modal__or::before,
.lead-modal__or::after {
  content: "";
  position: static;
  flex: 1 1 auto;
  width: auto;
  height: 1px;
  background: var(--lead-line);
}

.lead-modal__or::before { left: 0; }
.lead-modal__or::after { right: 0; }

.lead-field {
  margin-bottom: 8px;
}

.lead-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.2;
}

.lead-field .req,
.lead-consent .req {
  color: var(--lead-accent);
}

.lead-field input[type="text"],
.lead-field input[type="tel"],
.lead-field input[type="email"],
.lead-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--lead-line);
  border-radius: 2px;
  background: var(--color-white);
  color: var(--lead-text);
  font: 16px/1.25 var(--font-main);
}

.lead-field textarea {
  min-height: 60px;
  height: 60px;
  resize: vertical;
}

.lead-field.has-error input,
.lead-field.has-error textarea {
  border: 2px solid var(--lead-accent);
}

.lead-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 6px;
  font-size: 12px;
  line-height: 1.25;
}

.lead-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.lead-submit {
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 2px;
  background: var(--lead-accent);
  color: var(--color-white);
  font: 700 16px/1 var(--font-main);
  cursor: pointer;
}

.lead-submit:hover {
  background: var(--lead-text);
}

.lead-submit[disabled] {
  opacity: 0.6;
  cursor: default;
}

.lead-note {
  display: none;
  color: var(--lead-muted);
  font-size: 15px;
  line-height: 1.4;
}

.lead-msg {
  display: none;
  margin-top: 16px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.lead-msg.is-ok,
.lead-msg.is-fail {
  display: block;
  background: var(--color-white);
}

.lead-msg.is-ok { border-left: 3px solid var(--lead-accent); }
.lead-msg.is-fail { border-left: 3px solid var(--lead-text); }

.lead-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1400px) {
  .site-header__inner {
    grid-template-columns: 255px minmax(0, 1fr) 44px 54px;
    gap: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .menu-toggle::after {
    right: 0;
    left: auto;
    transform: translateY(-4px);
  }

  .menu-toggle:hover::after,
  .menu-toggle:focus-visible::after {
    transform: translateY(0);
  }

  .site-navigation {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: block;
    height: auto;
    overflow: hidden;
    border: 0;
    background: rgba(0, 0, 0, 0.56);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 260ms ease;
  }

  .site-navigation.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-navigation ul {
    display: block;
    width: min(410px, 86vw);
    height: 100%;
    min-height: 100%;
    margin-left: auto;
    padding: 76px 24px 24px;
    overflow-y: auto;
    background: var(--color-accent);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.22);
    transform: translateX(100%);
    transition: transform 300ms ease;
  }

  .site-navigation.is-open ul {
    transform: translateX(0);
  }

  .site-navigation li {
    height: auto;
    border-bottom: 0;
  }

  .site-navigation a {
    min-height: 52px;
    padding: 12px 6px;
    color: var(--color-white);
    font-size: var(--font-size-body);
    line-height: 1.25;
    white-space: normal;
  }

  .site-navigation__close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;
    display: block;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--color-white);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .button__label-full {
    display: none;
  }

  .button__label-short {
    display: inline;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: minmax(255px, 1fr) 44px 54px;
    grid-template-rows: auto auto;
    row-gap: 8px;
    min-height: 118px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-contact-panel {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-contact-panel__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
  }

  .header-contact {
    min-width: 0;
  }

  .telegram-link {
    grid-column: 2;
    grid-row: 1;
  }

  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (min-width: 761px) and (max-width: 850px) {
  .primary-actions,
  .primary-actions--bottom {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 324px);
  }
}

@media (max-width: 760px) {
  :root {
    --font-size-title: 27px;
    --font-size-subtitle: 22px;
    --font-size-body: 17px;
    --line-height-body: 1.4;
    --page-padding: 29px;
  }

  .cookie-notice {
    right: 10px;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
  }

  .site-header {
    padding: 12px 15px;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) 54px;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    min-height: 132px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .brand img {
    width: 270px;
  }

  .header-contact-panel {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-contact-panel__links {
    width: 100%;
    gap: 12px;
    justify-content: space-between;
    padding: 0 4px;
    transform: none;
  }

  .header-contact {
    min-width: 0;
    padding: 5px 2px;
    font-size: var(--font-size-ui);
  }

  .telegram-link {
    display: none;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 54px;
    height: 54px;
    padding: 5px;
  }

  .main-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 7px;
  }

  .main-primary,
  .main-secondary {
    display: contents;
  }

  .intro { order: 1; }
  .portrait { order: 2; }
  .credentials { order: 3; }
  .main-primary > .primary-actions { order: 4; }
  .office-card { order: 5; }
  .content-column { order: 6; }
  .telegram-subscribe { order: 7; }
  .news-column { order: 8; }
  .telegram-subscribe--mobile-only { display: block; }

  .intro__tagline {
    margin-bottom: 20px;
    font-size: var(--font-size-ui);
    line-height: 1.1;
  }

  .intro__practices {
    font-size: var(--font-size-body);
    line-height: 1.15;
  }

  .portrait {
    margin: 28px 0 24px;
  }

  .portrait img {
    width: 230px;
    margin: 0 auto;
  }

  .credentials p {
    margin-bottom: 24px;
    line-height: 1.3;
  }

  .primary-actions,
  .primary-actions--bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: min(100%, 324px);
    justify-content: center;
    margin: 12px auto 18px;
    padding: 12px 8px;
  }

  .primary-actions--bottom {
    margin-top: 44px;
  }

  .button {
    min-height: 44px;
  }

  .office-card {
    margin-bottom: 22px;
    line-height: 1.35;
  }

  .office-card p {
    margin-bottom: 18px;
  }

  .content-section {
    margin-bottom: 28px;
  }

  .news-column {
    display: block;
    margin-top: 4px;
  }

  .contact-section__inner {
    padding: 20px 29px;
  }

  .contact-section h2,
  .contact-section p,
  .contact-section address {
    line-height: 1.3;
  }

  .map-section {
    padding: 0 10px 14px;
  }

  .map-section iframe {
    max-width: 320px;
    height: 160px;
  }

  .map-section iframe:hover,
  .map-section iframe:focus {
    height: 260px;
  }

  .lead-modal {
    padding: 6px;
  }

  .lead-modal__dialog {
    padding: 16px 12px 12px;
  }

  .lead-modal__call b {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .header-contact-panel__links {
    gap: 12px;
    transform: none;
  }

  .button__label-full {
    display: none;
  }

  .button__label-short {
    display: inline;
  }

  .brand img {
    width: 250px;
  }

  .cookie-notice {
    gap: 10px;
  }
}

/* Единая типографическая шкала публичных страниц. */
@media (max-width: 760px) {
  :root {
    --font-size-h1: clamp(27px, 8.3vw, 32px);
    --font-size-main-subtitle: clamp(20px, 6.15vw, 24px);
    --font-size-section-title: clamp(22px, 6.67vw, 26px);
    --font-size-subsection-title: 17px;
    --font-size-intro: 16px;
    --font-size-body: 16px;
  }
}

.contacts-page {
  background: var(--color-bg);
}

.contacts-main {
  width: calc(100% - 48px);
  max-width: none;
  margin: 0 auto;
  padding: 28px 0 42px;
}

.contacts-breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: 14px;
}

.contacts-breadcrumbs a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.contacts-hero {
  max-width: none;
  margin-bottom: 32px;
}

.contacts-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contacts-hero h1 {
  width: 100%;
  margin: 0 0 14px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--color-muted);
  font-size: var(--font-size-h1);
  line-height: 1.08;
  text-align: left;
}

.contacts-hero__subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-intro);
  font-weight: 600;
  line-height: 1.5;
}

.contacts-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.contacts-actions .button {
  width: min(310px, 100%);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 24px;
  border: 1px solid rgba(154, 129, 3, 0.32);
  background: var(--color-white);
}

.contact-card h2,
.contacts-practices h2,
.contacts-map h2 {
  margin: 0 0 16px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--color-muted);
  font-size: var(--font-size-section-title);
  line-height: 1.2;
}

.contact-card p,
.contact-card address,
.contact-card li {
  color: var(--color-text);
  font-size: 16px;
  font-style: normal;
  line-height: 1.5;
}

.contact-card p {
  margin: 0 0 10px;
}

.contact-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.contact-card li::marker {
  color: var(--color-accent);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.contact-list div {
  display: grid;
  gap: 2px;
}

.contact-list dt {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
}

.contact-list a,
.contacts-practices a,
.contacts-map a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.contacts-practices,
.contacts-map {
  margin-top: 30px;
}

.contacts-practices > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contacts-practices a {
  padding: 12px 14px;
  border: 1px solid var(--color-accent);
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.contacts-practices a:hover,
.contacts-practices a:focus-visible {
  background: var(--color-accent);
  color: var(--color-white);
}

.contacts-map iframe {
  display: block;
  width: 100%;
  border: 1px solid rgba(154, 129, 3, 0.35);
}

.contacts-map p {
  margin: 10px 0 0;
  text-align: right;
}

@media (max-width: 760px) {
  .contacts-main {
    width: calc(100% - 24px);
    padding-top: 20px;
  }

  .contacts-grid,
  .contacts-practices > div {
    grid-template-columns: 1fr;
  }

  .contacts-actions {
    display: grid;
  }

  .contacts-actions .button {
    width: 100%;
  }

  .contact-card {
    padding: 20px 16px;
  }

  .contacts-map iframe {
    height: 320px;
  }
}

/* Shared public-site typography: local fonts only, no external CDN. */
@font-face {
  font-family: "Onest Local";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest Local";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/onest-latin.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: "Roboto Serif Local";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/roboto-serif-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Roboto Serif Local";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/roboto-serif-latin.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 {
  --font-main: "Onest Local", Onest, "Segoe UI", Arial, Helvetica, sans-serif;
  --site-heading-font: "Roboto Serif Local", "Roboto Serif", Georgia, "Times New Roman", serif;
  --site-gold: #9a8103;
  --site-graphite: #3f403c;
  --site-muted: #66665f;
  --site-white: #ffffff;
  --site-soft-gold: rgba(154, 129, 3, .15);
  --color-text: #3f403c;
  --color-muted: #66665f;
  --color-nav-text: #3f403c;
  --color-accent: #9a8103;
  --color-line: #9a8103;
  --color-white: #ffffff;
  --concept-text: #3f403c;
  --concept-muted: #66665f;
  --concept-gold: #9a8103;
  --concept-line: #9a8103;
  --site-element-gap: 12px;
}

body.tindex-page {
  color: #3f403c;
  font-family: var(--font-main);
}

body.tindex-page h1,
body.tindex-page h2 {
  color: #3f403c;
  font-family: var(--site-heading-font);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: .005em;
  word-spacing: normal;
}

body.tindex-page h3,
body.tindex-page .button,
body.tindex-page .site-navigation,
body.tindex-page .header-contact,
body.tindex-page .telegram-link,
body.tindex-page .office-identity,
body.tindex-page .credentials {
  font-family: var(--font-main);
}

body.tindex-page h3 {
  letter-spacing: 0;
  word-spacing: normal;
}

body.tindex-page .intro__tagline {
  letter-spacing: -.012em;
  word-spacing: normal;
}

body.tindex-page .credentials__mobile > span:first-child {
  font-family: var(--font-main);
  letter-spacing: -.045em;
  word-spacing: -.1em;
}

body.tindex-page .office-identity {
  letter-spacing: .025em;
}

/* Единая система публичного сайта. Эталон геометрии и состояний — index.php. */
body.tindex-page {
  background: var(--site-white);
  color: var(--site-graphite);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.48;
  --card-gap: var(--site-element-gap);
  --block-gap: var(--site-element-gap);
}

body.tindex-page h1,
body.tindex-page h2,
body.tindex-page h3 {
  color: var(--site-graphite);
}

body.tindex-page h1,
body.tindex-page h2 {
  font-family: var(--site-heading-font);
  font-weight: 600;
  letter-spacing: .005em;
}

body.tindex-page h3,
body.tindex-page p,
body.tindex-page li,
body.tindex-page a,
body.tindex-page button,
body.tindex-page input,
body.tindex-page textarea,
body.tindex-page select {
  font-family: var(--font-main);
}

body.tindex-page .site-header {
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--site-white);
}

body.tindex-page .office-identity {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 24px 7px;
  border: 0;
  color: var(--site-gold);
  font-size: clamp(13px, 1.15vw, 18px);
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

body.tindex-page .office-identity__cabinet { display: none; }

body.tindex-page .site-header__inner {
  width: min(1480px, calc(100% - 64px));
  min-height: 88px;
  margin: 0 auto;
  padding: 9px 0;
  grid-template-columns: 270px minmax(520px, 1fr) 132px;
  gap: 24px;
}

body.tindex-page .brand img {
  width: calc(100% + 8px);
  max-width: none;
  background: transparent;
  mix-blend-mode: multiply;
}

body.tindex-page .header-contact,
body.tindex-page .telegram-link {
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-stretch: condensed;
  font-weight: 600;
  letter-spacing: -.015em;
  word-spacing: -.03em;
}

body.tindex-page .header-contact {
  min-width: 230px;
  font-size: clamp(23px, 1.7vw, 26px);
}

body.tindex-page .header-contact-panel__links {
  width: 100%;
  justify-content: space-evenly;
  padding-inline: clamp(12px, 2vw, 28px);
}

body.tindex-page .telegram-link {
  width: auto;
  min-width: 126px;
  height: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 0;
  color: var(--site-gold);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

body.tindex-page .site-navigation { background: var(--site-gold); }
body.tindex-page .site-navigation a { color: var(--site-white); }
body.tindex-page .site-navigation a:hover,
body.tindex-page .site-navigation a:focus-visible {
  background: var(--site-white);
  color: var(--site-gold);
}

body.tindex-page .site-navigation a[aria-current="page"] {
  background: rgba(255, 255, 255, .2);
  color: var(--site-white);
}

body.tindex-page .site-navigation a[aria-current="page"]:hover,
body.tindex-page .site-navigation a[aria-current="page"]:focus-visible {
  background: var(--site-white);
  color: var(--site-gold);
}

body.tindex-page .button:focus-visible,
body.tindex-page a:focus-visible,
body.tindex-page button:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 3px;
}

/* Практики повторяют ширину и пропорции двух колонок главной. */
@media (min-width: 901px) {
  body.tindex-page.practice-page .practice-layout {
    width: min(1480px, calc(100% - 64px));
    margin: 0 auto;
    padding-right: 0;
    padding-left: 0;
    grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
    gap: 12px;
  }
}

body.tindex-page.practice-page .practice-hero h1.practice-seo-title {
  color: var(--site-gold);
  font-family: var(--font-main);
}

body.tindex-page.practice-page .practice-display-title {
  color: var(--site-graphite);
  font-family: var(--site-heading-font);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.02;
}

body.tindex-page.practice-page .practice-subtitle {
  color: var(--site-graphite);
  font-family: var(--site-heading-font);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.16;
}

body.tindex-page.practice-page .practice-top-cta {
  display: block;
  width: 130%;
  max-width: none !important;
  margin: 14px 0 14px -30% !important;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  align-self: flex-end;
  transform: none;
}

body.tindex-page.practice-page.tax-practice-page .practice-top-cta {
  margin-top: calc(14px + var(--tax-cta-shift, 0px)) !important;
}

body.tindex-page.practice-page .practice-top-cta .primary-action-group {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
}

body.tindex-page.practice-page .practice-top-cta .primary-action-group::before {
  position: absolute;
  z-index: 0;
  inset: -4px;
  border: 1px solid var(--site-gold);
  content: "";
  pointer-events: none;
}

body.tindex-page.practice-page .practice-top-cta .button--primary {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--site-gold);
  background: var(--site-soft-gold);
  color: var(--site-gold);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

body.tindex-page.practice-page .practice-top-cta .button--primary:hover,
body.tindex-page.practice-page .practice-top-cta .button--primary:focus-visible {
  background: var(--site-gold);
  color: var(--site-white);
}

@media (min-width: 1024px) and (orientation: landscape) {
  body.tindex-page .office-identity__cabinet {
    display: inline-flex;
    align-items: center;
  }

  body.tindex-page .office-identity__cabinet::before {
    margin: 0 .65em;
    content: "•";
  }
}

@media (max-width: 1400px) {
  body.tindex-page .site-header__inner {
    grid-template-columns: 255px minmax(0, 1fr) 126px 54px;
  }

  body.tindex-page .telegram-link { grid-column: 3; }
  body.tindex-page .menu-toggle { grid-column: 4; }
}

@media (max-width: 1100px) {
  body.tindex-page .site-header__inner {
    width: min(100% - 36px, 1480px);
    grid-template-columns: 230px minmax(0, 1fr) 112px 54px;
  }

  body.tindex-page .header-contact-panel__links { gap: 8px; }
  body.tindex-page .header-contact { min-width: 170px; font-size: 22px; }
}

@media (min-width: 761px) and (max-width: 1023px) {
  body.tindex-page .site-header__inner {
    min-height: 78px;
    padding: 8px 0;
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) 54px;
    grid-template-rows: auto;
    gap: var(--site-element-gap);
  }
  body.tindex-page .brand { grid-column: 1; grid-row: 1; }
  body.tindex-page .brand img {
    width: min(100%, 220px);
    margin: 0;
  }
  body.tindex-page .telegram-link { display: none; }
  body.tindex-page .menu-toggle { grid-column: 3; grid-row: 1; align-self: center; }
  body.tindex-page .header-contact-panel { grid-column: 2; grid-row: 1; min-width: 0; }
  body.tindex-page .header-contact-panel__links {
    display: flex;
    width: 100%;
    gap: var(--site-element-gap);
    justify-content: space-evenly;
    white-space: nowrap;
  }
  body.tindex-page .header-contact {
    min-width: 0;
    padding-inline: 0;
    font-size: 22px;
  }
}

/* Классификатор публикации в карточках практик. */
body.tindex-page .news-item__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

body.tindex-page .news-item h3:has(+ .news-item__labels) {
  margin-bottom: 8px !important;
}

body.tindex-page .news-item__labels a {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--site-gold);
  background: var(--site-white);
  color: var(--site-graphite);
  text-decoration: none;
}

body.tindex-page .news-item__labels a:hover,
body.tindex-page .news-item__labels a:focus-visible {
  background: var(--site-gold);
  color: var(--site-white);
}

@media (max-width: 760px) {
  body.tindex-page {
    overflow-x: hidden;
    font-size: 15px;
  }

  body.tindex-page .office-identity {
    min-height: 34px;
    overflow: hidden;
    padding: 5px 6px 1px;
    font-size: 15px;
  }

  body.tindex-page .office-identity__chamber {
    max-width: 100%;
    font-size: clamp(11px, 3.6vw, 14px);
    letter-spacing: .015em;
  }

  body.tindex-page .office-identity__cabinet { display: none; }

  body.tindex-page .site-header__inner {
    width: calc(100% - 24px);
    min-height: 86px;
    margin: 0 auto;
    padding: 0 0 2px;
    grid-template-columns: minmax(0, 1fr) 62px;
    grid-template-rows: auto auto;
    gap: 0 12px;
  }

  body.tindex-page .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }

  body.tindex-page .brand img {
    width: calc(100% + 8px);
    max-width: none;
    margin-top: 7px;
  }

  body.tindex-page .header-contact-panel {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding-bottom: 3px;
    transform: translateY(-4px);
  }

  body.tindex-page .header-contact-panel__links {
    width: 100%;
    justify-content: flex-end;
    padding: 0 8px;
  }

  body.tindex-page .header-contact-panel__links .header-contact:not(:first-child) { display: none; }

  body.tindex-page .header-contact {
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
    padding-inline: 0;
    font-size: 22px;
  }

  body.tindex-page .telegram-link { display: none; }

  body.tindex-page .menu-toggle {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 62px;
    height: 62px;
    align-self: center;
    padding: 6px;
    border: 0;
    background: transparent;
  }

  body.tindex-page .concept-footer__name {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.tindex-page.practice-page .portrait-profile-summary { order: 5; }
  body.tindex-page.practice-page .practice-top-cta {
    order: 6;
    width: 100%;
    max-width: none !important;
    margin: 11px 0 8px !important;
    align-self: stretch;
  }
  body.tindex-page.practice-page.tax-practice-page .practice-top-cta {
    margin-top: 11px !important;
  }
  body.tindex-page.practice-page .office-card { order: 7; }
  body.tindex-page.practice-page .practice-metrics { order: 8; }
  body.tindex-page.practice-page .practice-content { order: 9; }
  body.tindex-page.practice-page .telegram-subscribe { order: 10; }
  body.tindex-page.practice-page .news-column { order: 11; }
  body.tindex-page.practice-page .practice-top-cta .primary-action-group,
  body.tindex-page.practice-page .practice-top-cta .button--primary {
    width: 100%;
    max-width: none;
  }
  body.tindex-page.practice-page .practice-top-cta .button--primary {
    min-height: 52px;
    padding: 12px 10px;
    font-size: 15px;
  }
}

/* Practice portrait is quieter than on the home page; its identity remains
   aligned with the image. The left section is moved only when the wide CTA
   would otherwise enter the first card row. */
@media (min-width: 761px) {
  body.tindex-page.practice-page .main-secondary .portrait,
  body.tindex-page.practice-page .main-secondary .portrait-identity {
    width: 82%;
    max-width: 82%;
    margin-right: 0 !important;
    margin-left: auto !important;
  }

  body.tindex-page.practice-page #situations {
    margin-top: var(--practice-cta-clearance, 0px);
  }
}

body.tindex-page.practice-page .news-item__image {
  display: none !important;
}

@media (min-width: 1024px) {
  body.tindex-page :is(.practice-grid article, .service-grid article, .case-list article, .news-item):has(a[href]) {
    cursor: pointer;
  }
}

/* Единый основной CTA на всех публичных страницах. */
body.tindex-page .button.button--primary {
  border-color: var(--site-gold, #9a8103) !important;
  background: var(--site-gold, #9a8103) !important;
  color: var(--site-white, #fff) !important;
}

body.tindex-page .button.button--primary:hover,
body.tindex-page .button.button--primary:focus-visible {
  border-color: var(--site-gold, #9a8103) !important;
  background: var(--site-gold, #9a8103) !important;
  color: var(--site-white, #fff) !important;
  filter: brightness(.92);
}

/* Единая геометрия публичных страниц. */
body.tindex-page :is(.main-layout, .hero-layout, .practice-layout, .article-layout, .contacts-grid, .blog-grid, .contact-section__inner) {
  column-gap: var(--site-element-gap) !important;
}

body.tindex-page main :is(section, article, aside, header) > h2,
body.tindex-page main .section-heading-row {
  margin-bottom: var(--site-element-gap) !important;
}

body.tindex-page main :is(section, article, aside, header) > h2 {
  padding-bottom: 0 !important;
}

body.tindex-page main :is(section, article, aside) > h2 {
  line-height: 1.05 !important;
}

body.tindex-page main :is(section, article, aside, header) > h2 + * {
  margin-top: 0 !important;
}

body.tindex-page main :is(section, article, aside) > h3 {
  margin-bottom: var(--site-element-gap) !important;
}

@media (max-width: 1023px) {
  body.tindex-page :is(.practice-grid, .service-grid, .case-list, .contacts-grid, .blog-grid, .news-list) {
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: var(--site-element-gap) !important;
    row-gap: var(--site-element-gap) !important;
  }
}

@media (min-width: 761px) and (max-width: 1023px) {
  body.tindex-page.practice-page .practice-wide-section .case-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Paragraphs and editorial cards use the same rhythm on every public page. */
body.tindex-page .publications-intro {
  row-gap: var(--site-element-gap) !important;
}

body.tindex-page .publications-intro > p,
body.tindex-page .about-panel p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.tindex-page .publications-intro > p:empty,
body.tindex-page .about-panel p:empty {
  display: none !important;
}

body.tindex-page .news-item {
  --publication-card-background: rgba(86, 122, 82, .055);
  min-width: 0;
  background-color: var(--publication-card-background) !important;
  transition: background-color 160ms ease;
}

body.tindex-page .news-item :is(h2, h3, p, a) {
  overflow-wrap: anywhere;
}

@media (hover: hover) and (min-width: 1024px) {
  body.tindex-page .news-item:hover,
  body.tindex-page .news-item:focus-within {
    background-color: rgba(86, 122, 82, .105) !important;
  }
}

@media (max-width: 1023px) {
  body.tindex-page .news-item:hover,
  body.tindex-page .news-item:active,
  body.tindex-page .news-item:focus-within {
    background-color: var(--publication-card-background) !important;
  }
}

/* Выдвижное меню оставляет страницу видимой слева. */
@media (max-width: 1400px) {
  body.tindex-page .site-navigation {
    background: rgba(0, 0, 0, .18);
  }

  body.tindex-page .site-navigation ul {
    background: var(--site-gold);
  }
}

/* Единый подвал всех публичных страниц — геометрия index.php. */
body.tindex-page .concept-footer {
  display: grid;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 20px max(24px, calc((100% - 1480px) / 2));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--site-element-gap);
  background: #55544f;
  color: #fff;
  text-align: left;
}

body.tindex-page .concept-footer > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

body.tindex-page .concept-footer__name {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.tindex-page .concept-footer > div:nth-child(2) { align-items: center; text-align: center; }
body.tindex-page .concept-footer > div:last-child { align-items: flex-end; justify-content: flex-end; text-align: right; }
body.tindex-page .concept-footer strong { margin-bottom: 2px; color: inherit; font-size: 17px; line-height: 1.3; }
body.tindex-page .concept-footer span,
body.tindex-page .concept-footer a { color: inherit; font-size: 13px; line-height: 1.5; text-decoration: none; }
body.tindex-page .concept-footer a:hover,
body.tindex-page .concept-footer a:focus-visible { color: inherit; font-weight: 700; }

@media (min-width: 761px) and (max-width: 1100px) {
  body.tindex-page .concept-footer {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body.tindex-page .concept-footer {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 24px;
    text-align: center;
  }

  body.tindex-page .concept-footer > div,
  body.tindex-page .concept-footer > div:nth-child(2),
  body.tindex-page .concept-footer > div:last-child {
    align-items: center;
    text-align: center;
  }
}

