:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe3ee;
  --surface: #f8fafc;
  --soft: #f4f7fb;
  --accent: #16a34a;
  --accent-dark: #15803d;
  --success: #16a34a;
  --success-dark: #15803d;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

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

.l-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.c-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.c-principle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.c-principle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: var(--success);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .c-principles {
    grid-template-columns: 1fr;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid rgba(219, 227, 238, 0.95);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.site-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.mobile-menu {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  background: var(--white);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

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

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 0;
}

.mobile-menu__nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.mobile-menu.is-open .mobile-menu__nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) {
  transition-delay: 60ms;
}

.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) {
  transition-delay: 110ms;
}

.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) {
  transition-delay: 160ms;
}

.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) {
  transition-delay: 210ms;
}

.mobile-menu__nav a:last-child {
  border-bottom: 0;
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 20px;
}

.mobile-menu__footer .header-phone {
  font-size: 16px;
}

.mobile-menu__footer .c-button {
  width: 100%;
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav,
  .site-header__actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

.c-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.c-brand__mark {
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  background: var(--success);
  border-radius: 50% 50% 50% 0.4rem;
  line-height: 1;
}

.c-brand__accent {
  color: var(--success);
}

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--success);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.c-button:hover,
.c-button:focus-visible {
  background: var(--success-dark);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.24);
}

.c-button--small {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 133px 0;
  background: linear-gradient(145deg, #f0f9ff 0%, #ffffff 54%, #eaf6ff 100%);
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 18%, rgba(14, 165, 233, 0.18), transparent 42%), radial-gradient(circle at 85% 80%, rgba(56, 189, 248, 0.16), transparent 42%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(390px, 5fr);
  gap: 48px;
  align-items: center;
}

.hero__copy h1 {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
}

.c-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 15px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--success-dark);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  font-weight: 700;
}

.c-badge__dot {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
}

.c-badge__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  opacity: 0.75;
  animation: pulse 1.5s ease-out infinite;
}

.c-badge__dot span {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid #dcfce7;
  border-radius: 50%;
  background: #22c55e;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }

  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.c-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 680px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.c-stat {
  flex: 1 1 180px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
}

.c-stat__icon {
  width: 21px;
  height: 21px;
  margin-bottom: 8px;
  fill: none;
  stroke: #0284c7;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-stat strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.c-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.c-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.15);
}

.c-panel--sticky {
  position: sticky;
  top: 96px;
}

.section {
  padding: 92px 0;
}

.section--alt {
  background: var(--white);
}

.section--soft {
  background: var(--surface);
}

.section--muted {
  background: #f8fafc;
}

.section--dark {
  color: var(--white);
  background: linear-gradient(135deg, #0f172a 0%, #12233f 52%, #123c36 100%);
}

.section__head {
  margin: 0 auto 48px;
  text-align: center;
}

.section__head--start {
  margin-left: 0;
  text-align: left;
}

.section__head--wide {
  max-width: 900px;
  margin-bottom: 56px;
  text-align: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.section__lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.c-split {
  display: flex;
  flex-direction: column;
}

.c-benefits {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.c-benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.c-benefit__check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #e7f7ec;
  color: var(--accent);
  font-weight: 900;
}

.c-benefit h3 {
  margin: 1px 0 7px;
  font-size: 19px;
}

.c-benefit p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.section--alt .c-benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.section--alt .c-benefit {
  display: block;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
}

.c-lawyer-list {
  display: grid;
  gap: 14px;
}

.c-lawyer {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.c-lawyer__photo {
  display: grid;
  place-items: center;
  width: 82px;
  min-height: 116px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef2f7, #e2e8f0);
}

.c-lawyer__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.c-lawyer__main {
  min-width: 0;
}

.c-lawyer__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.c-lawyer h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.c-lawyer__specialty {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.c-lawyer__rating {
  display: grid;
  justify-items: end;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 72px;
  padding: 6px 8px;
  border-radius: 9px;
  background: #ecfdf3;
  color: var(--success-dark);
  line-height: 1.1;
}

.c-lawyer__rating strong {
  font-size: 14px;
}

.c-lawyer__rating span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.c-lawyer__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.c-lawyer__availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success-dark);
}

.c-lawyer__availability::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.c-lawyer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.c-lawyer__tag {
  padding: 5px 7px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  line-height: 1.2;
}

.c-process__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: 48px;
  align-items: start;
}

.c-steps {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.c-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: linear-gradient(to bottom, #bae6fd, #7dd3fc 70%, #4ade80);
}

.c-step {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
}

.c-step--accent .c-step__icon {
  background: linear-gradient(145deg, #22c55e, #15803d);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.25);
}

.c-step__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 17px;
  background: linear-gradient(145deg, #0ea5e9, #0369a1);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.22);
  color: var(--white);
}

.c-step__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-step__content {
  min-width: 0;
  padding-top: 2px;
}

.c-step__label {
  display: block;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.c-step--accent .c-step__label {
  color: #15803d;
}

.c-step h3 {
  margin: 5px 0 0;
  font-size: 21px;
  line-height: 1.2;
}

.c-step p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.c-form__head {
  margin-bottom: 20px;
}

.c-form__title {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.c-form__lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.c-form__fields {
  display: grid;
  gap: 16px;
}

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

.c-form__field {
  position: relative;
  min-width: 0;
}

.c-form__label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.c-form__input,
.c-form__textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.c-form__input {
  padding: 12px 16px;
}

.c-form__textarea {
  min-height: 112px;
  padding: 12px 16px;
  resize: vertical;
}

.c-form__input::placeholder,
.c-form__textarea::placeholder {
  color: #94a3b8;
}

.c-form__input:focus,
.c-form__textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px #bae6fd;
}

.c-form__suggestions {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

.c-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border: 1px solid rgba(21, 128, 61, 0.4);
  border-radius: 12px;
  background: var(--success);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.3), 0 4px 6px -4px rgba(22, 163, 74, 0.3);
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.c-form__submit:hover {
  background: var(--success-dark);
  box-shadow: 0 20px 25px -5px rgba(22, 163, 74, 0.4), 0 8px 10px -6px rgba(22, 163, 74, 0.4);
}

.c-form__submit:active {
  transform: translateY(1px);
}

.c-form__arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  transition: transform 150ms ease;
}

.c-form__submit:hover .c-form__arrow {
  transform: translateX(4px);
}

.c-form__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 19px;
}

.c-form__consent-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-form__consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.c-form__status {
  min-height: 0;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 16px;
}
.c-form__status.is-error {
  color: #f00;
}

.c-form__status:empty {
  display: none;
}

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

.c-topic-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(10px);
}

.c-topic-card--collapsed {
  display: none;
}

.c-topic-card__index {
  display: inline-flex;
  margin-bottom: 14px;
  color: #86efac;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.c-topic-card h3 {
  margin: 0 0 14px;
  font-size: 21px;
}

.c-topic-card ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.c-topic-card li {
  color: #d6e2f1;
  font-size: 14px;
  line-height: 1.45;
}

.c-more-link {
  display: flex;
  justify-content: flex-start;
  margin-top: 30px;
}

.c-more-link--center {
  justify-content: center;
}

.c-more-link a {
  color: #86efac;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.c-more-link a:hover,
.c-more-link a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.c-ratings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: -18px 0 32px;
}

.c-rating-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 205px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.c-rating-card__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 72px;
  overflow: hidden;
}

.c-rating-card__logo img {
  width: auto;
  max-width: 230px;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.c-rating-card--yandex .c-rating-card__logo img {
  max-width: 250px;
}

.c-rating-card--2gis .c-rating-card__logo img {
  max-width: 235px;
}

.c-rating-card--zoon .c-rating-card__logo img {
  max-width: 225px;
}

.c-rating-card__label {
  margin-top: 20px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.c-rating-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  margin-top: 7px;
}

.c-rating-card__stars {
  color: var(--success);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
}

.c-rating-card__row strong {
  color: #111827;
  font-size: 19px;
  line-height: 1;
}

.c-rating-card__reviews {
  color: #7c8798;
  font-size: 13px;
  line-height: 1.3;
}

.c-reviews {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.c-review {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 112px minmax(0, 2fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.c-review--hidden {
  display: none;
}

.c-review__meta h3 {
  margin: 0;
  font-size: 18px;
}

.c-review__meta p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.c-review__stars {
  color: var(--success-dark);
  font-size: 18px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.c-review__body {
  min-width: 0;
}

.c-review__text {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.c-review__text--collapsible:not(.is-expanded) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.c-review__toggle {
  padding: 0;
  margin-top: 8px;
  background: transparent;
  color: var(--success-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.c-review__toggle:hover,
.c-review__toggle:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 30px 0;
  background: #0f2742;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__inner {
  display: grid;
  gap: 14px;
}

.site-footer__copyright {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.site-footer__copyright::after {
  content: " ООО «Бухсервис МО», ИНН 5050109429";
}

.site-footer__disclaimer {
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.55;
}

.site-footer__privacy {
  justify-self: start;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__privacy:hover {
  color: var(--white);
}

@media (max-width: 1040px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__copy h1,
  .hero__lead,
  .c-stats {
    margin-left: auto;
    margin-right: auto;
  }

  .c-panel {
    width: min(100%, 610px);
    margin: 0 auto;
  }

  .c-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .c-process__layout {
    grid-template-columns: 1fr;
  }

  .c-panel--sticky {
    position: static;
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .c-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c-ratings {
    grid-template-columns: 1fr;
  }

  .section--alt .c-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .l-container {
    width: min(100% - 28px, 1180px);
  }

  .site-header__inner {
    min-height: 40px;
  }

  .c-brand__mark {
    width: 32px;
  }

  .mobile-menu {
    top: 40px;
  }

  .hero {
    padding: 44px 0 52px;
  }

  .c-badge {
    font-size: 12px;
  }

  .hero__copy h1 {
    font-size: clamp(37px, 11vw, 50px);
  }

  .c-stat {
    display: grid;
    grid-template-columns: 26px auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 14px;
    text-align: left;
  }

  .c-stat__icon {
    margin: 0;
  }

  .c-stat span {
    margin: 0;
  }

  .section {
    padding: 68px 0;
  }

  .section__head {
    margin-bottom: 34px;
    text-align: left;
  }

  .c-lawyer {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .c-lawyer__photo {
    width: 66px;
    min-height: 104px;
  }

  .c-lawyer__top {
    display: block;
  }

  .c-lawyer__rating {
    justify-items: start;
    width: fit-content;
    margin-top: 8px;
  }

  .c-steps::before {
    display: none;
  }

  .c-step {
    gap: 14px;
    padding: 17px;
  }

  .c-step__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .c-step h3 {
    font-size: 19px;
  }

  .c-step p {
    font-size: 15px;
  }

  .c-form__row {
    grid-template-columns: 1fr;
  }

  .c-topic-grid {
    grid-template-columns: 1fr;
  }

  .c-review {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding: 20px 0;
  }

  .c-review__meta {
    grid-column: 1;
  }

  .c-review__stars {
    grid-column: 2;
    align-self: start;
    font-size: 15px;
    letter-spacing: 1px;
  }

  .c-review__body {
    grid-column: 1 / -1;
  }

  .c-review__text--collapsible:not(.is-expanded) {
    -webkit-line-clamp: 5;
  }

  .site-footer__inner {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .section--alt .c-benefits {
    grid-template-columns: 1fr;
  }

  .c-brand {
    font-size: 19px;
  }

  .c-panel {
    padding: 20px;
  }

  .c-lawyer {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .c-lawyer__photo {
    width: 56px;
    min-height: 88px;
  }

  .c-lawyer__rating {
    min-width: 62px;
    padding: 5px 6px;
  }

  .c-rating-card {
    min-height: 0;
    padding: 20px;
  }

  .c-rating-card__logo {
    height: 58px;
  }

  .c-rating-card__label {
    margin-top: 16px;
  }

  .c-rating-card__stars {
    font-size: 18px;
  }

  .c-rating-card__row strong {
    font-size: 18px;
  }
}

/* ============ Privacy policy modal ============ */

.c-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.c-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.c-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(82vh, 900px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  outline: none;
  animation: c-modal-in 220ms ease;
}

@keyframes c-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.c-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
}

.c-modal__title {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.c-modal__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease;
}

.c-modal__close:hover,
.c-modal__close:focus-visible {
  background: var(--success);
  color: var(--white);
}

.c-modal__close svg {
  width: 18px;
  height: 18px;
}

.c-modal__body {
  padding: 8px 32px 32px;
  overflow-y: auto;
  color: var(--ink);
}

.c-modal__body section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.c-modal__body section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.c-modal__body h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.c-modal__body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.c-modal__body p:last-child {
  margin-bottom: 0;
}

.c-modal__body ul {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.c-modal__body a {
  color: var(--success-dark);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .c-modal {
    padding: 0;
  }

  .c-modal__dialog {
    width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }

  .c-modal__head {
    padding: 22px 20px 16px;
  }

  .c-modal__body {
    padding: 8px 20px 28px;
  }
}