:root {
  --page: #f1f1f6;
  --white: #fff;
  --ink: #0f1723;
  --muted: #575757;
  --blue: #00336d;
  --blue-2: #00449a;
  --line: rgba(15, 23, 35, 0.12);
  --radius: 10px;
  --shadow-blue: 0 4px 0 #0050aa;
  --container: 1080px;
  --header-height: 90px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--page);
  color: var(--ink);
  font-family: Gilroy, 'Montserrat', 'Segoe UI', Arial, sans-serif;
  line-height: 1.25;
  overflow-x: hidden;
}

body.menu-open,
body.feedback-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  background: rgba(241, 241, 246, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  /* border-bottom: 1px solid var(--line); */
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand span {
  max-width: 150px;
  color: #575757;
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}

.desktop-nav a,
.footer-inner nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.footer-inner nav a:hover {
  color: var(--blue-2);
}

.header-actions,
.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.messenger-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.messenger-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--white);
  box-shadow:
    inset 0 0 0 1px rgba(0, 51, 109, 0.06),
    0 8px 20px rgba(0, 51, 109, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.messenger-link:hover {
  transform: translateY(-2px);
  background: #f8faff;
  box-shadow:
    inset 0 0 0 1px rgba(0, 51, 109, 0.1),
    0 12px 26px rgba(0, 51, 109, 0.13);
}

.messenger-link svg,
.messenger-link img {
  width: 19px;
  height: 19px;
}

.messenger-link svg {
  fill: currentColor;
}

.messenger-link-whatsapp {
  color: #25d366;
}

.messenger-link-telegram {
  color: #229ed9;
}

.call-button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #111771, var(--blue-2));
  color: var(--white);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 51, 109, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-position 0.25s ease;
}

.call-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 0.42s ease;
}

.call-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 51, 109, 0.25);
}

.call-button:hover::after {
  transform: translateX(120%);
}

.call-button svg,
.call-button span {
  position: relative;
  z-index: 1;
}

.call-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.call-button:hover svg {
  transform: rotate(-10deg) scale(1.08);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  padding: 10px;
}

.burger span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  background:
    linear-gradient(
      180deg,
      rgba(0, 51, 109, 0.06),
      rgba(255, 255, 255, 0) 220px
    ),
    var(--white);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  visibility: hidden;
}

.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: min(100%, 560px);
  margin-inline: auto;
  padding: 18px 20px 22px;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue);
}

.menu-brand img {
  width: 48px;
  height: 50px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 51, 109, 0.14));
}

.menu-eyebrow {
  margin: 24px 0 12px;
  color: rgba(0, 51, 109, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-menu nav {
  display: grid;
  gap: 8px;
}

.mobile-menu nav a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
}

.mobile-menu nav span {
  color: rgba(0, 68, 154, 0.48);
  font-size: 12px;
  font-weight: 800;
}

.menu-close {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 51, 109, 0.14);
  border-radius: 7px;
  background: rgba(0, 51, 109, 0.06);
}

.menu-close::before,
.menu-close::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 12px;
  width: 18px;
  height: 2px;
  background: var(--blue);
}

.menu-close::before {
  transform: rotate(45deg);
}

.menu-close::after {
  transform: rotate(-45deg);
}

.menu-contact {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}

.menu-phone {
  color: var(--blue);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
}

.menu-call-button {
  width: 100%;
  min-height: 52px;
}

.menu-contact .button {
  width: 100%;
  color: var(--blue);
  font-size: 13px;
  text-align: center;
}

.menu-social {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.menu-social p {
  margin-bottom: 10px;
  color: var(--muted);
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 4px;
  border-radius: 50%;
  background: #f7f8fc;
  box-shadow:
    inset 0 0 0 1px rgba(0, 51, 109, 0.08),
    0 8px 18px rgba(0, 51, 109, 0.08);
}

.social-link svg,
.social-link img {
  width: 18px;
  height: 18px;
}

.social-link svg {
  fill: currentColor;
}

.social-link-telegram {
  color: #229ed9;
}

.social-link-whatsapp {
  color: #25d366;
}

.social-link-max {
  color: #5236ff;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.feedback-open .feedback-modal {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 35, 0.54);
}

.feedback-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 396px);
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  background:
    linear-gradient(
      180deg,
      rgba(0, 51, 109, 0.04),
      rgba(255, 255, 255, 0) 200px
    ),
    var(--white);
  box-shadow: -18px 0 42px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.feedback-open .feedback-panel {
  transform: translateX(0);
}

.feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 24px;
  border-bottom: 1px solid rgba(0, 51, 109, 0.14);
}

.feedback-head h2 {
  margin: 0;
  color: var(--blue);
  font-size: 19px;
  line-height: 1.35;
}

.feedback-close {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.feedback-close::before,
.feedback-close::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 7px;
  width: 18px;
  height: 2px;
  background: rgba(0, 51, 109, 0.64);
}

.feedback-close::before {
  transform: rotate(45deg);
}

.feedback-close::after {
  transform: rotate(-45deg);
}

.feedback-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.feedback-alert {
  display: none;
  margin: 0;
  border-radius: 7px;
  background: rgba(204, 38, 38, 0.08);
  padding: 12px 14px;
  color: #b42323;
  font-size: 14px;
  font-weight: 700;
}

.feedback-alert.is-visible {
  display: block;
}

.feedback-field {
  display: grid;
  gap: 6px;
}

.feedback-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 51, 109, 0.16);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.feedback-field input,
.feedback-field select {
  height: 46px;
  padding: 0 14px;
}

.feedback-field select {
  appearance: none;
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, rgba(0, 51, 109, 0.66) 50%)
      calc(100% - 18px) 19px / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(0, 51, 109, 0.66) 50%, transparent 50%)
      calc(100% - 13px) 19px / 7px 7px no-repeat,
    var(--white);
}

.feedback-field textarea {
  min-height: 126px;
  resize: vertical;
  padding: 14px;
}

.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
  color: #9aa3b2;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  border-color: rgba(0, 68, 154, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 68, 154, 0.09);
}

.feedback-field.is-invalid input,
.feedback-field.is-invalid select,
.feedback-field.is-invalid textarea,
.feedback-consent.is-invalid input {
  border-color: #d43c3c;
  box-shadow: 0 0 0 3px rgba(212, 60, 60, 0.08);
}

.feedback-error {
  min-height: 14px;
  color: #b42323;
  font-size: 12px;
  line-height: 1.2;
}

.feedback-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(15, 23, 35, 0.66);
  font-size: 12px;
  line-height: 1.35;
}

.feedback-consent input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid rgba(0, 51, 109, 0.42);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
}

.feedback-consent input:checked {
  border-color: var(--blue);
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5 4.2 7.5 11 1' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 9px;
}

.feedback-submit {
  width: 100%;
  border: 0;
  margin-top: 4px;
  cursor: pointer;
}

.feedback-submit:disabled {
  background: linear-gradient(0deg, #6d7888, #9aa6b5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(36, 47, 63, 0.22);
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
  cursor: wait;
}

.feedback-success-panel {
  display: none;
}

.feedback-success-visible .feedback-form-panel {
  display: none;
}

.feedback-success-visible .feedback-success-panel {
  display: flex;
}

.feedback-success {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  flex: 1;
  padding: 28px 28px 120px;
  text-align: center;
}

.feedback-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(28, 160, 91, 0.12);
  color: #1ca05b;
}

.feedback-success-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.feedback-success p {
  max-width: 280px;
  margin: 0;
  color: var(--blue);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.feedback-contact-link {
  min-width: 240px;
  justify-content: center;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 730px;
  padding: 70px 0 64px;
  background:
    linear-gradient(
      90deg,
      rgba(241, 241, 246, 0.96) 0 45%,
      rgba(241, 241, 246, 0.68)
    ),
    url('/assets/images/vertical-page-divider.png') repeat-y right top / 1px
      auto;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: url('/assets/images/bg-01.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(0.9);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.86) 0%,
      rgba(255, 255, 255, 0.72) 44%,
      rgba(255, 255, 255, 0.5) 100%
    ),
    linear-gradient(180deg, rgba(0, 51, 109, 0.06), rgba(241, 244, 249, 0.18)),
    url('/assets/images/vertical-page-divider.png') repeat-y right top / 1px
      auto;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  max-width: 713px;
  padding: 42px 50px;
  border-radius: var(--radius);
  background: var(--white);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
}

.hero-copy p {
  max-width: 580px;
  margin-bottom: 34px;
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions > .button {
  width: 250px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled='true'] {
  cursor: not-allowed;
  transform: none;
}

.button:disabled:hover,
.button[aria-disabled='true']:hover {
  transform: none;
}

.button-primary {
  background: linear-gradient(0deg, var(--blue), var(--blue-2));
  box-shadow: var(--shadow-blue);
  color: var(--white);
}

.button-primary.feedback-submit:disabled,
.button-primary.feedback-submit.is-submitting {
  background: linear-gradient(0deg, #596474, #9aa6b5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(36, 47, 63, 0.22);
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
  cursor: wait;
}

.button-light {
  background: var(--white);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(0, 51, 109, 0.2);
}

.button-outline {
  background: var(--blue);
  color: var(--white);
  box-shadow: none;
  font-size: 13px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 520px);
  filter: drop-shadow(0 26px 45px rgba(0, 0, 0, 0.16));
}

.section {
  padding: 74px 0;
}

.section,
.blue-section,
.consultation,
.info-layout-section,
.info-contacts {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.hero {
  content-visibility: visible;
}

.info-hero {
  content-visibility: visible;
  position: relative;
  background-image: url('/assets/images/bg-01.jpg');
  background-size: cover;
  background-position: center;
}

.info-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(248, 250, 252, 0.88) 0%,
      rgba(248, 250, 252, 0.58) 46%,
      rgba(248, 250, 252, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(0, 51, 109, 0.18), rgba(0, 0, 0, 0.14));
  content: '';
  pointer-events: none;
}

.info-hero > .container {
  position: relative;
  z-index: 1;
}

.section h2,
.blue-section h2,
.fees h2 {
  max-width: 900px;
  margin: 0 auto 38px;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.2;
  text-align: center;
}

.section-lead {
  max-width: 740px;
  margin: -18px auto 34px;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

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

.image-card {
  display: grid;
  min-height: 304px;
  grid-template-columns: 1fr 230px;
  gap: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  padding: 34px 0 0 34px;
}

.image-card h3,
.service-card h3,
.work-grid h3,
.case-card h3,
.feature-grid h3,
.strategy-grid h3 {
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.2;
}

.image-card p,
.service-card p,
.work-grid p,
.case-card p,
.feature-grid p,
.strategy-grid p {
  color: var(--muted);
  font-size: 16px;
}

.image-card img {
  align-self: end;
  width: 100%;
  max-height: 230px;
  object-fit: contain;
}

.principles {
  padding-top: 12px;
}

.principle-panel {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: var(--blue);
  color: var(--white);
  padding: 56px 40px 60px;
}

.principle-panel::before,
.consultation-card::before {
  content: '';
  position: absolute;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  left: -125px;
  top: -130px;
}

.principle-intro {
  max-width: 580px;
}

.principle-intro h3 {
  font-size: 32px;
}

.principle-intro p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.principle-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.principle-cards article,
.service-card,
.work-grid article,
.feature-grid article,
.strategy-grid article,
.review-grid article,
.fee-grid article {
  border-radius: var(--radius);
  background: var(--white);
}

.principle-cards article {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 26px 28px;
  border: 1px solid rgba(0, 51, 109, 0.14);
  background:
    radial-gradient(circle at 18% 0, rgba(0, 68, 154, 0.12), transparent 34%),
    linear-gradient(180deg, #f7f8fb 0%, #edf1f6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 38px rgba(0, 21, 48, 0.18);
  color: var(--ink);
}

.principle-cards article::before {
  content: '';
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 165px;
  height: 132px;
  background: var(--principle-bg) right bottom / contain no-repeat;
  filter: grayscale(1) saturate(0.25);
  opacity: 0.16;
  pointer-events: none;
}

.principle-cards article > * {
  position: relative;
  z-index: 1;
}

.principle-cards article:nth-child(1) {
  --principle-bg: url('/assets/images/stamped-document-case.png');
}

.principle-cards article:nth-child(2) {
  --principle-bg: url('/assets/images/court-papers.png');
}

.principle-cards article:nth-child(3) {
  --principle-bg: url('/assets/images/lady-justice.png');
}

.principle-cards strong,
.fee-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue-2);
  font-weight: 800;
}

.principle-cards h4 {
  font-size: 18px;
  line-height: 1.28;
}

.cta-band {
  padding: 70px 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 39, 0.92), rgba(21, 42, 74, 0.72)),
    radial-gradient(
      circle at 78% 52%,
      rgba(255, 255, 255, 0.16),
      transparent 32%
    ),
    url('/assets/images/lady-justice.png') right 8% bottom / 330px auto
      no-repeat,
    url('/assets/images/court-documents-stack.png') right 330px center / 220px
      auto no-repeat,
    linear-gradient(135deg, #101827 0%, #203557 58%, #49617f 100%);
  color: var(--white);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.cta-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 43px);
}

.cta-grid p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 195px;
  padding: 28px 30px 26px;
}

.service-card a,
.strategy-grid a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

.blue-section {
  padding: 78px 0 84px;
  background: var(--blue);
  color: var(--white);
}

.work-grid,
.feature-grid,
.strategy-grid,
.review-grid,
.fee-grid {
  display: grid;
  gap: 20px;
}

.work-grid {
  grid-template-columns: repeat(4, 1fr);
}

.work-grid article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 334px;
  padding: 20px 20px 0;
  color: var(--ink);
}

.work-grid img {
  align-self: flex-end;
  width: calc(100% + 20px);
  height: 150px;
  margin-top: auto;
  margin-right: -20px;
  object-fit: contain;
  object-position: right bottom;
}

.feature-grid img {
  width: 100%;
  height: 150px;
  margin-top: 16px;
  object-fit: contain;
}

.case-grid {
  grid-template-columns: 2fr 1fr;
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  padding: 30px 30px 0;
}

.case-wide {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.case-card img {
  align-self: flex-end;
  width: calc(100% + 30px);
  max-height: 250px;
  margin-top: auto;
  margin-right: -30px;
  object-fit: contain;
  object-position: right bottom;
}

.case-wide img {
  align-self: end;
  justify-self: end;
}

.practice-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.46),
    rgba(241, 241, 246, 0)
  );
}

.practice-head {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.practice-head h2 {
  margin-bottom: 14px;
}

.practice-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.practice-card {
  position: relative;
  display: grid;
  min-height: 230px;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  padding: 28px 28px 24px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 51, 109, 0.06),
    0 16px 34px rgba(0, 51, 109, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.practice-card::before {
  content: '';
  position: absolute;
  right: -38px;
  bottom: -46px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(0, 68, 154, 0.08);
}

.practice-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 51, 109, 0.08),
    0 22px 42px rgba(0, 51, 109, 0.12);
}

.practice-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  grid-row: 1 / 4;
  align-self: start;
  border-radius: 9px;
  background: #eef4fb;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.practice-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.practice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.practice-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  margin-top: 20px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.practice-card a::after {
  content: '→';
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.practice-card a:hover::after {
  transform: translateX(4px);
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 36px;
}

.split-heading h2 {
  margin: 0;
  text-align: left;
}

.split-heading p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 320px;
  padding: 30px 30px 0;
}

.feature-grid img {
  margin-top: auto;
  object-position: center bottom;
}

.public-safety {
  padding-top: 22px;
}

.strategy-grid {
  grid-template-columns: repeat(4, 1fr);
}

.strategy-grid article {
  /* min-height: 316px; */
  padding: 30px 20px;
}

.public-safety .strategy-grid article {
  display: flex;
  flex-direction: column;
}

.public-safety .strategy-grid a {
  margin-top: auto;
}

.center-action {
  margin-top: 40px;
  text-align: center;
}

.reviews-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}

.reviews-head h2 {
  margin: 0;
  text-align: left;
}

.rating {
  border-radius: 3px;
  background: var(--white);
  padding: 8px 12px;
  color: var(--blue);
  font-weight: 800;
}

.rating span {
  margin-left: 8px;
  color: #e53535;
}

.review-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-grid article {
  min-height: 310px;
  padding: 24px 28px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.review-meta span {
  color: #aaa;
  font-size: 12px;
}

.stars {
  margin-top: 22px;
  color: #f2b21a;
  letter-spacing: 2px;
}

.fees {
  padding-top: 10px;
}

.fee-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
}

.fee-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: 150px;
  padding: 24px 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.fee-grid span {
  margin-bottom: 0;
}

.defense-process {
  padding-top: 32px;
}

.defense-process-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 40px;
  border-radius: 15px;
  background:
    radial-gradient(
      circle at 12% 16%,
      rgba(255, 255, 255, 0.18),
      transparent 34%
    ),
    linear-gradient(135deg, #08244a 0%, var(--blue) 52%, #0f1723 100%);
  padding: 48px;
  color: var(--white);
}

.defense-process-panel::before {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.defense-process-panel::after {
  content: '';
  position: absolute;
  right: 22px;
  bottom: 0;
  width: 230px;
  height: 180px;
  background: url('/assets/images/magnifier-contract.png') right bottom /
    contain no-repeat;
  filter: grayscale(1) brightness(1.35);
  opacity: 0.13;
  pointer-events: none;
}

.defense-process-head,
.defense-process-list {
  position: relative;
  z-index: 1;
}

.defense-process-head {
  align-self: start;
  position: sticky;
  top: 120px;
}

.defense-process-head span {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.defense-process-head h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.16;
  text-align: left;
}

.defense-process-head p {
  max-width: 430px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.45;
}

.defense-process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: defense-process;
}

.defense-process-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  padding: 22px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.defense-process-list span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 7px;
  background: var(--white);
  color: var(--blue);
  font-weight: 900;
  line-height: 1;
}

.defense-process-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.48;
}

.consultation {
  padding: 80px 0;
}

.consultation-grid {
  display: grid;
  grid-template-columns: 1fr 360px 1fr;
  gap: 28px;
  align-items: stretch;
}

.consultation-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  padding: 72px 40px;
}

.consultation-card h2 {
  color: var(--white);
  font-size: 34px;
}

.consultation-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.consultation-grid > img {
  align-self: end;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.contacts {
  display: grid;
  align-content: center;
  gap: 28px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  padding: 46px;
  font-style: normal;
}

.contacts div {
  display: grid;
  gap: 8px;
}

.contacts strong {
  text-transform: uppercase;
}

.site-footer {
  padding: 20px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  min-height: 80px;
  border-top: 1px solid var(--line);
}

.footer-inner nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.footer-actions {
  justify-content: flex-end;
}

.footer-counter-wrap,
.footer-counter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-counter {
  width: 31px;
  height: 31px;
}

.footer-counter a,
.footer-counter img {
  display: block;
}

.privacy {
  grid-column: 3;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
}

.info-page {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.54),
      rgba(241, 241, 246, 0) 420px
    ),
    var(--page);
}

.info-hero {
  padding: 34px 0 60px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  margin-bottom: 34px;
  color: rgba(15, 23, 35, 0.62);
  font-size: 14px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: rgba(0, 51, 109, 0.38);
}

.breadcrumbs a {
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.breadcrumbs [aria-current='page'] {
  color: var(--blue);
  font-weight: 700;
}

.info-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: stretch;
}

.info-hero-copy {
  max-width: 820px;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 70px rgba(0, 28, 66, 0.16);
  padding: 28px 32px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.info-hero-copy h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(38px, 4.6vw, 38px);
}

.info-hero-copy p {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(15, 23, 35, 0.82);
  font-size: 21px;
  line-height: 1.45;
}

.info-hero-note {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-content: center;
  align-items: start;
  overflow: hidden;
  min-height: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(145deg, rgba(0, 68, 154, 0.94), rgba(0, 51, 109, 1)),
    var(--blue);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(0, 28, 66, 0.18);
  padding: 30px 28px;
}

.info-hero-note::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 46%),
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 255, 255, 0.22),
      transparent 34%
    );
  pointer-events: none;
}

.info-hero-note::after {
  content: '';
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #d8b56d;
}

.info-hero-note-icon,
.info-hero-note-content {
  position: relative;
  z-index: 1;
}

.info-hero-note-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.info-hero-note-icon svg {
  width: 26px;
  height: 26px;
  fill: #f3d28a;
}

.info-hero-note-content {
  display: grid;
  gap: 12px;
}

.info-hero-note strong {
  letter-spacing: 0.08em;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.info-hero-note-content > span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.5;
}

.info-layout-section {
  padding: 64px 0 78px;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 60px;
  align-items: start;
}

.info-article {
  max-width: 720px;
  min-width: 0;
}

.info-article h2 {
  margin: 48px 0 18px;
  color: var(--blue);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.22;
}

.info-article h3 {
  margin: 34px 0 12px;
  font-size: 23px;
  line-height: 1.28;
}

.info-article p,
.info-article li,
.info-table {
  color: #303642;
  font-size: 18px;
  line-height: 1.62;
}

.info-article p {
  margin-bottom: 18px;
}

.article-lead {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.5;
}

.info-article ul,
.info-article ol {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding-left: 24px;
}

.info-article a:not(.button) {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.catalog-article {
  display: grid;
  gap: 30px;
}

.catalog-list {
  display: grid;
  gap: 20px;
}

.material-card {
  display: grid;
  gap: 16px;
  border-radius: var(--radius);
  background: var(--white);
  padding: 30px 32px;
  box-shadow: 0 16px 34px rgba(0, 51, 109, 0.08);
}

.material-card h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(23px, 2.7vw, 24px);
  line-height: 1.22;
}

.material-card p {
  margin: 0;
}

.material-card .button {
  justify-self: start;
  min-height: 48px;
  margin-top: 6px;
  padding: 13px 22px;
  font-size: 13px;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.info-article .catalog-pagination a {
  text-decoration: none;
}

.pagination-item,
.pagination-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 60px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.pagination-item {
  border: 1px solid rgba(0, 51, 109, 0.16);
  background: var(--white);
  color: #06125d;
  box-shadow: 0 4px 10px rgba(0, 51, 109, 0.05);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.pagination-item:hover {
  border-color: rgba(0, 51, 109, 0.36);
  transform: translateY(-1px);
}

.pagination-current {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: none;
}

.info-article .catalog-pagination .pagination-current {
  color: var(--white);
}

.pagination-disabled {
  border-color: rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.52);
  color: rgba(0, 51, 109, 0.32);
  box-shadow: none;
}

.pagination-ellipsis {
  min-width: 18px;
  color: rgba(0, 51, 109, 0.48);
}

.info-highlight,
.article-cta {
  margin: 38px 0;
  border-radius: var(--radius);
}

.info-highlight {
  background: var(--white);
  padding: 30px 32px;
  box-shadow: inset 4px 0 0 var(--blue-2);
}

.info-highlight h3 {
  margin-top: 0;
  color: var(--blue);
}

.info-highlight ul {
  margin-bottom: 0;
}

.info-article blockquote {
  margin: 38px 0;
  border-left: 4px solid var(--blue);
  background: rgba(0, 51, 109, 0.06);
  padding: 24px 28px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.info-table-wrap {
  width: 100%;
  margin: 34px 0;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--white);
}

.info-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 16px;
}

.info-table th,
.info-table td {
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  line-height: 1.35;
}

.info-table tr:last-child td {
  border-bottom: 0;
}

.article-cta {
  background:
    linear-gradient(90deg, rgba(0, 51, 109, 0.94), rgba(0, 68, 154, 0.82)),
    url('/assets/images/court-papers.png') right center / auto 100% no-repeat;
  color: var(--white);
  padding: 36px 34px;
}

.article-cta h2 {
  margin-top: 0;
  color: var(--white);
}

.article-cta p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.84);
}

.info-aside {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 18px;
}

.article-nav,
.aside-services,
.aside-cta {
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
}

.article-nav h2,
.aside-services h2,
.aside-cta h2 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.25;
}

.article-nav {
  display: grid;
  gap: 12px;
}

.article-nav a,
.aside-services a {
  color: #303642;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.article-nav a:hover,
.aside-services a:hover {
  color: var(--blue-2);
}

.aside-services ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.aside-cta {
  background: var(--blue);
  color: var(--white);
}

.aside-cta h2 {
  color: var(--white);
}

.aside-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.45;
}

.aside-cta .button {
  width: 100%;
  min-height: 48px;
  padding-inline: 18px;
  font-size: 12px;
}

.info-contacts {
  padding: 78px 0 84px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72),
      rgba(241, 241, 246, 0.96)
    ),
    #eef1f6;
  border-block: 1px solid rgba(0, 51, 109, 0.1);
}

/*
  More strict contact-section background options:
  1. Current: restrained cold panel with subtle vertical depth.
  2. Solid light panel:
     background: #eceff5;
     border-block: 1px solid rgba(0, 51, 109, 0.1);
  3. Slightly more formal blue wash:
     background: linear-gradient(180deg, #f5f7fb 0%, #e6edf7 100%);
     border-block: 1px solid rgba(0, 51, 109, 0.12);
  4. Dark corporate band:
     background: linear-gradient(180deg, #10243b 0%, #0b1b2e 100%);
     border-block: 0;
*/

.info-contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.info-contacts-card {
  display: grid;
  align-content: center;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  padding: 44px;
  box-shadow: 0 22px 48px rgba(0, 51, 109, 0.18);
}

.info-contacts-card h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.16;
}

.info-contacts-card p {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.5;
}

.info-contact-list {
  display: grid;
  gap: 18px;
  margin: 22px 0 28px;
  font-style: normal;
}

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

.info-contact-list strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  text-transform: uppercase;
}

.info-contact-list span,
.info-contact-list a {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.info-contacts-card .button {
  justify-self: start;
}

.info-map {
  overflow: hidden;
  min-height: 480px;
  border-radius: var(--radius);
  background: #dfe5ef;
  box-shadow: 0 22px 48px rgba(0, 51, 109, 0.14);
}

.info-map > ymaps,
.info-map iframe {
  display: block;
  width: 100% !important;
  min-height: 480px;
}

.info-page + .site-footer .footer-inner {
  border-top: 0;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .burger {
    display: block;
    margin-left: auto;
  }

  .hero-grid,
  .urgent-grid,
  .cta-grid,
  .split-heading,
  .defense-process-panel,
  .consultation-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .work-grid,
  .feature-grid,
  .strategy-grid,
  .review-grid,
  .fee-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .info-hero-grid,
  .info-layout,
  .info-contacts-grid {
    grid-template-columns: 1fr;
  }

  .info-layout {
    gap: 34px;
  }

  .info-article {
    max-width: none;
  }

  .info-aside {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .aside-cta .button {
    width: auto;
  }

  .consultation-grid > img {
    justify-self: center;
    max-width: 360px;
  }

  .defense-process-head {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 40px, 320px);
  }

  .feedback-panel {
    width: 100%;
    box-shadow: none;
  }

  .feedback-head {
    padding: 24px 24px 22px;
  }

  .feedback-head h2 {
    max-width: 280px;
    font-size: 18px;
  }

  .feedback-form {
    gap: 14px;
    padding: 24px;
  }

  .feedback-field input,
  .feedback-field select {
    height: 48px;
  }

  .feedback-field textarea {
    min-height: 134px;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    max-width: 145px;
    font-size: 14px;
  }

  .hero {
    min-height: 0;
    padding: 36px 0 54px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-copy {
    padding: 28px 20px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions > .button {
    width: 100%;
  }

  .section,
  .blue-section,
  .consultation {
    padding: 54px 0;
  }

  .defense-process {
    padding-top: 20px;
  }

  .section h2,
  .blue-section h2,
  .fees h2 {
    margin-bottom: 28px;
    font-size: 28px;
  }

  .urgent-grid,
  .principle-cards,
  .service-grid,
  .work-grid,
  .feature-grid,
  .strategy-grid,
  .review-grid,
  .fee-grid {
    grid-template-columns: 1fr;
  }

  .image-card {
    min-height: 346px;
    grid-template-columns: 1fr;
    padding: 24px 20px 0;
  }

  .image-card img {
    justify-self: center;
    max-height: 180px;
  }

  .principle-panel {
    padding: 34px 20px;
  }

  .principle-intro h3 {
    font-size: 26px;
  }

  .cta-grid .button {
    justify-self: stretch;
  }

  .case-wide {
    grid-template-columns: 1fr;
  }

  .strategy-grid article {
    padding: 24px 20px;
  }

  .defense-process-panel {
    gap: 28px;
    padding: 34px 20px;
  }

  .defense-process-head span {
    margin-bottom: 14px;
  }

  .defense-process-head h2 {
    font-size: 28px;
  }

  .defense-process-head p {
    font-size: 16px;
  }

  .defense-process-list li {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .feature-grid article {
    padding: 24px 20px 0;
  }

  .case-card {
    padding: 24px 20px 0;
  }

  .case-card img {
    width: calc(100% + 20px);
    margin-right: -20px;
  }

  .practice-head {
    margin-bottom: 24px;
  }

  .practice-head p {
    font-size: 16px;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .practice-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 20px;
  }

  .practice-number {
    grid-row: auto;
    margin-bottom: 18px;
  }

  .practice-card h3 {
    font-size: 19px;
  }

  .reviews-head {
    grid-template-columns: 1fr;
  }

  .reviews-head h2 {
    text-align: center;
  }

  .rating {
    justify-self: center;
  }

  .consultation-card,
  .contacts {
    padding: 40px 20px;
  }

  .consultation-card h2 {
    font-size: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: start;
  }

  .footer-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .info-hero {
    padding: 24px 0 44px;
  }

  .breadcrumbs {
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.35;
  }

  .info-hero-copy h1 {
    font-size: 34px;
  }

  .info-hero-copy {
    padding: 24px 22px 28px;
  }

  .info-hero-copy p,
  .article-lead {
    font-size: 18px;
  }

  .info-hero-copy .button {
    width: 100%;
  }

  .info-hero-note {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 20px;
  }

  .info-hero-note-icon {
    width: 40px;
    height: 40px;
  }

  .info-hero-note-icon svg {
    width: 23px;
    height: 23px;
  }

  .info-hero-note strong {
    font-size: 22px;
  }

  .info-hero-note-content > span {
    font-size: 15px;
  }

  .info-layout-section,
  .info-contacts {
    padding: 50px 0;
  }

  .info-article h2 {
    margin-top: 40px;
    font-size: 27px;
  }

  .info-article h3 {
    font-size: 21px;
  }

  .info-article p,
  .info-article li {
    font-size: 16px;
    line-height: 1.58;
  }

  .catalog-article {
    gap: 24px;
  }

  .catalog-list {
    gap: 16px;
  }

  .material-card {
    padding: 24px 20px;
  }

  .material-card h2 {
    font-size: 24px;
  }

  .material-card .button {
    width: 100%;
  }

  .catalog-pagination {
    justify-content: center;
    gap: 6px;
  }

  .pagination-item,
  .pagination-ellipsis {
    min-width: 40px;
    height: 46px;
  }

  .pagination-mobile-hide {
    display: none;
  }

  .pagination-ellipsis {
    min-width: 14px;
  }

  .info-highlight,
  .article-cta,
  .info-article blockquote {
    padding: 24px 20px;
  }

  .article-cta {
    background: var(--blue);
  }

  .article-cta .button {
    width: 100%;
  }

  .info-aside {
    grid-template-columns: 1fr;
  }

  .article-nav,
  .aside-services,
  .aside-cta,
  .info-contacts-card {
    padding: 24px 20px;
  }

  .info-contacts-card .button {
    width: 100%;
  }

  .info-map,
  .info-map > ymaps,
  .info-map iframe {
    min-height: 360px;
  }

  .footer-inner nav {
    display: grid;
    gap: 12px;
  }

  .footer-actions {
    width: 100%;
  }

  .footer-actions .call-button {
    width: 100%;
  }

  .footer-counter-wrap,
  .footer-counter {
    justify-content: flex-start;
  }

  .privacy {
    grid-column: auto;
  }
}

@media (max-width: 380px), (max-height: 760px) {
  .mobile-menu-inner {
    padding: 16px 18px 20px;
  }

  .mobile-menu-head {
    padding-bottom: 14px;
  }

  .menu-eyebrow {
    margin: 18px 0 8px;
  }

  .mobile-menu nav a {
    min-height: 44px;
    font-size: 16px;
  }

  .menu-contact {
    gap: 10px;
    padding-top: 20px;
  }

  .menu-phone {
    font-size: 23px;
  }

  .menu-contact .button {
    min-height: 48px;
    padding: 10px 18px;
  }

  .menu-social {
    margin-top: 14px;
    padding-top: 12px;
  }
}
