:root {
  /* Цветовая палитра: светлый премиальный B2B */
  --bg: #F6F8FB;
  --bg-alt: #FFFFFF;
  --panel: #FFFFFF;
  --panel-strong: #FFFFFF;
  --panel-muted: #F8FAFC;
  --panel-hover: #F1F5F9;
  
  /* Фирменные цвета */
  --navy: #17324D;
  --navy-hover: #23476D;
  --navy-deep: #0F2236;
  --secondary: #2F5D8A;
  --secondary-hover: #3C6F9E;
  --secondary-light: #EEF4F9;
  
  /* Акцент: теплый благородный янтарный (умеренно) */
  --accent: #D89B3C;
  --accent-hover: #E5A94B;
  --accent-light: #FFF8EE;
  --accent-border: rgba(216, 155, 60, 0.4);
  
  /* Текст */
  --text: #1E293B;
  --muted: #64748B;
  --subtle: #94A3B8;
  
  /* Линии и разделители */
  --line: #E5EAF0;
  --line-soft: #EEF2F6;
  --line-strong: #CBD5E1;
  
  /* Статусы */
  --danger: #EF4444;
  --danger-light: rgba(239, 68, 68, 0.08);
  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.08);
  
  /* Мессенджеры */
  --whatsapp: #25D366;
  --telegram: #229ED9;
  --max: #6366F1;
  
  /* Тени */
  --shadow-sm: 0 4px 16px rgba(23, 50, 77, 0.05);
  --shadow: 0 16px 40px rgba(23, 50, 77, 0.08);
  --shadow-hover: 0 20px 48px rgba(23, 50, 77, 0.12);
  
  /* Скругления */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Контейнер */
  --container: 1200px;
}

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

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

[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button, input, select, textarea {
  font: inherit;
  letter-spacing: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd {
  margin-top: 0;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 20px;
  font-size: 52px;
}

h2 {
  margin-bottom: 16px;
  font-size: 36px;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

p {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 18px;
  color: #FFFFFF;
  background: var(--navy);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section--highlight {
  background: var(--bg);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.section-heading--left {
  margin-inline: 0;
  text-align: left;
}

.section-note {
  margin: 24px 0 0;
  padding: 14px 18px;
  color: var(--muted);
  background: var(--panel-muted);
  border-left: 3px solid var(--secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
  line-height: 1.5;
}

/* ==================================================
   HEADER (Pure White, Crisp Navy, Clean Trust)
   ================================================== */
.header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 82px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(23, 50, 77, 0.04);
}

.header > .container {
  width: min(1240px, calc(100% - 40px));
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 18px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  background: transparent;
}

.logo__img {
  width: auto;
  height: 44px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 18px;
  flex-shrink: 0;
}

.nav a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 150ms ease;
}

.nav a:hover {
  color: var(--secondary);
}

.header__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.header__phone {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 150ms ease;
}

.header__phone:hover {
  color: var(--secondary);
}

.header__actions .quick-contact--whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  color: var(--navy);
  background: #F8FAFC;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 160ms ease;
}

.header__actions .quick-contact--whatsapp:hover {
  background: #EEF2F6;
  border-color: #94A3B8;
  color: var(--navy);
}

.header__actions .btn--outline {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: #FFFFFF;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.header__actions .btn--outline:hover {
  background: var(--navy);
  color: #FFFFFF;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
  border-radius: 2px;
}

.mobile-menu {
  padding: 18px 0 24px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(23, 50, 77, 0.08);
}

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

.mobile-menu nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
  transition: color 150ms ease;
}

.mobile-menu nav a:last-child {
  border-bottom: none;
}

.mobile-menu nav a:hover {
  color: var(--secondary);
}

.mobile-menu__contacts {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu__phone-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu__phone {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 150ms ease;
}

.mobile-menu__phone:hover {
  color: var(--secondary);
}

.mobile-menu__hours {
  font-size: 12.5px;
  color: var(--muted);
}

.mobile-menu__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-menu__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__email {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-menu__address {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-menu__action {
  margin-top: 4px;
}

/* ==================================================
   BUTTONS (Calm, Premium Navy / Light Outline)
   ================================================== */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn--primary {
  color: #FFFFFF;
  background: var(--navy);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(23, 50, 77, 0.18);
}

.btn--outline {
  color: var(--navy);
  background: #FFFFFF;
  border-color: var(--line-strong);
}

.btn--outline:hover {
  background: #F8FAFC;
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn--small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn--full {
  width: 100%;
}

.btn--text {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.btn--text:hover {
  color: var(--navy);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease;
}

.text-link:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==================================================
   QUICK CONTACTS
   ================================================== */
.quick-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-contact {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: var(--navy);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: all 160ms ease;
}

.quick-contact--phone:hover {
  border-color: var(--navy);
  background: #F8FAFC;
}

.quick-contact--whatsapp {
  color: #0d4a25;
  background: #E8F8EE;
  border-color: #C2EDD2;
}

.quick-contact--whatsapp:hover {
  background: #D4F4E1;
  border-color: #A3E3BA;
}

.quick-contact--telegram {
  color: #0a3d62;
  background: #EDF6FC;
  border-color: #C7E3F8;
}

.quick-contact--telegram:hover {
  background: #DBEFFB;
  border-color: #A8D4F5;
}

.quick-contact--max {
  color: #312E81;
  background: #EEF2FF;
  border-color: #C7D2FE;
}

.track-max.is-disabled {
  color: var(--subtle);
  background: #F8FAFC;
  border-color: var(--line);
  opacity: 0.72;
  cursor: not-allowed;
}

.quick-contacts--menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  gap: 6px;
}

.form-stack {
  min-width: 0;
}

.form-quick-contacts {
  margin-top: 12px;
  padding: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.form-quick-contacts > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quick-contacts--form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.quick-contacts--form .quick-contact {
  min-width: 0;
  min-height: 36px;
  padding: 6px 4px;
  font-size: 11.5px;
}

/* ==================================================
   HERO (Light Corporate B2B — Clean Left, Panorama Right)
   ================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 80px;
  background: #F6F8FB;
  border-bottom: 1px solid var(--line);
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero__media,
.hero__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 60%;
  opacity: 0.82;
  filter: saturate(0.95) contrast(1.0) brightness(1.02);
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg,
      #F6F8FB 0%,
      #F6F8FB 38%,
      rgba(246, 248, 251, 0.94) 48%,
      rgba(246, 248, 251, 0.60) 62%,
      rgba(246, 248, 251, 0.15) 82%,
      rgba(246, 248, 251, 0.0) 100%),
    linear-gradient(180deg,
      rgba(246, 248, 251, 0.50) 0%,
      transparent 20%,
      transparent 80%,
      rgba(246, 248, 251, 0.80) 100%);
}

.hero > .container {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.hero__content {
  max-width: 550px;
  text-align: left;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B4781E;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: #B4781E;
  border-radius: 1px;
}

.hero__content h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.16;
  color: var(--navy);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
  text-align: left;
}

.hero__subtitle {
  max-width: 500px;
  margin-bottom: 28px;
  color: #475569;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

/* 2x2 Badges on the left */
.hero__badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 480px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(23, 50, 77, 0.04);
}

.hero__badges li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #B4781E;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

/* CTA buttons */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn--hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 4px 16px rgba(23, 50, 77, 0.20);
}

.btn--hero-primary:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(23, 50, 77, 0.28);
}

.btn--hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  background: #FFFFFF;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn--hero-outline:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}



/* Hero form header label */
.hero-form__eyebrow {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
}

/* Consultation secondary button inside hero form */
.hero-form__consultation {
  margin-top: 8px;
}

/* Benefits Grid in Hero */
.offer-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
}

.offer-benefits li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.offer-benefits li:hover {
  border-color: #CBD5E1;
}

/* Primary accent strictly on "Без привоза техники" */
.offer-benefits li.offer-benefits__item--accent,
.offer-benefits li:first-child {
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.offer-benefits li.offer-benefits__item--accent strong,
.offer-benefits li:first-child strong {
  color: #B4781E;
  font-size: 14.5px;
  font-weight: 700;
}

.offer-benefits li:not(.offer-benefits__item--accent):not(:first-child) strong {
  color: var(--navy);
}

.offer-benefits li span {
  color: var(--muted);
  font-size: 13.5px;
}

/* Price Item: Distinct Clean Separation */
.offer-benefits .offer-benefits__item--price,
.offer-benefits .offer-benefits__item--term {
  justify-content: center;
}

.offer-benefits .price-value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.offer-benefits .price-caption {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer-benefits li:last-child,
.offer-benefits .offer-benefits__item--full {
  grid-column: 1 / -1;
}

/* Hero actions */
.offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.offer-actions .btn {
  min-height: 48px;
}

.offer-actions .btn--primary {
  background: var(--navy);
  color: #FFFFFF;
}

.offer-actions .btn--outline {
  background: #FFFFFF;
  border-color: var(--line-strong);
  color: var(--navy);
}

.offer-actions .btn--outline:hover {
  background: #F8FAFC;
  border-color: var(--secondary);
  color: var(--secondary);
}

/* ==================================================
   FORMS (Light, Premium White Card, Soft Shadow)
   ================================================== */
.form-card {
  padding: 28px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-card__header {
  margin-bottom: 20px;
}

.form-card__header h2 {
  margin-bottom: 6px;
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.form-card__header p:last-child,
.form-card__header > span {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step legend {
  width: 100%;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--navy);
}

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

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--panel-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
  transition: all 160ms ease;
}

.choice input:checked + span {
  color: var(--navy);
  background: #FFFFFF;
  border-color: var(--navy);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.field {
  display: grid;
  margin-bottom: 14px;
  gap: 5px;
}

.field > span {
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--text);
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #94A3B8;
  opacity: 1;
}

.field select option {
  color: var(--text);
  background: #FFFFFF;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #FFFFFF;
  border-color: var(--secondary);
  outline: 2px solid rgba(47, 93, 138, 0.18);
}

.field .is-invalid,
.choice-grid.is-invalid {
  border-color: var(--danger);
  background: #FFF5F5;
}

.consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  margin: 6px 0 16px;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}

.consent a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent a:hover {
  color: var(--navy);
}

.consent.is-invalid {
  padding: 8px 10px;
  background: var(--danger-light);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  animation: consentShake 0.3s ease-in-out;
}

.consent.is-invalid span {
  color: var(--danger);
}

@keyframes consentShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.form-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

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

.field-error,
.form-status {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
}

.form-status.is-success {
  color: var(--success);
}

.lead-fallback-actions {
  margin-top: 14px;
  padding: 16px;
  background: var(--danger-light, rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md, 8px);
  text-align: left;
}
.lead-fallback-title {
  margin: 0 0 12px;
  color: #DC2626;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.lead-fallback-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.btn-fallback {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm, 6px);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 160ms ease, transform 120ms ease;
}
.btn-fallback:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.btn-fallback--tel {
  color: #FFFFFF;
  background: var(--navy, #17324D);
}
.btn-fallback--wa {
  color: #FFFFFF;
  background: var(--whatsapp, #25D366);
}
.btn-fallback--tg {
  color: #FFFFFF;
  background: var(--telegram, #229ED9);
}
@media (min-width: 600px) {
  .lead-fallback-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.honeypot {
  position: fixed;
  top: -10000px;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Compact Hero Form */
.hero-form {
  padding: 24px;
}

.hero-form .form-card__header {
  margin-bottom: 16px;
}

.hero-form .form-card__header h2 {
  font-size: 21px;
}

.hero-form .form-card__header p {
  font-size: 13.5px;
}

.hero-form .field {
  margin-bottom: 12px;
}

.hero-form .btn--full {
  min-height: 46px;
  font-size: 15px;
}

/* ==================================================
   БЕРЁМ ОФОРМЛЕНИЕ НА СЕБЯ (White Background, Clean Cards)
   ================================================== */
.take-care-section {
  padding: 80px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.take-care-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.take-care-card {
  padding: 26px 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.take-care-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #CBD5E1;
}

.take-care-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--secondary-light);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.take-care-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.take-care-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
  color: var(--muted);
}

.take-care-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 32px;
  padding: 12px 24px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

.take-care-trust__dot {
  color: var(--accent);
  font-weight: 800;
}

/* ==================================================
   ПОНЯТНЫЕ УСЛОВИЯ РАБОТЫ (White, 3x2 Grid)
   ================================================== */
.conditions-section {
  padding: 84px 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.conditions-card {
  padding: 26px 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.conditions-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #CBD5E1;
}

.conditions-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  color: #B4781E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.conditions-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

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

.conditions-note {
  margin-top: 28px;
  padding: 16px 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.conditions-note p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

.conditions-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

/* ==================================================
   СЕРВИСЫ И КАРТОЧКИ УСЛУГ (White, Minimalist, Outline)
   ================================================== */
.service-navigation {
  padding: 88px 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

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

.service-navigation__grid--main .nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 28px 24px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-navigation__grid--main .nav-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.nav-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.nav-card__desc {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 22px;
  flex-grow: 1;
}

.nav-card__footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  gap: 12px;
}

.nav-card__meta {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}

.nav-card__meta strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.nav-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  background: #F8FAFC;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 160ms ease;
  white-space: nowrap;
}

.nav-card__more:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

/* Advantage section (Без привоза техники) */
.advantage-section {
  padding: 40px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.advantage-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.advantage-strip__content {
  max-width: 760px;
}

.advantage-strip__content h2 {
  font-size: 23px;
  margin-bottom: 8px;
  color: var(--navy);
}

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

.advantage-strip__action {
  flex-shrink: 0;
}

.advantage-strip__action .btn {
  min-width: 180px;
  white-space: nowrap;
}

/* Trust strip */
.trust-strip {
  padding: 32px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.trust-strip h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-left: 20px;
  margin: 0;
}

.trust-strip li {
  color: var(--muted);
  font-size: 15px;
}

.trust-strip li::marker {
  color: var(--secondary);
}

/* Problem / Complex cases grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.problem-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.problem-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow);
}

.problem-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 14px;
  line-height: 1.5;
}

.problem-card .text-link {
  margin-top: auto;
}

/* ==================================================
   B2B-БЛОК (The Sole Major Dark Navy Contrast Section)
   ================================================== */
.b2b-section {
  padding: 64px 0;
  background: var(--navy);
  border-block: 1px solid var(--navy-deep);
}

.b2b-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 20px 0;
}

.b2b-card__content {
  max-width: 740px;
}

.b2b-card__content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.b2b-card__desc {
  font-size: 16px;
  color: #CBD5E1;
  margin-bottom: 12px;
  line-height: 1.6;
}

.b2b-card__note {
  font-size: 14.5px;
  color: #F8FAFC;
  font-weight: 600;
  margin: 0;
}

.b2b-card__action {
  flex-shrink: 0;
}

.b2b-card__action .btn {
  min-width: 200px;
  white-space: nowrap;
  background: #FFFFFF;
  color: var(--navy);
  border-color: #FFFFFF;
  font-weight: 700;
}

.b2b-card__action .btn:hover {
  background: #F1F5F9;
  color: var(--navy-deep);
}

/* ==================================================
   STATS (Clean White Row)
   ================================================== */
.stats {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

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

.stats__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.stat {
  display: grid;
  padding: 28px 32px;
  gap: 4px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat:last-child {
  border-right: 1px solid var(--line);
}

.stat strong {
  color: var(--navy);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat > span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.stat small {
  color: var(--muted);
  font-size: 12.5px;
}

/* ==================================================
   ПРОЦЕСС ОФОРМЛЕНИЯ (White, Linear 4 Steps)
   ================================================== */
#process {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  gap: 16px;
}

.process-flow__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding: 24px 20px;
  background: var(--panel-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.process-flow__step::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 18px;
  font-weight: 700;
  z-index: 2;
}

.process-flow__step:last-child::after {
  display: none;
}

.process-flow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--secondary-light);
  color: var(--secondary);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.process-flow__body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
  line-height: 1.3;
}

.process-flow__body p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.info-strip {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  margin-top: 36px;
  padding: 20px 24px;
  gap: 24px;
  background: var(--panel-muted);
  border: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius-sm);
}

.info-strip strong {
  color: var(--navy);
  font-size: 14.5px;
}

.info-strip span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Documents layout */
.documents-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 64px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}

.check-list li::before {
  position: absolute;
  top: 0.85em;
  left: 6px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 2px;
  content: "";
}

/* Cases Grid */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.case-card:last-child {
  grid-column: 1 / -1;
}

.case-card dl {
  margin-bottom: 12px;
}

.case-card dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 10px 0;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.case-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.case-card dd {
  color: var(--text);
  margin: 0;
  font-size: 14px;
}

.case-card .text-link {
  margin-top: auto;
}

.rules-section {
  padding: 40px 0;
  background: var(--bg);
}

/* ==================================================
   FAQ (White Background, Thin Dividers, Clean Accordion)
   ================================================== */
#faq {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
  gap: 64px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  display: grid;
  width: 100%;
  min-height: 60px;
  grid-template-columns: 1fr 28px;
  align-items: center;
  padding: 18px 0;
  gap: 16px;
  color: var(--navy);
  background: transparent;
  border: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease;
}

.faq-item button:hover {
  color: var(--secondary);
}

.faq-icon {
  color: var(--secondary);
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq-item button[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 44px 20px 0;
}

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

/* ==================================================
   LEAD SECTION & CONTACT PANEL
   ================================================== */
.lead-section {
  background: var(--bg);
}

.lead-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: stretch;
  gap: 40px;
}

.contact-panel {
  padding: 10px 0;
}

.contact-panel__primary {
  display: block;
  margin: 8px 0 16px;
  color: var(--navy);
  font-size: clamp(22px, 6.5vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 150ms ease;
  word-break: break-word;
}

.contact-panel__primary:hover {
  color: var(--secondary);
}

.quick-contacts--contact {
  margin-bottom: 12px;
}

.contact-panel__email {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--secondary);
  font-weight: 700;
  font-size: 15px;
}

.contact-panel__email:hover {
  color: var(--navy);
  text-decoration: underline;
}

.contact-panel dl {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.contact-panel dl div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-panel dt {
  color: var(--muted);
  font-size: 14px;
}

.contact-panel dd {
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  margin: 0;
}

/* ==================================================
   FOOTER (Deep Dark Navy, 4 Columns, Clean Typography)
   ================================================== */
.footer {
  padding-top: 64px;
  padding-bottom: 28px;
  background: var(--navy);
  border-top: 1px solid var(--navy-deep);
  color: #CBD5E1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  padding-bottom: 48px;
  gap: 40px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__brand .logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer__brand .logo__img {
  height: 52px;
  width: auto;
}

.footer__brand p {
  max-width: 300px;
  margin: 0;
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.5;
}

.footer h2 {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__nav,
.footer__contacts-list,
.footer__address-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer a,
.footer span {
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.45;
  transition: color 150ms ease;
}

.footer a:hover {
  color: #FFFFFF;
}

.footer .footer__phone {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  margin-bottom: 2px;
}

.footer .footer__hours {
  color: #94A3B8;
  font-size: 13px;
  margin-top: 2px;
}

.footer .footer__address-text {
  margin: 0;
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.55;
}

.footer .footer-max {
  display: inline-flex;
  align-items: center;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 24px;
  gap: 14px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
}

.footer__copy {
  color: #94A3B8;
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #94A3B8;
}

.footer__bottom a:hover {
  color: #FFFFFF;
}

.footer__credit {
  color: #CBD5E1 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==================================================
   MODAL
   ================================================== */
.modal {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 54, 0.65);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

.modal__dialog h2 {
  padding-right: 30px;
  font-size: 26px;
  color: var(--navy);
}

.modal__dialog p {
  color: var(--muted);
  font-size: 14.5px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.modal--discount .modal__dialog {
  width: min(540px, 100%);
  border: 2px solid rgba(216, 155, 60, 0.45);
  box-shadow: 0 28px 70px -10px rgba(15, 34, 54, 0.42);
}

.modal__discount-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 38px 18px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #17324D 0%, #244B72 100%);
  border-radius: 14px;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(23, 50, 77, 0.16);
}

.modal__discount-banner[hidden] {
  display: none !important;
}

.modal__discount-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal__discount-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: #FCD34D;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.modal__discount-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

.modal__discount-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
}

.icon-button {
  width: 40px;
  height: 40px;
  color: var(--navy);
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease;
}

.icon-button:hover {
  background: #EEF2F6;
}

/* Service Inner Pages (Regional, etc.) */
.service-hero {
  padding: 56px 0 64px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF3F8 100%);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.breadcrumbs a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.service-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  align-items: start;
  gap: 56px;
}

.service-hero h1 {
  max-width: 800px;
  font-size: 44px;
  line-height: 1.2;
}

.service-hero__grid > div > p:not(.eyebrow) {
  max-width: 680px;
  font-size: 17.5px;
  line-height: 1.55;
}

.service-summary {
  padding: 26px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.service-summary h2 {
  font-size: 21px;
}

.service-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-summary li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--text);
  font-size: 14.5px;
}

.service-summary li::before {
  position: absolute;
  top: 0.7em;
  left: 4px;
  width: 7px;
  height: 7px;
  background: var(--secondary);
  border-radius: 2px;
  content: "";
}

.service-summary p {
  margin: 16px 0 0;
  padding-top: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

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

.equipment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.equipment-list li {
  padding: 8px 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text);
}

.service-detail__panel {
  padding: 28px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.service-detail__list--columns {
  columns: 2;
  column-gap: 36px;
}

.service-detail__list--columns li {
  break-inside: avoid;
}

.not-found {
  display: grid;
  min-height: 60vh;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.not-found .container {
  max-width: 720px;
}

.not-found .hero__actions {
  justify-content: center;
}

.legal {
  padding: 56px 0 92px;
  background: #FFFFFF;
}

.legal__inner {
  max-width: 860px;
}

.legal h1 {
  font-size: 42px;
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: 22px;
}

.legal p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.legal a {
  color: var(--secondary);
  text-decoration: underline;
}

.legal__updated {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: 14px;
}

/* ==================================================
   CONTACTS PAGE
   ================================================== */
.contacts-hero {
  padding: 48px 0 56px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF3F8 100%);
  border-bottom: 1px solid var(--line);
}

.contacts-hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--navy);
}

.contacts-hero__subtitle {
  max-width: 680px;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.contacts-section {
  padding: 64px 0 48px;
}

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

.contacts-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.contacts-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.contacts-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contacts-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  color: var(--navy);
  flex-shrink: 0;
}

.contacts-card h2 {
  font-size: 20px;
  margin: 0;
  color: var(--navy);
}

.contacts-card__main-link {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 150ms ease;
  word-break: break-word;
}

.contacts-card__main-link:hover {
  color: var(--secondary);
}

.contacts-card__desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

.contacts-card__address {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.4;
}

.contacts-card__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.contacts-card__subnote {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

.contacts-card__action {
  margin-top: auto;
  padding-top: 8px;
}

.contacts-requisites-section {
  padding: 64px 0;
}

.contacts-requisites-card {
  padding: 36px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contacts-requisites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
  margin: 0;
}

.contacts-requisites-grid div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.contacts-requisites-grid dt {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.contacts-requisites-grid dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

/* ==================================================
   RESPONSIVE MEDIA QUERIES
   ================================================== */
@media (max-width: 1100px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .menu-button { display: block; }
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .documents-layout, .faq-layout, .lead-layout { gap: 36px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
    padding-bottom: 36px;
  }
  .process-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-flow__step::after {
    display: none;
  }
  .take-care-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-navigation__grid--main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container { width: min(100% - 32px, var(--container)); }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .section { padding: 64px 0; }
  .header__inner { gap: 12px; }
  .header__actions .btn--outline { display: none; }
  .hero {
    padding: 60px 0 54px;
    min-height: auto;
    display: block;
  }
  .hero__media img {
    object-position: center 60%;
    opacity: 0.25;
  }
  .hero__shade {
    background:
      linear-gradient(180deg,
        rgba(246, 248, 251, 0.96) 0%,
        rgba(246, 248, 251, 0.90) 50%,
        rgba(246, 248, 251, 0.97) 100%);
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__badges {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-bottom: 24px;
  }
  .hero__cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn--hero-primary,
  .btn--hero-outline {
    width: 100%;
  }
  .b2b-card { flex-direction: column; align-items: flex-start; padding: 12px 0; gap: 20px; }
  .b2b-card__content h2 { font-size: 26px; }
  .b2b-card__action, .b2b-card__action .btn { width: 100%; }
  .advantage-strip { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 16px; }
  .advantage-strip__action, .advantage-strip__action .btn { width: 100%; }
  .case-grid, .two-column, .documents-layout, .faq-layout, .lead-layout { grid-template-columns: 1fr; }
  .service-navigation__grid--main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conditions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-detail__list--columns { columns: 1; }
  .case-card:last-child { grid-column: auto; }
  .contact-panel { padding: 0; }
  .contacts-hero { padding: 32px 0 40px; }
  .contacts-hero h1 { font-size: 30px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 16px; }
  .contacts-card { padding: 22px 20px; }
  .contacts-requisites-grid { grid-template-columns: 1fr; gap: 14px; }
  .contacts-requisites-card { padding: 22px 20px; }
  .service-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .field input, .field select, .field textarea { font-size: 16px; }
}

@media (max-width: 768px) {
  .footer {
    padding-top: 48px;
    padding-bottom: 28px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
  .footer__brand .logo__img {
    height: 48px;
  }
  .footer__brand p {
    max-width: none;
  }
  .footer h2 {
    margin-bottom: 12px;
  }
  .footer__nav,
  .footer__contacts-list,
  .footer__address-content {
    gap: 8px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 20px;
  }
  .footer__bottom-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .service-navigation__grid--main {
    grid-template-columns: 1fr;
  }
  .take-care-grid {
    grid-template-columns: 1fr;
  }
  .conditions-grid {
    grid-template-columns: 1fr;
  }
  .process-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .process-flow__step {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }
  .process-flow__icon {
    margin-bottom: 0;
  }
  .process-flow__step::after {
    display: none;
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  html { scroll-padding-top: 72px; }
  .container { width: min(100% - 24px, var(--container)); }
  .header { height: 68px; }
  .logo__img { height: 34px; }
  .header__phone { font-size: 14px; }
  .header__actions .quick-contact--whatsapp { min-height: 34px; padding: 6px 10px; font-size: 12px; }
  .menu-button { width: 38px; height: 38px; padding: 6px; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 52px; min-height: auto; }
  .hero__content h1 { font-size: clamp(24px, 6vw, 32px); line-height: 1.15; margin-bottom: 14px; }
  .hero__subtitle { font-size: 15.5px; line-height: 1.48; margin-bottom: 20px; }
  .hero__badges { gap: 8px; margin-bottom: 24px; }
  .hero__badges li { font-size: 12px; padding: 5px 11px; }
  .hero__cta { flex-direction: column; gap: 10px; }
  .btn--hero-primary, .btn--hero-outline { width: 100%; }
  .offer-benefits { margin: 16px 0; gap: 8px; }
  .offer-benefits li { padding: 10px 12px; font-size: 13px; }
  .offer-benefits .price-value { font-size: 18px; }
  .offer-actions, .offer-actions .btn { width: 100%; }
  .form-card { padding: 20px 18px; }
  .choice-grid, .form-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat, .stat:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
  }
  .stat small { display: none; }
  .section-heading { margin-bottom: 28px; text-align: left; }
  .section-heading p:last-child { font-size: 15.5px; }
  .nav-card__footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav-card__more { width: 100%; }
  .conditions-note { text-align: left; padding: 12px 16px; }
  .conditions-actions { flex-direction: column; gap: 10px; }
  .conditions-actions .btn { width: 100%; }
  .info-strip { grid-template-columns: 1fr; padding: 16px; gap: 8px; }
  .case-card dl div { grid-template-columns: 1fr; gap: 4px; }
  .contact-panel__primary { font-size: 28px; }
  .contact-panel dl div { grid-template-columns: 1fr; }
  .contact-panel dd { text-align: left; }
  .service-hero { padding: 32px 0 44px; }
  .service-hero h1, .legal h1 { font-size: 30px; }
}

@media (max-width: 375px) {
  .container { width: calc(100% - 20px); }
  .header__inner { gap: 6px; }
  .header__actions { gap: 6px; }
  .header .logo__img { height: 28px; }
  .header__phone { font-size: 12.5px; }
  .header__actions .quick-contact--whatsapp { min-height: 30px; padding: 4px 8px; font-size: 11px; }
  .menu-button { width: 34px; height: 34px; padding: 5px; }
  .offer-benefits { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

h3.nav-card__title {
  margin-top: 0;
}

.nav-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-card__title-link:hover {
  color: var(--secondary);
}

/* ==========================================================================
   Automated Interactive Chat / Callback Widget (ТехУчёт)
   ========================================================================== */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  font-family: inherit;
}

.chat-widget.is-dismissed {
  display: none !important;
}

.chat-widget__backdrop {
  display: none;
}

/* Collapsed Launcher */
.chat-widget__launcher {
  position: relative;
  display: block;
  animation: chat-launcher-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-widget.is-open .chat-widget__launcher {
  display: none;
}

@keyframes chat-launcher-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-widget__launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 20px 0 12px;
  background: linear-gradient(135deg, #17324D 0%, #22476B 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: 0 10px 28px -4px rgba(23, 50, 77, 0.32), 0 4px 10px rgba(23, 50, 77, 0.12);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}

.chat-widget__launcher-btn:hover,
.chat-widget__launcher-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(23, 50, 77, 0.42), 0 6px 14px rgba(23, 50, 77, 0.16);
  background: linear-gradient(135deg, #1A3959 0%, #2A5680 100%);
  outline: none;
}

.chat-widget__launcher-icon-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.chat-widget__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.chat-widget__pulse-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #17324D;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: cw-pulse 2.2s infinite;
}

@keyframes cw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.chat-widget__launcher-text {
  display: flex;
  flex-direction: column;
}

.chat-widget__launcher-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
}

.chat-widget__launcher-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.25;
  margin-top: 1px;
}

.chat-widget__launcher-dismiss {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #64748B;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: background-color 0.15s, color 0.15s;
  padding: 0;
}

.chat-widget__launcher:hover .chat-widget__launcher-dismiss {
  display: flex;
}

.chat-widget__launcher-dismiss:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

/* Chat Window */
.chat-widget__window {
  display: none;
  width: 420px;
  height: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 40px);
  background: #FFFFFF;
  border: 1px solid rgba(23, 50, 77, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 60px -8px rgba(23, 50, 77, 0.28), 0 8px 24px rgba(23, 50, 77, 0.08);
  overflow: hidden;
  flex-direction: column;
  animation: chat-expand 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-widget.is-open .chat-widget__window {
  display: flex;
}

@keyframes chat-expand {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.chat-widget__header {
  background: linear-gradient(135deg, #17324D 0%, #2F5D8A 100%);
  color: #FFFFFF;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(23, 50, 77, 0.1);
}

.chat-widget__profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-widget__avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-widget__status-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #FFFFFF;
}

.chat-widget__info {
  display: flex;
  flex-direction: column;
}

.chat-widget__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
}

.chat-widget__sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.25;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chat-widget__status-dot-inline {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.chat-widget__controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-widget__ctrl-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.15s, color 0.15s;
}

.chat-widget__ctrl-btn:hover,
.chat-widget__ctrl-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  outline: none;
}

/* Body */
.chat-widget__body {
  background: #EEF4F8;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-widget__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Messages */
.chat-msg {
  display: flex;
  flex-direction: column;
  animation: msg-fade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes msg-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg--bot {
  align-self: flex-start;
  max-width: 86%;
}

.chat-msg--bot .chat-msg__bubble {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 18px 18px 18px 4px;
  padding: 11px 15px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 2px 6px rgba(23, 50, 77, 0.04);
}

.chat-msg--bot .chat-msg__time {
  font-size: 10.5px;
  color: #94A3B8;
  margin-top: 3px;
  margin-left: 6px;
}

.chat-msg--user {
  align-self: flex-end;
  max-width: 82%;
  margin-left: auto;
}

.chat-msg--user .chat-msg__bubble {
  background: #17324D;
  color: #FFFFFF;
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(23, 50, 77, 0.12);
}

/* Typing Indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}

.chat-typing[hidden] {
  display: none !important;
}

.chat-typing__avatar {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.chat-typing__bubble {
  background: #FFFFFF;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 14px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 4px rgba(23, 50, 77, 0.03);
}

.chat-typing__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat-typing__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2F5D8A;
  display: inline-block;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.chat-typing__dots span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing__dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.chat-typing__label {
  font-size: 11.5px;
  color: #64748B;
}

/* Quick Replies */
.chat-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
  animation: msg-fade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-replies[hidden] {
  display: none !important;
}

.chat-replies__btn {
  background: #FFFFFF;
  border: 1.5px solid #2F5D8A;
  color: #17324D;
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
  transition: all 0.16s ease;
  box-shadow: 0 1px 3px rgba(23, 50, 77, 0.05);
}

.chat-replies__btn:hover,
.chat-replies__btn:focus-visible {
  background: #2F5D8A;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47, 93, 138, 0.25);
  outline: none;
}

/* In-Chat Form Box */
.chat-form-box {
  background: #FFFFFF;
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(23, 50, 77, 0.06);
  animation: msg-fade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-form-box[hidden] {
  display: none !important;
}

.chat-form__heading {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy, #17324D);
  margin-bottom: 4px;
}

.chat-form__desc {
  font-size: 12px;
  color: var(--muted, #64748B);
  margin: 0 0 12px;
  line-height: 1.4;
}

.chat-form__field {
  margin-bottom: 9px;
  display: block;
}

.chat-form__field span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy, #17324D);
  margin-bottom: 3px;
}

.chat-form__field input {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--text, #1E293B);
  background: #FFFFFF;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.chat-form__field input:focus {
  border-color: var(--secondary, #2F5D8A);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 93, 138, 0.12);
}

.chat-form__field input.is-invalid {
  border-color: var(--danger, #EF4444);
  background: var(--danger-light, rgba(239, 68, 68, 0.05));
}

.chat-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 10.5px;
  color: #94A3B8;
  line-height: 1.35;
  margin: 6px 0 12px;
  text-align: left;
  cursor: pointer;
}

.chat-form__consent input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--navy, #17324D);
}

.chat-form__consent a {
  color: var(--secondary, #2F5D8A);
  text-decoration: underline;
}

.chat-form__submit-btn {
  height: 42px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--navy, #17324D);
  color: #FFFFFF;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.chat-form__submit-btn:hover,
.chat-form__submit-btn:focus-visible {
  background: var(--secondary, #2F5D8A);
  outline: none;
}

.chat-form__back-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--secondary, #2F5D8A);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0 0;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s ease;
}

.chat-form__back-btn:hover {
  color: var(--navy, #17324D);
  text-decoration: underline;
}

/* In-Chat Success */
.chat-success {
  background: #FFFFFF;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
  animation: msg-fade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-success[hidden] {
  display: none !important;
}

.chat-success__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.chat-success h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #17324D);
}

.chat-success p {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted, #64748B);
  line-height: 1.4;
}

.chat-success__wa-btn {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1.5px solid rgba(37, 211, 102, 0.4);
  background: #F0FDF4;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.16s ease;
}

.chat-success__wa-btn:hover,
.chat-success__wa-btn:focus-visible {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
  outline: none;
}

/* Footer Input Bar */
.chat-widget__footer {
  height: 56px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.chat-widget__input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.chat-widget__input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 13.5px;
  color: #1E293B;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.chat-widget__input:focus {
  border-color: var(--secondary, #2F5D8A);
  background: #FFFFFF;
  outline: none;
}

.chat-widget__send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--navy, #17324D);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.16s ease, transform 0.15s ease;
  padding: 0;
}

.chat-widget__send-btn:hover,
.chat-widget__send-btn:focus-visible {
  background: var(--secondary, #2F5D8A);
  transform: scale(1.05);
  outline: none;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .chat-widget__launcher-btn {
    height: 48px;
    padding: 0 16px 0 10px;
  }

  .chat-widget__launcher-sub {
    display: none;
  }

  .chat-widget.is-open .chat-widget__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
    z-index: 98;
  }

  .chat-widget.is-open .chat-widget__window {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-width: 440px;
    margin: 0 auto;
    height: min(600px, calc(100vh - 20px));
    max-height: calc(100vh - 20px);
    border-radius: 20px;
    z-index: 99;
  }
}



.logo__tagline {
  font-size: 10px;
  color: var(--muted, #64748b);
  line-height: 1.15;
  margin: 0;
  padding: 0;
  border: none;
  display: block;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 1220px) {
  .header__actions .quick-contact--whatsapp { display: none; }
}
@media (max-width: 1140px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .header__actions .quick-contact--whatsapp { display: inline-flex; }
  .menu-button { display: block; }
}
@media (max-width: 900px) {
  .logo__tagline { display: none; }
}
