:root {
  --blue: #0081c1;
  --blue-dark: #00689b;
  --blue-soft: #e6f4fa;
  --green: #47bc58;
  --green-dark: #32893f;
  --green-soft: #e8f8eb;
  --dark: #404d59;
  --ink: #1f2d35;
  --muted: #657681;
  --line: #dce7ec;
  --paper: #ffffff;
  --soft: #f4f8fa;
  --shadow: 0 24px 70px rgba(31, 45, 53, 0.12);
}

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

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(64, 77, 89, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(64, 77, 89, 0.05) 1px, transparent 1px),
    var(--soft);
  background-size: 44px 44px;
  font-family: Arial, Helvetica, FreeSans, "Liberation Sans", "Nimbus Sans L", sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--blue);
}

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

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

.site-shell {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-grid {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 12px 22px;
  align-items: center;
  padding: 10px 0;
}

.brand {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px 8px 0;
}

.brand img {
  width: 205px;
}

.top-registry {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.registry-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 10px 14px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  line-height: 1.24;
  text-decoration: none;
  overflow-wrap: break-word;
}

.registry-link span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.registry-link:hover,
.registry-link.is-active {
  color: var(--ink);
  background: var(--blue-soft);
}

.header-contact {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.city-select {
  position: relative;
  flex: 0 0 auto;
}

.city-select__button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.city-select__button .fa-map-marker {
  color: var(--blue);
}

.city-select__button .fa-angle-down {
  color: rgba(101, 118, 129, 0.72);
}

.city-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: none;
  min-width: 148px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 45, 53, 0.16);
}

.city-select.is-open .city-select__menu {
  display: grid;
  gap: 2px;
}

.city-select__menu button {
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.city-select__menu button:hover,
.city-select__menu button[aria-selected="true"] {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 129, 193, 0.22);
  border-radius: 6px;
  color: var(--ink);
  background: var(--blue-soft);
  font-weight: 700;
  text-decoration: none;
}

.header-phone .fa {
  color: var(--blue);
}

.header-phone:hover {
  border-color: rgba(0, 129, 193, 0.44);
  color: var(--blue-dark);
  background: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--blue-dark);
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(0, 129, 193, 0.18);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: var(--blue-dark);
}

.button--small {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 14px;
}

.button--green {
  width: 100%;
  border-color: var(--green-dark);
  background: var(--green);
  box-shadow: 0 12px 30px rgba(71, 188, 88, 0.22);
}

.button--green:hover {
  background: var(--green-dark);
}

.button--footer {
  border-color: rgba(255, 255, 255, 0.42);
  background: var(--green);
  box-shadow: none;
}

.button--footer:hover {
  border-color: #fff;
  background: var(--green-dark);
}

.callback-offer {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.callback-hint {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  z-index: 30;
  display: none;
  width: max-content;
  min-width: 0;
  max-width: min(280px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 45, 53, 0.16);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.callback-hint::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}

.callback-offer.is-hint-open .callback-hint,
.callback-offer.is-hint-measuring .callback-hint {
  display: block;
}

.callback-offer.is-hint-open .callback-hint {
  opacity: 1;
  transform: translateY(0);
}

.callback-offer.is-hint-top .callback-hint {
  top: auto;
  bottom: calc(100% + 10px);
  transform: translateY(6px);
}

.callback-offer.is-hint-top.is-hint-open .callback-hint {
  transform: translateY(0);
}

.callback-offer.is-hint-top .callback-hint::after {
  top: auto;
  bottom: -6px;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.callback-offer.is-hint-right .callback-hint {
  right: 0;
  left: auto;
}

.callback-offer.is-hint-right .callback-hint::after {
  right: 18px;
  left: auto;
}

.callback-offer.is-hint-left .callback-hint {
  right: auto;
  left: 0;
}

.callback-offer.is-hint-left .callback-hint::after {
  right: auto;
  left: 18px;
}

.callback-offer .button {
  white-space: nowrap;
}

.callback-offer--header {
  max-width: none;
}

.callback-offer--header::after,
.callback-offer--footer::after {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 129, 193, 0.28);
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.callback-offer--card {
  display: block;
  margin-top: 16px;
}

.callback-offer--card .callback-hint {
  max-width: 260px;
}

.callback-offer--footer {
  justify-self: end;
}

.callback-offer--footer .callback-hint {
  max-width: 280px;
}

.case-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(64, 77, 89, 0.98) 0%, rgba(0, 104, 155, 0.95) 54%, rgba(50, 137, 63, 0.88) 100%);
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.14), transparent 34%);
  background-size: 76px 76px, 76px 76px, auto;
  opacity: 0.34;
  pointer-events: none;
}

.case-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  transform: rotate(-8deg);
  opacity: 0.42;
  pointer-events: none;
}

.case-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  min-height: 640px;
  padding: 58px 0;
}

.home-grid {
  grid-template-columns: 265px minmax(0, 1fr) 390px;
}

.case-rail {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: center;
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.case-rail > span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case-rail strong {
  margin: 18px 0 24px;
  font-size: 26px;
  line-height: 1.08;
}

.case-rail nav {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.case-rail nav a {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

.case-rail .registry-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  min-height: auto;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  font-size: 14px;
}

.case-rail .registry-link span {
  color: rgba(255, 255, 255, 0.62);
}

.case-rail .registry-link:hover,
.case-rail .registry-link.is-active {
  color: #fff;
  background: transparent;
}

.case-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.case-title h1 {
  margin-bottom: 24px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.case-title p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  line-height: 1.48;
}

.case-photo {
  position: relative;
  align-self: center;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.case-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.result-section,
.process-section,
.control-section,
.document-section,
.registry-section {
  padding: 74px 0;
}

.result-section,
.document-section {
  background: rgba(255, 255, 255, 0.72);
}

.result-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.section-kicker {
  position: sticky;
  top: 110px;
}

.section-kicker span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 9px;
  border-radius: 5px;
  color: #fff;
  background: var(--dark);
  font-size: 13px;
  font-weight: 700;
}

.section-kicker h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.12;
}

.result-ledger {
  display: grid;
  gap: 12px;
}

.result-ledger article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  min-height: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(31, 45, 53, 0.06);
}

.result-ledger article span {
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 700;
}

.result-ledger article p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.action-note {
  padding: 24px;
  border: 1px solid rgba(0, 129, 193, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.note-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.phone-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #3f254d;
  font-size: 28px;
  line-height: 1.1;
  text-decoration: none;
}

.action-note p {
  color: var(--muted);
}

.action-note small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.action-note small .fa {
  color: var(--green);
}

.process-section {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 104, 155, 0.95), rgba(64, 77, 89, 0.96)),
    var(--blue-dark);
}

.process-section .section-kicker h2 {
  color: #fff;
}

.process-section .section-kicker span {
  color: var(--blue-dark);
  background: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 0;
  height: 100%;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.route-list span {
  display: block;
  width: 44px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.18;
  text-align: left;
}

.route-list p {
  padding-top: 1px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.38;
}

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

.control-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items: start;
}

.control-grid article {
  min-height: 270px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 45, 53, 0.06);
}

.control-grid article > .fa {
  margin-bottom: 20px;
  color: var(--green-dark);
  font-size: 38px;
}

.control-grid h2 {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.15;
}

.control-grid p {
  color: var(--muted);
}

.control-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.control-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.control-list span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.control-list strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.control-list--compact li {
  grid-template-columns: 82px minmax(0, 1fr);
}

.document-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.document-meta {
  position: sticky;
  top: 110px;
  padding: 22px 0;
}

.document-meta span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 9px;
  border-radius: 5px;
  color: #fff;
  background: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.document-meta h2 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.12;
}

.document-meta p {
  color: var(--muted);
}

.document-body {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.document-body h2 {
  margin-bottom: 24px;
  color: #000;
  font-size: 30px;
  line-height: 1.23;
}

.document-body h3 {
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
}

.document-body p {
  margin-bottom: 14px;
  color: #394851;
  font-size: 17px;
  line-height: 1.78;
}

.document-summary {
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid rgba(0, 129, 193, 0.22);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--blue-soft);
}

.document-summary p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.62;
}

.document-full {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.document-full h3 {
  color: var(--green-dark);
}

.document-full h2 {
  margin-bottom: 22px;
}

.registry-section {
  background: #fff;
}

.registry-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.service-ledger {
  display: grid;
  gap: 10px;
}

.service-ledger a {
  display: grid;
  grid-template-columns: 50px 48px 230px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 106px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 34px rgba(31, 45, 53, 0.06);
}

.service-ledger a:hover {
  border-color: rgba(0, 129, 193, 0.42);
  background: var(--blue-soft);
}

.service-ledger span {
  color: var(--blue);
  font-weight: 700;
}

.service-ledger .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 23px;
}

.service-ledger strong {
  font-size: 21px;
  line-height: 1.18;
}

.service-ledger em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.site-footer {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(64, 77, 89, 0.98), rgba(0, 104, 155, 0.92)),
    var(--dark);
}

.footer-grid {
  display: block;
  min-height: 156px;
  padding: 30px 0;
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 96px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-info {
  display: block;
}

.footer-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-phone {
  display: inline-block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.footer-phone:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-footer h4 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.35;
}

.site-footer h5 {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 400;
}

.footer-policy {
  margin-top: 10px;
}

.footer-policy a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-policy a:hover {
  color: #fff;
}

.site-footer abbr {
  color: #fff;
  text-decoration: none;
}

.site-footer p {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-cities {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.45;
}

.to-top {
  position: absolute;
  right: calc((100vw - 1180px) / 2 - 58px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.callback-modal[hidden] {
  display: none;
}

.callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 45, 53, 0.76);
}

.callback-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.callback-form {
  padding: 34px;
}

.callback-form__icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 22px;
}

.callback-form h4 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
}

.callback-form__lead {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.callback-field {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.callback-field span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.callback-form input[type="tel"] {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid #b9d8e8;
  border-radius: 8px;
  color: var(--ink);
  background: #f4fbff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
}

.callback-form input[type="tel"]:focus {
  outline: 2px solid rgba(0, 129, 193, 0.18);
  border-color: var(--blue);
  background: #fff;
}

.callback-form input[type="tel"].is-invalid {
  border-color: #d14a3a;
  background: #fff7f5;
}

.callback-form input[type="tel"].is-invalid:focus {
  outline-color: rgba(209, 74, 58, 0.18);
  border-color: #d14a3a;
}

.callback-form__note {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.callback-form__error {
  min-height: 20px;
  margin-bottom: 18px;
  color: #b73528;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.callback-form__error[hidden] {
  display: none;
}

.callback-consent {
  margin: 0 0 18px;
}

.callback-consent__check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.callback-consent__check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.callback-consent.is-invalid .callback-consent__check {
  color: #b73528;
}

.callback-consent__details {
  margin: 8px 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.callback-consent__details a,
.callback-services > a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callback-services {
  position: relative;
  display: inline-flex;
}

.callback-services__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 3;
  width: min(250px, 76vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 45, 53, 0.16);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.16s ease;
}

.callback-services:hover .callback-services__tip,
.callback-services:focus-within .callback-services__tip,
.callback-services.is-open .callback-services__tip {
  opacity: 1;
  pointer-events: auto;
}

.callback-services__tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.callback-form__error--consent {
  min-height: 0;
  margin: 8px 0 0 28px;
}

.callback-form button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.callback-form button:hover {
  background: var(--green-dark);
}

.netlify-hidden {
  display: none;
}

.thanks-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 0;
  background: var(--soft);
}

.thanks-card {
  display: grid;
  gap: 18px;
  max-width: 640px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.thanks-card .brand {
  padding: 0;
}

.thanks-card h1 {
  color: var(--ink);
  font-size: 44px;
  line-height: 1.05;
}

.thanks-card p {
  color: var(--muted);
  font-size: 20px;
}

.thanks-card .button {
  width: fit-content;
}

.policy-section {
  padding: 58px 0;
  background: var(--soft);
}

.policy-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.policy-body {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 45, 53, 0.06);
}

.policy-body p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.policy-body p + h2 {
  margin-top: 28px;
}

.policy-body h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.policy-body a {
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .header-grid {
    grid-template-columns: 226px 1fr;
  }

  .header-contact {
    justify-self: end;
  }

  .case-grid,
  .home-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .case-photo {
    grid-column: 2;
  }

  .result-grid,
  .document-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .result-grid .action-note,
  .document-grid .action-note {
    grid-column: 2;
  }

  .service-ledger a {
    grid-template-columns: 42px 48px 200px 1fr;
  }
}

@media (max-width: 1340px) {
  .to-top {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    position: static;
  }

  .header-grid,
  .case-grid,
  .home-grid,
  .result-grid,
  .process-grid,
  .control-grid,
  .document-grid,
  .registry-grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .header-grid {
    gap: 10px;
    padding: 12px 0 14px;
    text-align: center;
  }

  .brand {
    grid-column: 1;
    grid-row: auto;
    order: 1;
    justify-content: center;
    justify-self: center;
  }

  .brand img {
    width: 174px;
  }

  .header-contact {
    grid-column: 1;
    grid-row: auto;
    order: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: min(100%, 460px);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 45, 53, 0.08);
    justify-self: center;
    white-space: normal;
  }

  .top-registry {
    grid-column: 1;
    grid-row: auto;
    order: 3;
    width: min(100%, 560px);
    margin: 2px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .top-registry::before {
    content: "Услуги";
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .top-registry .registry-link {
    min-height: 0;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.22;
    text-align: left;
  }

  .city-select {
    order: 1;
    justify-self: stretch;
  }

  .city-select__button {
    width: 100%;
    min-width: 132px;
    justify-content: center;
  }

  .city-select__menu {
    left: 50%;
    transform: translateX(-50%);
  }

  .header-phone {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .callback-offer--header {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    max-width: none;
  }

  .callback-offer--header .button {
    width: 100%;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px;
    text-align: center;
  }

  .footer-info {
    display: contents;
  }

  .footer-label {
    order: 1;
  }

  .footer-phone {
    order: 2;
    font-size: 30px;
  }

  .site-footer p {
    order: 3;
  }

  .site-footer .footer-cities {
    order: 4;
    max-width: 320px;
  }

  .callback-offer--footer {
    order: 5;
    justify-self: center;
  }

  .site-footer h5 {
    order: 6;
  }

  .case-grid,
  .home-grid {
    min-height: 0;
    padding: 36px 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .case-title { order: 1; }
  .case-photo { order: 2; }
  .case-rail { order: 3; }

  .case-title,
  .case-photo,
  .case-rail {
    grid-column: 1;
  }

  .case-rail {
    min-height: 0;
    align-self: auto;
  }

  .case-title h1 {
    font-size: 42px;
  }

  .case-title p {
    font-size: 19px;
  }

  .case-photo {
    max-width: 560px;
    aspect-ratio: 16 / 8.5;
    justify-self: center;
    border-width: 7px;
    box-shadow: 0 18px 44px rgba(31, 45, 53, 0.16);
  }

  .case-photo img {
    min-height: 0;
    object-position: center 58%;
  }

  .section-kicker,
  .document-meta {
    position: static;
  }

  .result-section,
  .process-section,
  .control-section,
  .document-section,
  .registry-section {
    padding: 52px 0;
  }

  .route-list {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
  }

  .result-grid .action-note,
  .document-grid .action-note {
    grid-column: auto;
  }

  .service-ledger a {
    grid-template-columns: 42px 44px 1fr;
  }

  .service-ledger em {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 162px;
  }

  .brand {
    padding: 6px 0;
  }

  .header-contact {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    padding: 10px;
  }

  .header-phone,
  .callback-offer--header {
    grid-column: 1;
  }

  .top-registry {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
  }

  .case-title h1 {
    font-size: 34px;
  }

  .case-title p {
    font-size: 17px;
  }

  .case-rail {
    padding: 18px;
  }

  .case-photo {
    max-width: 390px;
    aspect-ratio: 16 / 9;
    border-width: 5px;
    border-radius: 7px;
  }

  .case-photo img {
    min-height: 0;
  }

  .section-kicker h2,
  .document-meta h2 {
    font-size: 28px;
  }

  .result-ledger article,
  .route-list li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 16px 18px;
  }

  .route-list span {
    width: auto;
    font-size: 24px;
  }

  .route-list p {
    padding-top: 0;
    line-height: 1.32;
  }

  .control-grid article,
  .document-body,
  .action-note {
    padding: 22px;
  }

  .control-list li,
  .control-list--compact li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .document-body h2 {
    font-size: 24px;
  }

  .document-body h3 {
    font-size: 16px;
  }

  .document-body p {
    font-size: 16px;
  }

  .policy-section {
    padding: 42px 0;
  }

  .policy-body {
    padding: 24px;
  }

  .policy-body h2 {
    font-size: 22px;
  }

  .policy-body p {
    font-size: 16px;
  }

  .document-summary {
    margin-bottom: 26px;
    padding: 18px;
  }

  .document-summary p {
    font-size: 16px;
  }

  .phone-link {
    font-size: 24px;
  }

  .callback-modal {
    padding: 14px;
  }

  .callback-form {
    padding: 26px 20px 22px;
  }

  .callback-form h4 {
    font-size: 26px;
  }

  .callback-form__lead {
    font-size: 16px;
  }

  .thanks-card {
    padding: 28px 22px;
  }

  .thanks-card h1 {
    font-size: 34px;
  }

  .thanks-card p {
    font-size: 17px;
  }

  .service-ledger a {
    grid-template-columns: 1fr;
  }

  .service-ledger em {
    grid-column: auto;
  }

  .to-top {
    display: none;
  }
}
