:root {
  --bg: #f3f1ed;
  --paper: #ffffff;
  --paper-soft: #fbf8f1;
  --ink: #26201d;
  --muted: #6f6860;
  --line: #ded6ca;
  --maroon: #8f2633;
  --maroon-dark: #6f1c27;
  --gold: #b89454;
  --gold-soft: #efe2c5;
  --shadow: 0 14px 36px rgba(52, 34, 26, 0.09);
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "Segoe UI", sans-serif;
  line-height: 1.58;
}

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

body::before {
  content: "";
  display: block;
  height: 7px;
  background: linear-gradient(90deg, var(--maroon), #b43d42 55%, var(--gold));
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto auto;
  gap: 26px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(48, 36, 31, 0.05);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--maroon);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--maroon-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  color: var(--maroon-dark);
  font-size: 14px;
  font-weight: 700;
}

.nav a:last-child {
  border-right: 0;
}

.nav a:hover {
  background: var(--gold-soft);
}

.nav a.is-active {
  background: var(--maroon);
  color: white;
}

.header-phone {
  color: var(--maroon-dark);
  font-weight: 800;
  white-space: nowrap;
}

.moscow-time {
  display: inline-grid;
  min-height: 34px;
  align-content: center;
  border: 1px solid rgba(126, 24, 31, 0.18);
  background: var(--paper-soft);
  color: var(--maroon-dark);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.moscow-time .time-line {
  line-height: 1.15;
}

.moscow-time .hours-line {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.weather-badge a {
  display: grid;
  min-height: 42px;
  align-content: center;
  border: 1px solid rgba(126, 24, 31, 0.18);
  background: white;
  color: var(--maroon-dark);
  padding: 5px 10px;
  white-space: nowrap;
}

.weather-badge strong,
.weather-badge span {
  display: block;
  line-height: 1.15;
}

.weather-badge strong {
  font-size: 15px;
}

.weather-badge span {
  max-width: 170px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--maroon);
  border-radius: 0;
  background: var(--paper);
  color: var(--maroon);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 36vw);
  gap: clamp(24px, 5vw, 70px);
  align-items: stretch;
  padding: 46px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(251, 248, 241, 0.96)),
    radial-gradient(circle at 18% 10%, rgba(184, 148, 84, 0.15), transparent 32%);
  color: var(--ink);
  overflow: hidden;
}

.page-hero {
  padding: 62px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 248, 241, 0.96)),
    url("assets/legal-office-hero.png") center / cover;
}

.page-hero-inner {
  max-width: 840px;
  padding: 36px 0;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.page-hero--compact {
  padding-top: 18px;
  padding-bottom: 18px;
}

.page-hero--compact .page-hero-inner {
  max-width: 1080px;
  padding: 4px 0;
}

.page-hero--compact h1 {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 1.08;
}

.page-hero--compact p:not(.eyebrow) {
  max-width: 1080px;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.42;
}

.page-hero--compact + .section {
  padding-top: 24px;
}

.hero::before {
  content: "АП";
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: -26px;
  color: rgba(143, 38, 51, 0.05);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(140px, 22vw, 280px);
  font-weight: 700;
  line-height: 1;
}

.hero-media {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  background-image:
    linear-gradient(180deg, rgba(143, 38, 51, 0.08), rgba(38, 32, 29, 0.18)),
    url("assets/legal-office-hero.png");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.hero-overlay {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 430px;
  max-width: 860px;
  flex-direction: column;
  justify-content: center;
  order: -1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
}

h1,
h2 {
  color: var(--maroon-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 780px;
  font-size: clamp(38px, 5.2vw, 68px);
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-badge-link {
  display: inline-flex;
  margin-top: 12px;
  border: 1px solid rgba(126, 24, 31, 0.25);
  background: var(--gold-soft);
  color: var(--maroon-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 19px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button.primary {
  background: var(--maroon);
  color: white;
}

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

.button.secondary {
  border-color: var(--maroon);
  background: white;
  color: var(--maroon-dark);
}

.button.secondary:hover {
  background: var(--gold-soft);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.hero-facts div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  margin-bottom: 4px;
  color: var(--maroon-dark);
  font-weight: 800;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 72px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 790px;
  padding-left: 18px;
  border-left: 5px solid var(--gold);
}

.section-heading h2,
.request h2 {
  font-size: clamp(31px, 4.3vw, 50px);
}

.calculators-callout {
  background: var(--paper);
}

.calculators-callout-box {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--maroon);
  background: var(--paper-soft);
  padding: 18px;
}

.calculators-callout-box p {
  margin: 0;
}

.calculators-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  background: var(--paper);
}

.registry-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 16px;
}

.registry-list p {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.registry-list p:last-child {
  border-bottom: 0;
}

.registry-list strong {
  color: var(--ink);
}

.registry-list a {
  color: var(--maroon-dark);
  font-weight: 800;
}

.services {
  background: var(--bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-card,
.step,
.case-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-card {
  min-height: 222px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.service-card.accent {
  background: var(--maroon);
  color: white;
}

.card-icon {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 900;
}

.service-card h3,
.step h3,
.case-panel h3 {
  margin-bottom: 12px;
  color: var(--maroon-dark);
  font-size: 21px;
}

.service-card p,
.step p,
.case-panel li {
  color: var(--muted);
}

.service-card.accent h3,
.service-card.accent p {
  color: white;
}

.ai-advantage {
  background: var(--paper);
}

.ai-advantage-inner {
  border: 1px solid var(--line);
  border-top: 4px solid var(--maroon);
  background: var(--paper-soft);
  padding: 24px;
}

.ai-advantage-lead {
  max-width: 980px;
  margin: 22px 0 0;
  color: var(--ink);
}

.ai-advantage-benefits {
  margin: 16px 0;
  color: var(--maroon-dark);
  font-weight: 800;
}

.ai-advantage-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.approach {
  background: var(--paper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.step {
  padding: 24px;
  background: var(--paper-soft);
}

.step span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 44px;
  place-items: center;
  border: 1px solid var(--gold);
  background: white;
  color: var(--maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.cases {
  background: var(--bg);
}

.case-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.case-panel {
  padding: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.case-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.case-panel li + li {
  margin-top: 10px;
}

.cases-docs {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 18px;
}

.cases-docs-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cases-docs-head h3 {
  color: var(--maroon-dark);
  font-size: 24px;
}

.cases-docs-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cases-docs-head a {
  color: var(--maroon-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
}

.cases-docs-note {
  margin: 10px 0 0;
  color: var(--muted);
}

.cases-docs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cases-docs.is-empty .cases-docs-list {
  display: none;
}

.cases-disclaimer {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.case-doc-item {
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 14px;
}

.case-doc-item h4 {
  margin: 0;
  color: var(--maroon-dark);
  font-size: 18px;
}

.case-doc-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.case-doc-item div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.case-doc-item span,
.case-doc-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.case-doc-item a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--maroon-dark);
  font-weight: 800;
  text-decoration: underline;
}

.case-doc-source {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.news {
  background: var(--paper);
}

.news-panel {
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.news-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.news-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.news-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.news-toolbar a {
  color: var(--maroon-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

.news-item {
  display: grid;
  gap: 9px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.news-item:nth-child(2n) {
  border-right: 0;
}

.news-item time {
  color: var(--maroon);
  font-size: 14px;
  font-weight: 800;
}

.news-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.news-item span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(126, 24, 31, 0.18);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.news-item a:hover h3 {
  color: var(--maroon-dark);
  text-decoration: underline;
}

.news-item.is-loading h3,
.news-item.is-error h3 {
  color: var(--muted);
}

.duty {
  background: var(--paper);
}

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

.duty-card {
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 24px;
  box-shadow: var(--shadow);
}

.duty-card-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.duty-card-head h3 {
  color: var(--maroon-dark);
  font-size: 24px;
}

.duty-card-head span {
  flex: 0 0 auto;
  border: 1px solid rgba(126, 24, 31, 0.18);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.duty-options {
  display: grid;
  gap: 10px;
}

.duty-options label {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.duty-options input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.duty-result {
  display: grid;
  gap: 6px;
  border-top: 4px solid var(--gold);
  background: white;
  padding: 18px;
}

.duty-result span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.duty-result strong {
  color: var(--maroon-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
}

.duty-result small,
.duty-info {
  color: var(--muted);
}

.duty-cta {
  width: fit-content;
}

.duty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.duty-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(126, 24, 31, 0.18);
  background: white;
  color: var(--maroon-dark);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.duty-links a:hover {
  background: var(--gold-soft);
}

.duty-info {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 18px;
}

.duty-info p {
  margin: 0;
}

.duty-info .button {
  width: fit-content;
}

.duty-reference {
  margin-top: 26px;
}

.duty-reference-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: white;
}

.duty-reference-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.duty-reference-table th,
.duty-reference-table td {
  border: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.duty-reference-table thead th {
  background: var(--paper-soft);
  color: var(--maroon-dark);
  font-size: 13px;
  font-weight: 800;
}

.duty-reference-table td {
  font-size: 14px;
}

.duty-reference-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.duty-explainer {
  margin-top: 28px;
}

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

.duty-explainer-grid article {
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 14px;
}

.duty-explainer-grid h3 {
  margin: 0;
  color: var(--maroon-dark);
  font-size: 18px;
}

.duty-explainer-grid p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.duty-explainer-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.penalty {
  background: var(--paper);
}

.penalty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 18px;
  margin-top: 34px;
}

.penalty-panel,
.penalty-summary {
  border: 1px solid var(--line);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.penalty-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

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

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(143, 38, 51, 0.12);
}

.penalty-summary {
  position: sticky;
  top: 104px;
  display: grid;
  align-self: start;
  gap: 16px;
  padding: 24px;
  border-top: 4px solid var(--gold);
  background: white;
}

.penalty-summary > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.penalty-summary strong {
  color: var(--maroon-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.penalty-summary dl {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
}

.penalty-summary dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.penalty-summary dl div:last-child {
  border-bottom: 0;
}

.penalty-summary dt {
  color: var(--muted);
}

.penalty-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.penalty-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.map-section {
  background: var(--paper);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  margin-top: 34px;
}

.map-card,
.map-frame {
  border: 1px solid var(--line);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.map-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.map-card h3 {
  color: var(--maroon-dark);
  font-size: 24px;
}

.map-card p {
  margin: 0;
  color: var(--muted);
}

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

.map-frame {
  min-height: 430px;
  overflow: hidden;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.court-deposit {
  background: var(--paper);
}

.court-deposit-card {
  display: grid;
  gap: 12px;
  max-width: 900px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 18px;
}

.court-deposit-card p {
  margin: 0;
  color: var(--ink);
}

.court-deposit-card .button {
  width: fit-content;
}

.request {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  padding: 72px clamp(18px, 4vw, 56px);
  border-top: 4px solid var(--maroon);
  background: var(--paper-soft);
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: white;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(143, 38, 51, 0.12);
}

textarea {
  resize: vertical;
}

.request-form .button {
  width: fit-content;
}

.request-form .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

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

.request-form .consent-row a {
  color: var(--maroon-dark);
  text-decoration: underline;
}

.form-note {
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.request-backup {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.request-backup-label {
  color: var(--muted);
}

.request-backup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.request-backup-links .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: 42px clamp(18px, 4vw, 56px);
  border-top: 6px solid var(--gold);
  background: var(--maroon-dark);
  color: white;
}

.footer .brand strong,
.footer .brand small {
  color: white;
}

.footer .brand-mark {
  background: white;
  color: var(--maroon-dark);
}

.footer p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.74);
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px 16px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.footer-legal a {
  color: white;
  text-decoration: underline;
}

address {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  text-align: right;
}

address a {
  font-weight: 800;
}

.max-call-button {
  position: fixed;
  z-index: 30;
  right: 22px;
  top: 96px;
  bottom: auto;
  display: inline-flex;
  min-width: 89px;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  align-content: center;
  border: 1px solid rgba(145, 104, 255, 0.42);
  border-radius: 17px;
  background:
    radial-gradient(circle at 72% 18%, rgba(172, 55, 255, 0.66), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(0, 210, 255, 0.58), transparent 36%),
    linear-gradient(150deg, #02040d 0%, #07153b 48%, #0825d8 74%, #721bde 100%);
  color: white;
  padding: 7px 12px 7px 8px;
  box-shadow: 0 18px 46px rgba(45, 35, 205, 0.38);
  overflow: hidden;
}

.max-call-button::before {
  content: "";
  display: block;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 51% 50%, #07123a 0 33%, transparent 34%),
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 17%),
    conic-gradient(from 215deg, #42e0ff, #287aff 31%, #5c63ff 54%, #c33cff 79%, #42e0ff);
  box-shadow:
    inset 0 -7px 13px rgba(17, 24, 84, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.max-call-button::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  width: 11px;
  height: 8px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, #42e0ff, #2f7cff);
  transform: rotate(-22deg);
}

.max-call-button span,
.max-call-button strong {
  display: block;
  line-height: 1.05;
  text-align: left;
}

.max-call-button span {
  color: white;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: lowercase;
}

.max-call-button strong {
  margin-top: 3px;
  color: #111827;
  font-size: 15px;
}

.max-call-button:hover {
  border-color: rgba(93, 215, 255, 0.78);
  box-shadow: 0 20px 52px rgba(72, 38, 226, 0.48);
  transform: translateY(-1px);
}

.legal-bot {
  position: fixed;
  right: 18px;
  top: 176px;
  bottom: auto;
  z-index: 60;
}

.legal-bot-toggle {
  min-height: 42px;
  border: 1px solid var(--maroon);
  background: var(--maroon);
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
}

.legal-bot-panel {
  width: min(360px, calc(100vw - 24px));
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px;
}

.legal-bot-title {
  margin: 0;
  color: var(--maroon-dark);
  font-weight: 800;
}

.legal-bot-disclaimer,
.legal-bot-confidential {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.legal-bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.legal-bot-actions button {
  border: 1px solid rgba(126, 24, 31, 0.2);
  background: var(--paper-soft);
  color: var(--maroon-dark);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
}

.legal-bot-answer {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 10px;
  font-size: 13px;
  color: var(--ink);
}

.legal-bot-answer a,
.footer-privacy-link a {
  color: var(--maroon-dark);
  text-decoration: underline;
}

body.footer-in-view .max-call-button,
body.footer-in-view .legal-bot {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto auto auto;
    gap: 14px;
  }

  .weather-badge span {
    display: none;
  }

  .weather-badge a {
    min-height: 34px;
    padding: 0 9px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    border-right: 0;
    border-left: 0;
    flex-direction: column;
  }

  .nav a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .intro,
  .request {
    grid-template-columns: 1fr;
  }

  .penalty-layout {
    grid-template-columns: 1fr;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .penalty-summary {
    position: static;
  }

  .hero-media {
    min-height: 310px;
  }

  .hero-inner {
    min-height: auto;
  }

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

@media (max-width: 700px) {
  body::before {
    height: 5px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  .brand strong {
    font-size: 16px;
    line-height: 1;
  }

  .brand small {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .moscow-time {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 4px 8px;
    font-size: 11px;
  }

  .moscow-time .hours-line {
    font-size: 10px;
  }

  .weather-badge {
    display: none;
  }

  .legal-bot {
    right: 12px;
    top: auto;
    bottom: 142px;
  }

  .legal-bot-toggle {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .legal-bot-panel {
    width: min(320px, calc(100vw - 24px));
  }

  .hero,
  .section,
  .request,
  .footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.1;
  }

  .page-hero--compact {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .page-hero--compact h1 {
    font-size: 27px;
  }

  .page-hero--compact p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.35;
  }

  .page-hero--compact + .section {
    padding-top: 20px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-media {
    min-height: 240px;
  }

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

  .hero-facts,
  .service-grid,
  .steps,
  .case-layout,
  .cases-docs-list,
  .news-list,
  .duty-grid,
  .duty-explainer-grid,
  .penalty-row,
  .request-form,
  .footer {
    grid-template-columns: 1fr;
  }

  .news-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-item {
    border-right: 0;
  }

  .duty-card-head {
    flex-direction: column;
  }

  .hero-facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .section,
  .request {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .request-form {
    padding: 16px;
  }

  .form-note,
  address {
    text-align: left;
  }

  .max-call-button {
    right: 14px;
    top: auto;
    bottom: 72px;
    min-width: 72px;
    min-height: 42px;
    padding: 6px 10px 6px 7px;
  }

  .max-call-button::before {
    width: 28px;
    height: 28px;
  }

  .max-call-button::after {
    left: 11px;
    top: 28px;
    width: 9px;
    height: 7px;
  }

  .max-call-button span {
    font-size: 16px;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  .max-call-button {
    right: 10px;
    bottom: 78px;
    min-width: 58px;
    min-height: 36px;
    gap: 6px;
    padding: 5px 8px 5px 6px;
    border-radius: 12px;
  }

  .max-call-button::before {
    width: 22px;
    height: 22px;
  }

  .max-call-button::after {
    left: 9px;
    top: 23px;
    width: 7px;
    height: 5px;
  }

  .max-call-button span {
    font-size: 12px;
  }

  .legal-bot {
    right: 10px;
    bottom: 120px;
    top: auto;
  }

  .legal-bot-toggle {
    min-height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }

  .legal-bot-panel {
    width: min(280px, calc(100vw - 20px));
  }

  .footer {
    padding-bottom: 70px;
  }
}

.order-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.order-sheet {
  display: block;
  min-width: 0;
  overflow-x: auto;
}

.order-workspace {
  display: flex;
  gap: 18px;
  align-items: start;
}

.order-workspace .order-sheet {
  flex: 1 1 auto;
  max-width: calc(100% - 318px);
}

.order-reference {
  flex: 0 0 300px;
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  background: #fffaf2;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.order-reference h3 {
  margin: 0 0 12px;
  color: var(--maroon);
  font-size: 1.35rem;
  line-height: 1.18;
}

.order-reference p {
  margin: 0 0 14px;
  color: var(--muted);
}

.order-reference ol {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--text);
}

.order-reference li + li {
  margin-top: 8px;
}

.order-table {
  /* print-form refresh: 2026-06-01 19:10 */
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #000;
  table-layout: fixed;
  font-family: "Times New Roman", Times, serif;
}

.order-table th,
.order-table td {
  border: 1px solid #000;
  padding: 3px 4px;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.15;
}

.order-table th {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

.order-table .label-cell {
  white-space: nowrap;
  width: 12%;
}

.order-table .hint {
  text-align: center;
  font-size: 11px;
  color: #222;
  font-style: italic;
}

.order-table .stamp {
  font-weight: 700;
}

.order-table input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #000;
  background: transparent;
  font: inherit;
  padding: 0 2px;
  min-height: 18px;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: 700;
}

.order-part {
  background: #fff;
  border: 1px solid #ded6ca;
  padding: 14px;
}

.order-part-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #6d2134;
  letter-spacing: 0.4px;
}

.order-main-title {
  margin: 0 0 10px;
  font-size: 24px;
}

.order-label {
  margin: 10px 0 4px;
  font-weight: 700;
}

.order-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
}

.order-line input {
  flex: 1;
  min-width: 110px;
  border: 0;
  border-bottom: 1px solid #6f6760;
  padding: 2px 3px;
  font: inherit;
  background: transparent;
}

.order-stamp {
  margin: 14px 0 0;
  font-weight: 700;
}

@media (max-width: 980px) {
  .order-workspace {
    display: block;
  }

  .order-reference {
    position: static;
    margin-top: 18px;
  }

  .order-workspace .order-sheet {
    max-width: 100%;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  .site-header,
  .footer,
  .max-call-button,
  .helper-fab,
  .no-print,
  .order-reference,
  .page-hero,
  .section-heading {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 11px;
  }

  .section {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .order-workspace {
    display: block;
  }

  .order-sheet {
    grid-template-columns: 1fr 1fr;
    gap: 8mm;
  }

  .order-part {
    break-inside: avoid;
    border-color: #444;
    padding: 6mm 5mm;
    font-size: 10.5px;
  }

  .order-part-title {
    margin: 0 0 4px;
    font-size: 10px;
  }

  .order-main-title {
    margin: 0 0 6px;
    font-size: 18px;
  }

  .order-label {
    margin: 6px 0 2px;
  }

  .order-line {
    margin: 0 0 4px;
    gap: 4px;
    font-size: 10px;
    line-height: 1.2;
  }

  .order-line input {
    min-width: 70px;
    padding: 0 2px;
  }
}

/* Hard override: print only order sheet on one A4 page */
@media print {
  @page {
    size: A4 portrait;
    margin: 6mm;
  }

  header,
  footer,
  .site-header,
  .footer,
  .page-hero,
  .menu-button,
  .max-call-button,
  .helper-fab,
  .legal-bot,
  .legal-bot-panel,
  .legal-bot-toggle,
  .section-heading,
  .order-reference,
  .order-tools,
  .form-note.no-print {
    display: none !important;
    visibility: hidden !important;
  }

  body,
  main,
  .section {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
  }

  .section > *:not(.order-workspace) {
    display: none !important;
  }

  .order-workspace > *:not(.order-sheet) {
    display: none !important;
  }

  .order-workspace {
    display: block !important;
  }

  .order-sheet {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 278mm !important;
  }

  .order-table {
    width: 100% !important;
    height: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    border: 1px solid #333 !important;
  }

  .order-table th,
  .order-table td {
    border: 1px solid #333 !important;
    padding: 1.8mm 1.8mm !important;
    font-size: 9.8px !important;
    line-height: 1.2 !important;
    height: 5.9mm !important;
  }

  .order-table th {
    font-size: 12px !important;
    text-align: center !important;
  }

  .order-table .hint {
    font-size: 8.4px !important;
    text-align: center !important;
    font-style: italic !important;
  }

  .order-table input {
    min-height: 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #444 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 0 !important;
  }
}
