:root {
  --bg: #0b1125;
  --bg-soft: #111a33;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --text: #101828;
  --text-light: #5b6475;
  --line: #d9e1ec;
  --accent: #af4e1e;
  --accent-dark: #8f3f17;
  --container: 1200px;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

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

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

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

.narrow {
  max-width: 860px;
}

.section {
  padding: 72px 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 17, 37, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 80px;
}

.logo img {
  width: 140px;
  height: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.main-nav a,
.header-phone,
.site-header .logo {
  color: #fff;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover {
  color: #ffd7c4;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: #ffd7c4;
}

.header-phone::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.36 11.36 0 003.58.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.58 1 1 0 01-.24 1.01l-2.2 2.2z"/></svg>') no-repeat center;
  background-size: contain;
  vertical-align: middle;
}

.header-email::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>') no-repeat center;
  background-size: contain;
  vertical-align: middle;
}

.header-phone,
.header-email {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header-email {
  color: #fff;
}

.header-phone:hover,
.header-phone:focus-visible,
.header-email:hover,
.header-email:focus-visible {
  color: #ffd7c4;
}

.header-phone:hover::before,
.header-phone:focus-visible::before,
.header-email:hover::before,
.header-email:focus-visible::before {
  filter: brightness(1.3);
}

.hero,
.page-hero {
  background: linear-gradient(135deg, #0b1125 0%, #102458 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #d4d9e3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(34px, 6vw, 58px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.lead,
.section-intro {
  color: inherit;
  font-size: 18px;
}

.page-hero .lead,
.hero .lead {
  max-width: 920px;
  color: #e7eaf0;
}

.actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(175, 78, 30, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(175, 78, 30, 0.24);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(175, 78, 30, 0.18), 0 14px 28px rgba(175, 78, 30, 0.24);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.button-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 24px;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.simple-grid {
  gap: 18px;
}

.card,
.feature,
.contact-card,
.service-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.styled-list,
.requisites-list {
  padding-left: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.contact-cta {
  background: linear-gradient(180deg, #f9fafb 0%, #eef3f8 100%);
}

.form {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8a94a6;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(175, 78, 30, 0.72);
  box-shadow: 0 0 0 4px rgba(175, 78, 30, 0.12);
}

.form-note {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 14px;
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.form-status.is-success {
  background: #e8f7ee;
  color: #146c2e;
  border: 1px solid #b7e4c7;
}

.form-status.is-error {
  background: #fdecec;
  color: #a61b1b;
  border: 1px solid #f3b6b6;
}

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

.contact-grid,
.service-layout {
  display: grid;
  gap: 24px;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.service-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.map-placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  background: #fff;
}

.site-footer {
  padding: 36px 0;
  background: #0b1125;
  color: #fff;
}

.footer-title {
  font-weight: 700;
}

.site-footer a {
  color: #fff;
}

/* =========================================
   Home page modern layout
========================================= */

:root {
  --bg-dark: #08101f;
  --bg-dark-soft: #0f1b33;
  --surface-strong: #ffffff;
  --surface-muted: #f3f6fa;
  --surface-glass: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --line-soft: #d7dfeb;
  --accent-soft: rgba(175, 78, 30, 0.12);
  --accent-glow: rgba(175, 78, 30, 0.22);
  --text-dark: #0f1728;
  --text-muted: #607089;
  --text-inverse: #f5f7fb;
  --text-inverse-soft: #b7c3d8;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 14px 40px rgba(10, 18, 35, 0.08);
  --shadow-strong: 0 24px 70px rgba(6, 12, 24, 0.28);
}

.section-heading {
  margin-bottom: 40px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.section-heading h2 {
  margin-bottom: 16px;
  max-width: 920px;
}

.section-heading .section-intro {
  max-width: 780px;
  color: var(--text-light);
}

.hero-modern {
  position: relative;
  overflow: hidden;
  padding: 56px 0 32px;
  background:
    radial-gradient(circle at top right, rgba(175, 78, 30, 0.18), transparent 30%),
    linear-gradient(135deg, #08101f 0%, #0d1b36 55%, #13274d 100%);
}

.hero-video-bg-section {
  min-height: calc(100vh - 80px);
  background: #08101f;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 31, 0.08) 0%, rgba(8, 16, 31, 0.20) 100%),
    linear-gradient(90deg, rgba(8, 16, 31, 0.20) 0%, rgba(8, 16, 31, 0.08) 46%, rgba(8, 16, 31, 0.15) 100%);
}

.hero-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 92%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 28px 0 36px;
}

.hero-grid-single {
  grid-template-columns: 1fr;
}

.hero-content {
  max-width: 760px;
}

.hero-modern .eyebrow {
  color: #d3dcec;
  margin-bottom: 18px;
}

.hero-modern h1 {
  max-width: 860px;
  margin-bottom: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-size: clamp(40px, 6vw, 72px);
}

.hero-modern .lead {
  max-width: 720px;
  color: var(--text-inverse-soft);
  font-size: 19px;
}

.hero-modern .actions {
  margin-top: 34px;
}

.hero-modern .button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero-modern .button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef3fb;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-panel {
  position: relative;
  width: min(100%, 470px);
  min-height: 540px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    linear-gradient(160deg, rgba(175, 78, 30, 0.2), transparent 45%);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
}

.hero-panel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.65;
}

.hero-stat {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 16, 31, 0.54);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-stat-top {
  top: 44px;
  left: 38px;
}

.hero-stat-middle {
  top: 200px;
  right: 34px;
}

.hero-stat-bottom {
  bottom: 42px;
  left: 52px;
}

.hero-stat-label {
  color: #bfd0e6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.section-positioning {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

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

.insight-card {
  height: 100%;
  padding: 28px;
  border: 1px solid #e1e8f1;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-soft);
}

.insight-number {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.insight-card h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.insight-card p {
  margin: 0;
  color: var(--text-light);
}

.section-services-overview {
  background: var(--surface-muted);
}

.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #d8e0eb;
}

.service-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 140px;
  gap: 24px;
  align-items: start;
  padding: 28px 18px;
  margin: 0 -18px;
  border-bottom: 1px solid #d8e0eb;
  border-radius: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.service-row:hover {
  transform: translateX(4px);
  border-color: #c8d4e4;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(10, 18, 35, 0.05);
}

.service-row-number {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 6px;
}

.service-row-body h3 {
  margin-bottom: 10px;
  font-size: 26px;
}

.service-row-body p {
  margin: 0;
  max-width: 760px;
  color: var(--text-light);
}

.service-row-action {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

.button-outline-dark {
  background: transparent;
  color: var(--text);
  border: 1px solid #cad5e3;
}

.button-outline-dark:hover {
  background: #eaf0f6;
}

.button-outline-dark:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(175, 78, 30, 0.14);
}

.section-focus {
  background: #fff;
}

.focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 32px;
  align-items: start;
}

.focus-content p {
  max-width: 760px;
  color: var(--text-light);
}

.focus-side {
  display: grid;
  gap: 20px;
}

.focus-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid #dce4ef;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: var(--shadow-soft);
}

.focus-card h3 {
  margin-bottom: 14px;
}

.section-dark {
  background:
    radial-gradient(circle at top left, rgba(175, 78, 30, 0.18), transparent 30%),
    linear-gradient(135deg, #08101f 0%, #0c1730 55%, #122344 100%);
  color: #fff;
}

.section-dark .section-intro,
.section-dark p {
  color: var(--text-inverse-soft);
}

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

.process-step {
  position: relative;
  min-height: 100%;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.process-step-number {
  display: inline-flex;
  margin-bottom: 16px;
  color: #ffd9c7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.process-step p {
  margin: 0;
}

.section-advantages {
  background: #fff;
}

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

.advantage-item {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid #dbe4ef;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.advantage-item h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.advantage-item p {
  margin: 0;
  color: var(--text-light);
}

.section-objects {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

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

.object-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #dce4ef;
  box-shadow: var(--shadow-soft);
}

.object-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.object-card p {
  margin: 0;
  color: var(--text-light);
}

.section-about-short {
  background: #fff;
}

.about-short-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.about-short-main p {
  color: var(--text-light);
}

.about-short-facts {
  display: grid;
  gap: 18px;
}

.fact-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: #f5f8fc;
  border: 1px solid #dce4ef;
}

.fact-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fact-card strong {
  font-size: 18px;
  color: var(--text-dark);
}

.contact-cta-modern {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.contact-cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: start;
}

.contact-cta-info .lead {
  color: var(--text);
  max-width: 720px;
  font-size: 18px;
}

.contact-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-points p {
  margin: 0;
}

.contact-form-card {
  padding: 28px;
  border: 1px solid #d9e2ed;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.contact-form-card h3 {
  margin-bottom: 18px;
  font-size: 24px;
}

.site-footer-modern {
  padding: 44px 0;
  background: #08101f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-col p {
  margin: 0 0 12px;
  color: #d8dfeb;
}

.footer-col .footer-title {
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-col a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #ffd7c4;
}

.hero-modern + .section,
.section-positioning,
.section-services-overview,
.section-focus,
.section-process,
.section-advantages,
.section-objects,
.section-about-short,
.contact-cta-modern {
  position: relative;
}

.section-positioning .container,
.section-services-overview .container,
.section-focus .container,
.section-process .container,
.section-advantages .container,
.section-objects .container,
.section-about-short .container,
.contact-cta-modern .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 1180px) {
  .hero-grid,
  .focus-layout,
  .about-short-layout,
  .contact-cta-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    justify-content: stretch;
  }

  .hero-panel {
    width: 100%;
    min-height: 440px;
  }

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

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

@media (max-width: 900px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    padding: 4px 0;
  }

  .positioning-grid,
  .advantages-grid,
  .objects-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 22px 0;
  }

  .service-row-action {
    justify-content: flex-start;
    padding-top: 0;
  }

  .hero-modern {
    padding-top: 40px;
  }

  .hero-modern h1 {
    font-size: clamp(34px, 9vw, 54px);
  }

  .hero-panel {
    min-height: 400px;
  }

  .hero-stat-top {
    top: 24px;
    left: 20px;
  }

  .hero-stat-middle {
    top: 150px;
    right: 20px;
  }

  .hero-stat-bottom {
    bottom: 24px;
    left: 28px;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 56px 0;
  }

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

  .hero-modern {
    padding: 28px 0 20px;
  }

  .hero-grid {
    gap: 28px;
    padding: 12px 0 20px;
  }

  .hero-modern .lead,
  .contact-cta-info .lead {
    font-size: 17px;
  }

  .trust-strip {
    gap: 10px;
  }

  .trust-strip li {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-panel {
    min-height: 340px;
    border-radius: 24px;
  }

  .hero-panel::before {
    inset: 14px;
    border-radius: 18px;
  }

  .hero-stat {
    min-width: 120px;
    padding: 14px;
  }

  .hero-stat-value {
    font-size: 22px;
  }

  .insight-card,
  .focus-card,
  .advantage-item,
  .object-card,
  .contact-form-card {
    padding: 22px;
  }

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

/* =========================================
   Inner pages modern layout
========================================= */

.page-hero-modern {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background:
    radial-gradient(circle at top right, rgba(175, 78, 30, 0.16), transparent 28%),
    linear-gradient(135deg, #08101f 0%, #0d1b36 55%, #13274d 100%);
  color: #fff;
}

.page-hero-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 92%);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 32px;
  align-items: end;
}

.page-hero-content {
  max-width: 820px;
}

.page-hero-side {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.page-hero-side-stack {
  align-content: start;
}

.page-hero-badge {
  min-width: 200px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 24px rgba(5, 10, 20, 0.14);
  backdrop-filter: blur(10px);
}

.page-hero-badge span {
  display: block;
  margin-bottom: 8px;
  color: #bfd0e6;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero-badge strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.about-story-layout,
.about-docs-layout,
.contact-extra-grid,
.services-page-layout {
  display: grid;
  gap: 30px;
}

.about-story-layout,
.about-docs-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
}

.about-story-main p,
.about-docs-layout p {
  color: var(--text-light);
}

.about-story-side {
  display: grid;
  gap: 18px;
}

.about-docs-note,
.contact-map-card,
.contact-requisites-card,
.contact-cta-actions-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid #dce4ef;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: var(--shadow-soft);
}

.contact-cta-actions-box {
  display: grid;
  gap: 14px;
  align-content: start;
}

.advantages-grid-tight .advantage-item {
  display: flex;
  align-items: center;
  min-height: 120px;
}

.process-grid-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.services-page-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.services-page-nav {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid #dce4ef;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.services-page-nav-title {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.services-page-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-dark);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.services-page-nav a:hover,
.services-page-nav a:focus-visible,
.services-page-nav a.is-active {
  background: #f1f5fa;
  color: var(--text-dark);
  box-shadow: inset 0 0 0 1px rgba(175, 78, 30, 0.18);
}

.services-page-nav a.is-active {
  background: rgba(175, 78, 30, 0.1);
}

.services-page-content {
  display: grid;
  gap: 24px;
}

.service-block-modern {
  padding: 32px;
  border-radius: 28px;
  border: 1px solid #dce4ef;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.service-block-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.service-block-head h2 {
  margin: 0;
}

.services-benefits-list li {
  margin-bottom: 10px;
}

.contact-points-large {
  gap: 16px;
}

.map-placeholder-modern {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.requisites-list-modern li {
  margin-bottom: 10px;
}

@media (max-width: 1180px) {
  .page-hero-grid,
  .about-story-layout,
  .about-docs-layout,
  .services-page-layout,
  .contact-extra-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-side {
    justify-items: start;
  }

  .services-page-nav {
    position: static;
  }
}

@media (max-width: 900px) {
  .process-grid-compact {
    grid-template-columns: 1fr;
  }

  .service-block-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 680px) {
  .page-hero-modern {
    padding: 40px 0;
  }

  .page-hero-badge,
  .service-block-modern,
  .about-docs-note,
  .contact-map-card,
  .contact-requisites-card,
  .contact-cta-actions-box,
  .services-page-nav {
    padding: 22px;
  }
}

/* =========================================
   Legal pages modern layout
========================================= */

.section-legal-page {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.legal-page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.legal-side-card {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid #dce4ef;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.legal-side-card a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-dark);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.legal-side-card a:hover,
.legal-side-card a:focus-visible,
.legal-side-card a.is-active {
  background: #f1f5fa;
  color: var(--text-dark);
  box-shadow: inset 0 0 0 1px rgba(175, 78, 30, 0.18);
}

.legal-side-card a.is-active {
  background: rgba(175, 78, 30, 0.1);
}

.legal-document-card {
  padding: 32px;
  border-radius: 28px;
  border: 1px solid #dce4ef;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.legal-section-block + .legal-section-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #e6edf5;
}

.legal-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}

.legal-content p,
.legal-content li {
  color: var(--text-light);
}

.legal-content ul {
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 1180px) {
  .legal-page-layout {
    grid-template-columns: 1fr;
  }

  .legal-side-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .legal-document-card,
  .legal-side-card {
    padding: 22px;
  }
}
