/* ============================================================
   Florette Relocation — Homepage-only styles
   Loaded by includes/header.php when $page['type'] === 'home'.
   Chrome (nav, footer, buttons, typography, breadcrumbs) is in
   style.css and used by every page; this file is just the
   one-page hero/sections/floating UI that only the homepage has.
   ============================================================ */

/* === Helpers used by homepage sections === */
.bg-soft-2 { background: linear-gradient(180deg, var(--bg-2), var(--color-background)); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.075rem; color: var(--color-text-secondary); }

/* === Nav AI button (homepage-only — opens the floating chat) === */
.nav-ai {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--color-trust-navy), #1B3F66);
  padding: 7px 12px; border-radius: 999px; font-size: .85rem; letter-spacing: .04em;
  border: none; cursor: pointer; box-shadow: 0 4px 14px rgba(15,42,68,.25);
  transition: transform .2s, box-shadow .2s;
}
.nav-ai:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15,42,68,.35); }
.nav-ai svg { width: 16px; height: 16px; color: #FFB627; }
.nav-ai span { font-size: .85rem; }

/* === HERO === */
.hero {
  min-height: 100svh; display: flex; align-items: center; position: relative; isolation: isolate;
  padding: calc(var(--nav-h) + 60px) 0 80px; color: #fff; overflow: hidden;
}
/* Inner-page hero — same visual treatment, shorter footprint (no full viewport) */
.hero.hero--inner {
  min-height: 0;
  padding: clamp(96px, 14vw, 160px) 0 clamp(56px, 8vw, 96px);
}
.hero.hero--inner h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.hero.hero--inner .hero-inner { max-width: 820px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.06); animation: heroZoom 22s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(15,42,68,.55), transparent 60%),
    linear-gradient(115deg, rgba(15,23,42,.92) 0%, rgba(15,42,68,.72) 38%, rgba(15,23,42,.30) 100%);
}
.hero-inner { max-width: 760px; }
.hero .pill {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.92); background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero .pill .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 9px; vertical-align: middle; }
.hero h1 {
  color: #fff; font-size: var(--text-hero); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero h1 .hl { color: inherit; }
.hero p.sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(255,255,255,.9); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; color: rgba(255,255,255,.88); list-style: none; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: #5BBF8A; flex: none; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.45); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  40%  { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* === STATS BAR (homepage variant — overlaps hero with negative margin) === */
.stats-wrap { margin-top: -66px; position: relative; z-index: 5; }
.stats {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.stat { padding: 34px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--color-border); }
.stat .num, .stat-number { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--color-trust-navy); line-height: 1; }
.stat .label { margin-top: 8px; font-size: .92rem; font-weight: 600; color: var(--color-text-secondary); letter-spacing: .01em; }

/* === SERVICES (homepage card variant — .media/.body/.tag/.more) === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .media img { transform: scale(1.08); }
.service-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,.5)); }
.service-card .tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--color-trust-navy); padding: 6px 12px; border-radius: 999px; }
.service-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card .more, .service-card a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--color-trust-navy); font-size: .95rem; margin-top: 4px; text-decoration: none; transition: gap .25s, color .25s; }
.service-card .more:hover, .service-card a:hover { color: var(--color-brand-red); }
.service-card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.service-card:hover .more { gap: 11px; }
.service-card:hover .more svg { transform: translateX(3px); }

/* === PROCESS TIMELINE === */
.process { position: relative; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 36px; left: 8%; right: 8%; height: 3px; border-radius: 3px; background: var(--color-border); }
.tl-step { text-align: center; position: relative; }
.tl-num {
  width: 74px; height: 74px; border-radius: 22px; margin: 0 auto 20px;
  display: grid; place-items: center; position: relative; z-index: 2;
  background: var(--color-surface-elevated); border: 1px solid var(--color-border); box-shadow: var(--shadow);
  font-weight: 800; font-size: 1.5rem; color: var(--color-trust-navy);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.tl-step:hover .tl-num { transform: translateY(-6px) rotate(-4deg); background: var(--color-trust-navy); color: #fff; box-shadow: var(--shadow-blue); }
.tl-num svg { width: 28px; height: 28px; }
.tl-step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.tl-step p { font-size: .93rem; color: var(--color-text-secondary); }

/* === WHY CHOOSE US / GUARANTEES === */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.why-media { position: relative; }
.why-media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; }
.why-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.why-media .badge {
  position: absolute; bottom: -26px; right: -10px; background: #fff;
  border: 1px solid rgba(45,106,79,.22); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
}
.why-media .badge .ring { width: 46px; height: 46px; border-radius: 14px; background: rgba(45,106,79,.10); display: grid; place-items: center; color: var(--color-success-green); }
.why-media .badge .ring svg { width: 22px; height: 22px; }
.why-media .badge b { display: block; font-size: 1.05rem; color: var(--color-success-green); font-weight: 700; }
.why-media .badge span { font-size: .82rem; color: var(--color-text-secondary); }
.guarantees { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.g-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.g-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(15,42,68,.2); }
.g-item .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(45,106,79,.10); display: grid; place-items: center; color: var(--color-success-green); margin-bottom: 13px; }
.g-item .ico svg { width: 21px; height: 21px; }
.g-item h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 5px; }
.g-item p { font-size: .9rem; color: var(--color-text-secondary); }

/* === ROUTES === */
.routes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background .3s;
  text-decoration: none; color: inherit;
}
.route-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(15,42,68,.22); color: inherit; }
.route-card .flag {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 30px; border-radius: 7px; background: var(--color-trust-navy);
  color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; line-height: 1;
}
.route-card .info { flex: 1; min-width: 0; }
.route-card .info b { display: block; font-size: 1.04rem; color: var(--color-text-primary); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-card .info span { font-size: .86rem; color: var(--color-text-secondary); }
.route-card .transit { flex: none; text-align: right; }
.route-card .transit b { display: block; font-size: 1.25rem; color: var(--color-trust-navy); font-weight: 800; line-height: 1; }
.route-card .transit span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-secondary); }
.routes-note { text-align: center; margin-top: 34px; color: var(--color-text-secondary); font-size: 1.02rem; }
.routes-note a { font-weight: 600; color: var(--color-trust-navy); border-bottom: 2px solid rgba(15,42,68,.3); }
.routes-note a:hover { border-color: var(--color-trust-navy); }

/* === TESTIMONIALS CAROUSEL === */
.testimonials { background: var(--color-trust-navy); color: #fff; overflow: hidden; }
.testimonials .section-head h2 { color: #fff; }
.testimonials .section-head p { color: rgba(255,255,255,.7); }
.testimonials .eyebrow { color: rgba(255,255,255,.78); }
.t-carousel { max-width: 880px; margin: 0 auto; position: relative; }
.t-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.t-track { display: flex; transition: transform .6s var(--ease); }
.t-slide { min-width: 100%; padding: 6px; }
.t-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 46px); text-align: center;
}
.t-card .quote-mark { font-size: 3.4rem; line-height: 1; color: rgba(255,255,255,.32); font-family: Georgia, serif; font-weight: 700; display: block; margin-bottom: 6px; }
.t-card blockquote { font-size: clamp(1.08rem, 2vw, 1.34rem); line-height: 1.6; color: #fff; font-weight: 500; margin-bottom: 26px; }
.t-card .stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 18px; color: #E0A92E; }
.t-card .stars svg { width: 18px; height: 18px; }
.t-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.t-author img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.5); }
.t-avatar-fallback { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #FFB627, #E0A92E); color: #0F2A44; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; border: 2px solid rgba(255,255,255,.5); }
.t-author .nm { text-align: left; }
.t-author .nm b { display: block; font-size: 1.02rem; color: #fff; font-weight: 700; }
.t-author .nm span { font-size: .85rem; color: rgba(255,255,255,.7); }
.t-maps-link { display: inline-block; margin-top: 6px; font-weight: 600; color: #FFB627; border-bottom: 1px solid rgba(255,182,39,.4); }
.t-maps-link:hover { border-color: #FFB627; }
.t-summary { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; color: rgba(255,255,255,.85); }
.t-summary b { color: #fff; }
.t-sum-stars { display: inline-flex; gap: 2px; color: #E0A92E; }
.t-sum-stars svg { width: 15px; height: 15px; }
.t-sum-google { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #4285F4; font-weight: 900; font-size: .78rem; font-family: Arial, sans-serif; }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.t-arrow { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; transition: background .25s, transform .25s, border-color .25s; cursor: pointer; }
.t-arrow:hover { background: #fff; color: var(--color-trust-navy); transform: scale(1.08); border-color: #fff; }
.t-arrow svg { width: 20px; height: 20px; }
.t-dots { display: flex; gap: 9px; }
.t-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); transition: transform .25s, background .25s; cursor: pointer; border: none; }
.t-dot.active { background: #fff; transform: scale(1.4); }

/* === GALLERY + LIGHTBOX === */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.g-cell { position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; box-shadow: var(--shadow-sm); }
.g-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.g-cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.55)); opacity: 0; transition: opacity .35s; }
.g-cell .zoom { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .35s, transform .35s; transform: scale(.7); }
.g-cell .zoom div { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--blue); box-shadow: var(--shadow); }
.g-cell .zoom svg { width: 20px; height: 20px; }
.g-cell:hover img { transform: scale(1.12); }
.g-cell:hover::after { opacity: 1; }
.g-cell:hover .zoom { opacity: 1; transform: scale(1); }
.g-cell.tall { grid-row: span 2; }
.g-cell.wide { grid-column: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8,12,24,.92); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 22px; right: 24px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; display: grid; place-items: center; transition: background .2s, transform .2s; border: none; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .2s; border: none; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

/* === CTA BANNER (homepage hero-style — different from sub-page .cta-section) === */
.cta-banner { position: relative; isolation: isolate; color: #fff; text-align: center; padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.cta-banner .bg { position: absolute; inset: 0; z-index: -2; }
.cta-banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(15,23,42,.93), rgba(15,42,68,.86)); }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-actions .btn-ghost { color: #fff; }
.cta-contact { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; font-size: .97rem; color: rgba(255,255,255,.85); }
.cta-contact a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.cta-contact svg { width: 16px; height: 16px; color: rgba(255,255,255,.6); }

/* === Back to top === */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 14px; z-index: 900;
  background: var(--color-trust-navy); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-blue);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .35s var(--ease);
  border: none; cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* === Scroll reveal === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }

/* === AI assistant FAB + chat === */
.ai-fab { position: fixed; bottom: 90px; right: 24px; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #0F2A44, #1B3F66); color: #fff; border: none; box-shadow: 0 10px 30px rgba(15,42,68,.35); display: grid; place-items: center; cursor: pointer; z-index: 90; transition: transform .25s; }
.ai-fab svg { width: 26px; height: 26px; color: #FFB627; position: relative; z-index: 2; }
.ai-fab:hover { transform: translateY(-3px); }
.ai-fab::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #FFB627; opacity: .7; animation: aiPulse 2s ease-out infinite; }
@keyframes aiPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.ai-chat { position: fixed; bottom: 90px; right: 24px; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 110px); background: #fff; border-radius: 18px; box-shadow: 0 30px 60px rgba(15,42,68,.35); display: flex; flex-direction: column; overflow: hidden; z-index: 95; transform: translateY(20px) scale(.96); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; }
.ai-chat.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.ai-head { background: linear-gradient(135deg, #0F2A44, #1B3F66); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-title { display: flex; align-items: center; gap: 10px; }
.ai-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,182,39,.18); display: grid; place-items: center; }
.ai-avatar svg { width: 20px; height: 20px; color: #FFB627; }
.ai-title b { display: block; font-size: .95rem; font-weight: 700; line-height: 1.1; }
.ai-title span { font-size: .74rem; opacity: .8; }
.ai-close { background: rgba(255,255,255,.12); color: #fff; border: none; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }
.ai-close:hover { background: rgba(255,255,255,.22); }
.ai-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #F7FAFD; font-size: .9rem; line-height: 1.5; }
.ai-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; animation: aiSlide .25s ease; word-wrap: break-word; }
.ai-msg.bot { background: #fff; color: #1E293B; border: 1px solid #E2E8F0; border-bottom-left-radius: 4px; align-self: flex-start; }
.ai-msg.user { background: #0F2A44; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ai-msg a { color: #FFB627; font-weight: 600; text-decoration: underline; }
.ai-msg.user a { color: #FFD37A; }
.ai-typing { display: inline-flex; gap: 4px; padding: 13px 14px; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; border-bottom-left-radius: 4px; align-self: flex-start; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: #94A3B8; animation: aiBounce 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes aiBounce { 0%, 80%, 100% { transform: scale(.8); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@keyframes aiSlide { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: #F7FAFD; }
.ai-chips button { background: #fff; border: 1px solid #E2E8F0; color: #0F2A44; font-weight: 600; font-size: .78rem; padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.ai-chips button:hover { background: #0F2A44; color: #fff; border-color: #0F2A44; }
.ai-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #E2E8F0; background: #fff; }
.ai-form input { flex: 1; border: 1px solid #E2E8F0; border-radius: 999px; padding: 10px 14px; font-size: .9rem; outline: none; font-family: inherit; transition: border-color .2s; }
.ai-form input:focus { border-color: #0F2A44; }
.ai-form button { background: #0F2A44; color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: transform .15s, background .2s; flex: none; }
.ai-form button:hover { background: #1B3F66; transform: translateY(-1px); }
.ai-form button svg { width: 16px; height: 16px; }
.ai-foot { font-size: .7rem; color: #94A3B8; text-align: center; padding: 0 16px 8px; background: #fff; }

/* === Responsive (homepage sections only) === */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .routes-grid   { grid-template-columns: repeat(2, 1fr); }
  .timeline      { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .timeline::before { display: none; }
}
@media (max-width: 920px) {
  .why { grid-template-columns: 1fr; gap: 54px; }
  .why-media .badge { right: 14px; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat::before { display: none; }
  .stat:nth-child(2)::before, .stat:nth-child(4)::before { content: ""; display: block; left: 0; top: 22%; bottom: 22%; }
  .stats .stat { border-bottom: 1px solid var(--line); }
  .stats .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats .stat:nth-child(3), .stats .stat:nth-child(4) { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .routes-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; text-align: left; gap: 0; }
  .tl-step { display: grid; grid-template-columns: 74px 1fr; gap: 18px; text-align: left; padding-bottom: 30px; position: relative; }
  .tl-step:not(:last-child)::after { content: ""; position: absolute; left: 36px; top: 80px; bottom: 0; width: 2px; background: var(--line); }
  .tl-num { margin: 0; }
  .guarantees { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-cell.wide { grid-column: span 2; }
  .g-cell.tall { grid-row: span 1; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn,
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; }
}
@media (max-width: 520px) {
  .ai-chat { width: calc(100vw - 16px); right: 8px; bottom: 8px; height: calc(100vh - 16px); max-height: none; border-radius: 14px; }
  .ai-fab { bottom: 14px; right: 14px; width: 52px; height: 52px; }
}
