: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-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: 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 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-subtitle);
  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-body);
  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;
}

.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 {
  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);
}

.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;
  margin: 8px 0;
  color: var(--lead-muted);
  font-size: 14px;
  text-align: center;
}

.lead-modal__or::before,
.lead-modal__or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36%;
  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; }
  .news-column { order: 7; }

  .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;
  }
}
