/* ===================================================
   METRO RELOCATORS — styles
   Tokens, layout, components, animations, responsive
   =================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue: #2F80ED;
  --blue-600: #2568c8;
  --blue-700: #1f57ab;
  --blue-100: #e4effc;
  --light-blue: #56CCF2;
  --light-blue-50: #eaf8fd;
  --bg: #F7F9FC;
  --bg-alt: #EEF2F8;
  --text: #1C1C1C;
  --text-2: #40464f;
  --text-3: #6b7280;
  --line: #e4e7ee;
  --line-2: #cfd5e0;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-3: 0 18px 44px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.06);
  --shadow-blue: 0 10px 30px rgba(47, 128, 237, 0.28);

  --ease: cubic-bezier(.2,.8,.2,1);
  --dur-1: 180ms;
  --dur-2: 280ms;
  --dur-3: 420ms;

  --container: 1200px;
  --header-h: 76px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { color: var(--text-2); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              background-color var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 3px solid rgba(47,128,237,.45); outline-offset: 3px; }
.btn-lg { padding: 15px 28px; min-height: 52px; font-size: 1rem; }
.btn.full { width: 100%; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.btn-white:hover { transform: translateY(-1px); color: var(--blue-700); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-100); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, .88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.92); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-100), #fff);
  box-shadow: var(--shadow-1);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.logo-sub { font-size: 0.72rem; color: var(--text-3); letter-spacing: .02em; }
.logo.light .logo-name, .logo.light .logo-sub { color: #fff; }

.primary-nav {
  display: flex;
  gap: 22px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-2);
  white-space: nowrap;
}
.primary-nav a {
  position: relative;
  padding: 4px 2px;
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-2) var(--ease);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--blue);
  flex-shrink: 0;
  transition: border-color var(--dur-1) var(--ease),
              background-color var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease);
}
.phone-link svg { width: 18px; height: 18px; }
.phone-link span { display: none; }
.phone-link:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; color: var(--text); }
.menu-toggle:hover { background: var(--blue-100); }

.header-quote-btn {
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9rem;
}

/* ---------- Language switcher ---------- */
.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  height: 44px;
  transition: border-color var(--dur-1) var(--ease),
              background-color var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease);
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-btn .lang-globe,
.lang-btn .lang-caret { color: inherit; flex-shrink: 0; }
.lang-btn .lang-caret { transition: transform var(--dur-2) var(--ease); }
.lang-btn .lang-code { letter-spacing: 0.02em; }
.lang-switcher.open .lang-btn {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-100);
}
.lang-switcher.open .lang-btn .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
  padding: 6px;
  z-index: 120;
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: lang-in 160ms var(--ease);
}
@keyframes lang-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lang-switcher.open .lang-menu { display: flex; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  text-align: left;
}
.lang-menu button:hover { background: var(--blue-100); color: var(--blue); }
.lang-menu button.active { background: var(--blue-100); color: var(--blue); font-weight: 600; }
.lang-menu .lang-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.lang-menu button.active .lang-tag { background: var(--blue); color: #fff; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-nav a.btn { margin-top: 12px; border: 0; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(13, 23, 41, 0.85) 0%, rgba(13, 23, 41, 0.55) 45%, rgba(47, 128, 237, 0.25) 100%),
    linear-gradient(180deg, rgba(13,23,41,.3) 0%, rgba(13,23,41,.5) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-text { max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--light-blue), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 620px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: .01em;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, .25);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
  50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: rgba(255,255,255,.9);
}
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero-stats span { font-size: 0.88rem; color: rgba(255,255,255,.7); }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.92rem;
  flex: 0 1 auto;
}
.trust-item svg { color: var(--blue); flex-shrink: 0; }

/* ---------- Section base ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-kicker {
  display: inline-block;
  color: var(--blue);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-sub {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 1.05rem;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  box-shadow: var(--shadow-1);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: transparent;
}
.service-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.05); }
.service-body { padding: 22px 22px 26px; }
.service-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-100), var(--light-blue-50));
  color: var(--blue);
  margin-bottom: 14px;
}
.service-body h3 { margin-bottom: 8px; }
.service-body p { color: var(--text-3); font-size: 0.95rem; }

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.how-text h2 { margin: 10px 0 12px; }
.how-text .section-sub { text-align: left; margin-bottom: 36px; }
.steps { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: flex-start; }
.step-num {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue);
  color: #fff;
  border-radius: 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: var(--shadow-blue);
}
.steps h4 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { color: var(--text-3); }

.how-media { position: relative; }
.how-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-3);
}
.how-badge {
  position: absolute;
  bottom: 24px; left: -24px;
  background: #fff;
  color: var(--text);
  padding: 14px 20px;
  border-radius: 16px;
  display: inline-flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-3);
  font-size: 0.95rem;
}
.how-badge svg { color: #10b981; flex-shrink: 0; }
.how-badge strong { color: var(--blue); }

/* ---------- Quote chat ---------- */
.quote { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.chat-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--blue), #3b8ff0);
  color: #fff;
}
.chat-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.chat-title { font-weight: 700; letter-spacing: -.01em; }
.chat-status { font-size: 0.85rem; opacity: .9; display: inline-flex; align-items: center; gap: 8px; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61,220,132,.35);
  animation: pulse 2s var(--ease) infinite;
}
.chat-body {
  min-height: 360px;
  max-height: 460px;
  overflow-y: auto;
  padding: 24px 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(47,128,237,.04), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(86,204,242,.05), transparent 40%),
    var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 8px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

.msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.98rem;
  line-height: 1.5;
  animation: msg-in var(--dur-3) var(--ease) both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  box-shadow: var(--shadow-1);
}
.msg.user {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
  box-shadow: var(--shadow-blue);
}
.msg.quote-card {
  max-width: 100%;
  background: linear-gradient(135deg, #fff, var(--blue-100));
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 16px;
  align-self: stretch;
}
.msg.quote-card h4 {
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.msg.quote-card .price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.msg.quote-card ul { color: var(--text-2); font-size: 0.9rem; display: grid; gap: 4px; margin-top: 10px; }

.typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  box-shadow: var(--shadow-1);
}
.typing span {
  width: 7px; height: 7px; background: var(--text-3);
  border-radius: 50%;
  animation: typing 1.4s var(--ease) infinite;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-wrap {
  border-top: 1px solid var(--line);
  padding: 16px 18px;
  background: #fff;
  min-height: 76px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.chat-input-wrap.empty { justify-content: center; color: var(--text-3); font-size: 0.9rem; }

.opt-btn {
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  font-weight: 500;
  font-size: 0.94rem;
  transition: all var(--dur-1) var(--ease);
  min-height: 44px;
}
.opt-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-100); transform: translateY(-1px); }
.opt-btn.checked { background: var(--blue); color: #fff; border-color: var(--blue); }

.chat-field {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: stretch;
  position: relative;
}

/* ---------- Chat address autocomplete ---------- */
.chat-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
  list-style: none;
  margin: 0;
  display: none;
  animation: sugg-in 160ms var(--ease);
}
@keyframes sugg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-suggestions.open { display: block; }
.chat-suggestions::-webkit-scrollbar { width: 8px; }
.chat-suggestions::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.chat-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.94rem;
  color: var(--text);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.chat-suggestion:hover,
.chat-suggestion.active {
  background: var(--blue-100);
  color: var(--blue);
}
.chat-suggestion .sugg-icon {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.chat-suggestion .sugg-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-suggestion .sugg-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-suggestion .sugg-sub {
  font-size: 0.8rem;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-suggestion:hover .sugg-sub,
.chat-suggestion.active .sugg-sub {
  color: var(--blue);
  opacity: 0.8;
}
.chat-suggestion .sugg-name mark {
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}
.chat-suggestion.active .sugg-name mark { color: var(--blue-700); }
.chat-suggestion.sugg-loading {
  cursor: default;
  color: var(--text-2);
  font-style: italic;
}
.chat-suggestion.sugg-loading:hover { background: transparent; }
.sugg-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: sugg-spin 700ms linear infinite;
  flex-shrink: 0;
  margin-top: 2px;
}
@keyframes sugg-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Chat date picker ---------- */
.chat-field.has-datepicker input {
  cursor: pointer;
  caret-color: transparent;
}
.chat-datepicker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
  padding: 14px;
  z-index: 50;
  display: none;
  animation: sugg-in 160ms var(--ease);
}
.chat-datepicker.open { display: block; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.cal-nav {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.cal-nav:hover {
  background: var(--blue-100);
  color: var(--blue);
  border-color: var(--blue-100);
}
.cal-wds {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}
.cal-wd {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.cal-day:hover:not(:disabled) {
  background: var(--blue-100);
  color: var(--blue);
}
.cal-day.out {
  color: var(--line-2);
  cursor: default;
}
.cal-day.past {
  color: var(--line-2);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: var(--line-2);
}
.cal-day.today {
  color: var(--blue);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--blue-100);
}
.cal-day.sel {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}
.cal-day.sel:hover { background: var(--blue-600); color: #fff; }
.cal-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.cal-today-btn {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blue);
  background: transparent;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease);
}
.cal-today-btn:hover { background: var(--blue-100); }

.chat-field input,
.chat-field textarea {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 0.98rem;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  background: #fff;
  min-height: 48px;
}
.chat-field input:focus,
.chat-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,128,237,.12);
}
.chat-field .send-btn {
  padding: 0 22px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--dur-1) var(--ease);
  min-height: 48px;
}
.chat-field .send-btn:hover { background: var(--blue-600); }
.chat-field .send-btn:disabled { background: var(--line-2); cursor: not-allowed; }

.multi-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.multi-wrap .multi-options { display: flex; flex-wrap: wrap; gap: 8px; }
.multi-wrap .confirm {
  align-self: flex-end;
  padding: 10px 20px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  min-height: 44px;
  transition: background var(--dur-1) var(--ease);
}
.multi-wrap .confirm:hover { background: var(--blue-600); }

.lead-form {
  display: grid;
  gap: 12px;
  width: 100%;
}
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form input {
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 0.98rem;
  background: #fff;
  min-height: 48px;
}
.lead-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,128,237,.12); }
.lead-form button {
  padding: 14px 22px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  min-height: 52px;
  box-shadow: var(--shadow-blue);
  transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.lead-form button:hover { background: var(--blue-600); transform: translateY(-1px); }

.chat-progress {
  height: 4px;
  background: var(--bg-alt);
  overflow: hidden;
}
.chat-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--light-blue));
  transition: width var(--dur-3) var(--ease);
}

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  box-shadow: var(--shadow-1);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.why-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--light-blue));
  color: #fff;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-blue);
}
.why-card h3 { margin-bottom: 8px; }
.why-card p { color: var(--text-3); font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tm-card {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.tm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tm-card:nth-child(4), .tm-card:nth-child(5) { grid-column: span 1; }
.tm-stars { color: #f5a623; font-size: 1rem; letter-spacing: 2px; }
.tm-card blockquote {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
  font-style: normal;
}
.tm-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tm-person img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-alt);
}
.tm-person strong { display: block; font-size: 0.95rem; }
.tm-person span { color: var(--text-3); font-size: 0.85rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-3);
}
.about-text h2 { margin: 10px 0 20px; }
.about-text p { margin-bottom: 16px; }
.about-stats { display: flex; gap: 36px; margin-top: 24px; }
.about-stats > div { display: flex; flex-direction: column; }
.about-stats strong {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: -.02em;
}
.about-stats span { color: var(--text-3); font-size: 0.88rem; }

/* ---------- Strong CTA ---------- */
.cta-strong {
  background: linear-gradient(135deg, var(--blue) 0%, #3b8ff0 55%, var(--light-blue) 100%);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,.12), transparent 45%);
  pointer-events: none;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.92); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin: 10px 0 16px; }
.contact-info > p { margin-bottom: 28px; color: var(--text-3); }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.contact-icon {
  width: 48px; height: 48px;
  background: var(--blue-100);
  color: var(--blue);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-list strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.contact-list a, .contact-list span { color: var(--text-2); }
.contact-list a:hover { color: var(--blue); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 16px;
}
.contact-form h3 { margin-bottom: 4px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label span { font-size: 0.88rem; font-weight: 600; color: var(--text-2); }
.contact-form input,
.contact-form textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 0.98rem;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  background: #fff;
  min-height: 48px;
  font-family: inherit;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,128,237,.12);
}
.form-note { font-size: 0.88rem; color: var(--text-3); }
.form-note.ok { color: #10b981; font-weight: 600; }
.form-note.err { color: #ef4444; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1729;
  color: rgba(255,255,255,.8);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-family: var(--font-head); font-size: 0.95rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { transition: color var(--dur-1) var(--ease); }
.footer-grid a:hover { color: var(--light-blue); }
.footer-about { margin-top: 16px; font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,.65); max-width: 340px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.87rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-3);
  z-index: 200;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.ok { background: #10b981; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; gap: 44px; }
  .how-media img { aspect-ratio: 16/10; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media img { aspect-ratio: 16/10; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 96px 0 72px; min-height: auto; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 1.4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .tm-grid { grid-template-columns: 1fr; }
  .trust-grid {
    display: grid !important;
    grid-template-columns: auto auto !important;
    justify-content: start !important;
    justify-items: start !important;
    column-gap: 28px;
    row-gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
    align-items: start;
  }
  .trust-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    justify-self: start;
    align-items: start;
    gap: 10px;
    font-size: 0.86rem;
    line-height: 1.35;
    width: 168px;
  }
  .trust-item svg { margin-top: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .cta-inner { text-align: center; justify-content: center; }
  .contact-form { padding: 24px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .lead-form .row { grid-template-columns: 1fr; }
  .how-badge { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .logo-sub { display: none; }
  .logo-name { font-size: 0.95rem; white-space: nowrap; }
  .logo-mark { width: 38px; height: 38px; border-radius: 10px; }
  .header-inner { gap: 10px; }
  .header-cta { gap: 6px; }
  .header-quote-btn { display: none; }
  .phone-link { width: 40px; height: 40px; }
  .phone-link svg { width: 16px; height: 16px; }
  .lang-btn {
    height: 40px;
    padding: 0 10px 0 12px;
    font-size: 0.82rem;
    gap: 5px;
  }
  .lang-btn .lang-globe { width: 14px; height: 14px; }
  .lang-btn .lang-caret { width: 11px; height: 11px; }
  .lang-menu { min-width: 160px; right: -4px; }
  .menu-toggle { width: 40px; height: 40px; }
  .chat-body { min-height: 320px; max-height: 380px; }
  .chat-field .send-btn span { display: none; }
}

@media (max-width: 400px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .logo-name { font-size: 0.9rem; }
  .logo-mark { width: 34px; height: 34px; }
  .phone-link { width: 38px; height: 38px; }
  .lang-btn {
    height: 38px;
    padding: 0 8px 0 10px;
    font-size: 0.78rem;
    gap: 4px;
  }
  .lang-btn .lang-caret { width: 10px; height: 10px; }
  .menu-toggle { width: 38px; height: 38px; }
  .trust-item { width: 150px; font-size: 0.82rem; }
  .trust-grid { column-gap: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
