/* ================================================
   INDEX.CSS — Homepage specific styles
   ================================================ */

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-end;
  background: #f7f9f7;

}

.hero-bg-slider{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}

.hero-bg-layer{
  position:absolute;
  inset:0;

  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;

  opacity:0;
  transition:opacity 3.5s ease-in-out;

  will-change:opacity;
}

.hero-bg-layer.is-active{
  opacity:1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(247,249,247,1) 0%,
    rgba(247,249,247,1) 30%,
    rgba(247,249,247,.88) 40%,
    rgba(247,249,247,.38) 55%,
    rgba(247,249,247,.04) 65%,
    rgba(247,249,247,0) 100%
  );
  z-index: 1;
}

.hero-fade {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  padding: 0 0 105px 64px;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.08;
  margin-bottom: 28px;
  color: var(--dark);
  max-width: 680px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gd);
}

.hero-sub {
  display: block;
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 740px;
  max-width: 100%;
  align-items: center;
}

.hero-buttons .btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 66px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 17px;
}

.hero-buttons .btn-ai {
  grid-column: 1 / -1;
}

.trust-pills {
  display: flex;
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 18px;
  z-index: 3;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 174px;
  height: 56px;
  padding: 0 20px;
  background: rgba(255,255,255,.32);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(13,31,26,.10);
}

.trust-pill-ico {
  width: 32px;
  height: 32px;
  background: rgba(232,247,241,.78);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-pill-ico svg {
  width: 18px;
  height: 18px;
  stroke: var(--g);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-pill-text {
  font: 600 12px var(--font-sans);
  color: var(--dark);
  line-height: 1.25;
}

/* FEATURE CARDS GRID */
.features {
  margin-top: 90px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  background: #fff;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 28px 30px;
  background-size: cover;
  background-position: center;
}

.feature-card.dark-text,
.feature-card.light-text {
  color: var(--white);
}

.feature-num {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  background: var(--gd);
  color: var(--white);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 14px var(--font-sans);
  z-index: 3;
}

.feature-content {
  position: relative;
  z-index: 2;
  max-width: 360px;
}

.feature-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
  line-height: 1.12;
  color: inherit;
}

.feature-card h3 em {
  font-style: italic;
  color: var(--gl);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.45;
  color: inherit;
  opacity: .9;
  margin: 0;
}

/* DESKTOP */
@media (min-width: 860px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-card {
    min-height: 360px;
  }
}

/* SEARCH SECTION */
.search-section {
  background: var(--white);
  padding: 20px 20px 0;
  border-bottom: 1px solid var(--border);
}

.search-section .search-input-wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* HOW IT WORKS */
.how-section {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.how-section .section-tag { color: var(--gl); }
.how-section h2 { color: var(--white); }
.how-section .section-sub { color: rgba(255,255,255,.55); }

.how-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.how-tab {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font: 600 13px var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  background: transparent;
}

.how-tab.on {
  background: var(--g);
  color: var(--white);
  border-color: var(--g);
  box-shadow: 0 4px 14px var(--glow);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(0,168,107,.07);
  border: 1px solid rgba(0,168,107,.2);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(4px);
}

.how-num {
  width: 36px; height: 36px;
  background: var(--g);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font: 700 15px var(--font-sans);
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 3px 10px var(--glow);
}

.how-step h4 { font-size: 15px; color: var(--white); margin-bottom: 4px; }
.how-step p { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.6; }

/* FOR DOCTORS */
.fordoc-section { background: var(--white); }

.fordoc-card {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  border-radius: var(--radius-xl);
  padding: 28px;
  color: var(--white);
}

.fordoc-card .section-tag { color: var(--gl); margin-bottom: 12px; }

.fordoc-card h3 {
  font-size: 24px;
  color: var(--white);
  margin-bottom: 10px;
}

.fordoc-card > p {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 20px;
}

.fordoc-feats {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 24px;
}

.fordoc-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}

.fordoc-feat svg {
  width: 18px; height: 18px;
  stroke: var(--gl); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* AI SECTION */
.ai-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,168,107,.08) 0%, transparent 65%);
  pointer-events: none;
}

.ai-section .section-header { position: relative; z-index: 1; }
/* NEW AI SECTION */

.ai-layout{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:80px;
  align-items:center;
  position:relative;
  z-index:1;
}

.ai-content h2{
  max-width:650px;
}

.ai-content .section-sub{
  max-width:640px;
  margin-top:20px;
  margin-bottom:28px;
}

.ai-features{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:24px;
}

.ai-feature{
  display:flex;
  align-items:center;
  gap:8px;

  padding:10px 16px;

  border:1px solid rgba(0,168,107,.15);
  border-radius:999px;

  background:#fff;

  font-size:15px;
  font-weight:600;

  color:var(--dark);
}

.ai-flow{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;

  margin-bottom:32px;
}

.ai-flow-item{
  display:flex;
  align-items:center;
  gap:8px;

  color:var(--gray);
  font-weight:600;
}

.ai-flow-item svg{
  width:18px;
  height:18px;

  stroke:var(--g);
  fill:none;

  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;

  flex-shrink:0;
}

.ai-flow-arrow{
  color:var(--g);
  font-weight:700;
}

.btn-ai-main{
  min-width:280px;
}

.ai-visual{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.ai-visual img{
  width:100%;
  max-width:420px;
  height:auto;

  display:block;

  filter:
    drop-shadow(0 20px 50px rgba(0,0,0,.12));
}

.ai-note{
  margin-top:18px;

  font-size:13px;
  text-align:center;

  color:#8b8b8b;
}

@media (max-width: 980px){

  .ai-layout{
    grid-template-columns:1fr;
    gap:40px;
  }

  .ai-content{
    text-align:center;
  }

  .ai-content .section-sub{
    max-width:none;
  }

  .ai-features{
    justify-content:center;
  }

  .ai-flow{
    justify-content:center;
  }

  .btn-ai-main{
    width:100%;
    max-width:360px;
  }

  .ai-visual img{
    max-width:340px;
  }

}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--g), var(--gt));
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 65%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 40px 20px 28px;
}

.footer-top {
  margin-bottom: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--g), var(--gt));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}

.footer-mark svg {
  width: 18px; height: 18px;
  stroke: var(--white); fill: none;
  stroke-width: 2; stroke-linecap: round;
}

.footer-name {
  font: 700 17px var(--font-serif);
  color: var(--white);
}

.footer-name span { color: var(--g); }

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-col h4 {
  font: 600 11px var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--g); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-contact {
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all var(--transition);
  color: rgba(255,255,255,.6);
}

.social-icon:hover {
  background: var(--g);
  border-color: var(--g);
  color: var(--white);
  transform: translateY(-2px);
}

.social-icon svg { width: 17px; height: 17px; fill: currentColor; }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,.25);
}

/* CHAT WIDGET */
.chat-widget {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 3000;
}

.chat-btn {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--g), var(--gt));
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px var(--glow), 0 0 0 4px rgba(0,168,107,.1);
  transition: all .25s;
  position: relative;
  animation: chatGlow 2.5s ease-in-out infinite;
}

@keyframes chatGlow {
  0%, 100% { box-shadow: 0 6px 24px var(--glow), 0 0 0 4px rgba(0,168,107,.1); }
  50% { box-shadow: 0 8px 32px rgba(0,168,107,.5), 0 0 0 8px rgba(0,168,107,.06), 0 0 20px 6px rgba(0,168,107,.18); }
}

.chat-btn:hover { transform: scale(1.08); }

.chat-btn svg {
  width: 24px; height: 24px;
  stroke: var(--white); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.chat-notif {
  position: absolute;
  top: -2px; right: -2px;
  width: 16px; height: 16px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--white);
  font: 700 9px var(--font-sans);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}

.chat-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: calc(100vw - 32px);
  max-width: 300px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  position: absolute;
  bottom: 68px; right: 0;
  animation: chatPop .28s cubic-bezier(.34,1.56,.64,1);
}

.chat-panel.open { display: block; }

@keyframes chatPop {
  from { opacity: 0; transform: scale(.9) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-header {
  background: linear-gradient(135deg, var(--g), var(--gt));
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.chat-avatar svg {
  width: 17px; height: 17px;
  stroke: var(--white); fill: none; stroke-width: 2;
}

.chat-info { flex: 1; }
.chat-name { font: 600 14px var(--font-sans); color: var(--white); }
.chat-status {
  font-size: 11px;
  color: rgba(255,255,255,.72);
  display: flex; align-items: center; gap: 4px;
}
.chat-status::before {
  content: '';
  width: 5px; height: 5px;
  background: #7FFFC4;
  border-radius: 50%;
}

.chat-close {
  background: none; border: none;
  color: rgba(255,255,255,.65);
  cursor: pointer; padding: 3px;
}
.chat-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.chat-msgs {
  padding: 16px;
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  background: var(--bg);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--dark);
  line-height: 1.5;
  max-width: 88%;
}

.chat-msg-user {
  background: var(--g);
  color: var(--white);
  border-radius: 12px 12px 4px 12px;
  align-self: flex-end;
  margin-left: auto;
}

.chat-input-row {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 9px 13px;
  font: 400 13px var(--font-sans);
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--g); }

.chat-send {
  width: 34px; height: 34px;
  background: var(--g);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.chat-send:hover { background: var(--gl); }
.chat-send svg {
  width: 14px; height: 14px;
  stroke: var(--white); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* DESKTOP */
@media (min-width: 860px) {
  .features { grid-template-columns: repeat(4, 1fr); }

  .how-tabs { margin-bottom: 36px; }
  .how-steps { display: grid; grid-template-columns: repeat(2, 1fr); }

  .fordoc-card { padding: 40px; }

  .footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
  }
  .footer-cols { display: contents; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }

}

/* ===== MOBILE ONLY ===== */
@media (max-width: 859px) {
  .hero {
    min-height: calc(100svh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #f7f9f7 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero::before {
    background-image: url("/images/hero.jpg") !important;
    background-size: 165% auto !important;
    background-position: 88% 0% !important;
    background-repeat: no-repeat !important;
    filter: brightness(1.08) contrast(.96) !important;
    
  }

  .hero::after {
  background: linear-gradient(
    to bottom,
    rgba(247,249,247,0) 0%,
    rgba(247,249,247,.04) 42%,
    rgba(247,249,247,.72) 64%,
    rgba(247,249,247,1) 82%,
    rgba(247,249,247,1) 100%
  ) !important;
}

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 18px 34px !important;
    width: 100% !important;
  }

  .hero h1 {
    font-size: 40px !important;
    line-height: 1.08 !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }

  .hero-sub {
    display: none !important;
  }

  .trust-pills {
    display: none !important;
  }

  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 18px !important;
    justify-content: center !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }
}
/* =================================
   FEATURE IMAGES
   ================================= */

.feature-1{
  background-image:
    linear-gradient(180deg,rgba(13,31,26,.25),rgba(13,31,26,.85)),
    url("../images/feature-1.jpg");
  background-size: cover;
  background-position: center;
}

.feature-2{
  background-image: url("../images/feature-2.jpg");
  background-size: cover;
  background-position: center;
}

.feature-3{
  background-image:
    linear-gradient(180deg,rgba(13,31,26,.15),rgba(13,31,26,.82)),
    url("../images/feature-3.jpg");
  background-size: cover;
  background-position: center ;
}

.feature-4{
  background-image: url("../images/feature-4.jpg");
  background-size: cover;
  background-position: center ;
}
/* =========================
   MOBILE ONLY — FEATURE CARDS
   ========================= */
@media (max-width: 859px) {

  .features {
    margin-top: 0 !important;
    padding-top: 40px !important;
  }

  .feature-card {
    min-height: 320px !important;
    background-size: cover !important;
    background-position: center center !important;
    border-radius: 0 !important;
  }

  .feature-1 {
    background-position: center center !important;
  }

  .feature-2 {
    background-position: center center !important;
  }

  .feature-3 {
    background-position: center center !important;
  }

  .feature-4 {
    background-position: center center !important;
  }

  .feature-content {
    position: relative;
    z-index: 2;
  }

  .feature-card h3 {
    font-size: 34px !important;
    line-height: 1.1 !important;
  }

  .feature-card p {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  .mini-analysis {
    max-width: 100% !important;
  }
}



.chat-panel{
    width:560px;
    max-width:calc(100vw - 40px);
}

.chat-msgs {
  min-height: 280px;
  max-height: 520px;
}

.chat-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chat-options button {
  border: 1px solid rgba(0,168,107,.18);
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  text-align: left;
  font: 600 14px var(--font-sans);
  color: var(--dark);
  cursor: pointer;
}

.chat-options button:hover {
  background: var(--gbg);
  border-color: rgba(0,168,107,.35);
}

.chat-input-row {
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 859px) {
  .drawer-chat-slot .chat-panel {
    position: fixed;
    top: 86px;
    left: 14px;
    right: 14px;
    bottom: auto;
    width: auto;
    max-width: none;
    transform: none;
    margin: 0;
    z-index: 3005;
  }

  .chat-msgs {
    min-height: 300px;
    max-height: calc(100svh - 230px);
  }
}

/* ================================================
   ASSISTANT NAVIGATOR V3 — no free AI chat
   ================================================ */
.chat-widget{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:3000;
}

.chat-btn{
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:linear-gradient(135deg, var(--g), var(--gt));
  box-shadow:0 18px 42px rgba(0,168,107,.28), 0 0 0 6px rgba(0,168,107,.08);
  position:relative;
  transition:transform .2s ease, box-shadow .2s ease;
  animation:none !important;
}

.chat-btn:hover{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 22px 54px rgba(0,168,107,.36), 0 0 0 7px rgba(0,168,107,.08);
}

.chat-btn svg{
  width:25px;
  height:25px;
  stroke:#fff;
  fill:none;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.chat-notif{
  position:absolute;
  top:-2px;
  right:-2px;
  width:17px;
  height:17px;
  border-radius:50%;
  background:var(--red);
  color:#fff;
  border:2px solid #fff;
  font:800 9px var(--font-sans);
  display:flex;
  align-items:center;
  justify-content:center;
}

.chat-panel{
  position:absolute;
  right:0;
  bottom:72px;
  width:440px !important;
  max-width:calc(100vw - 40px) !important;
  display:none;
  overflow:hidden;
  border-radius:28px !important;
  border:1px solid rgba(13,31,26,.08) !important;
  background:#fff !important;
  box-shadow:0 28px 80px rgba(13,31,26,.22) !important;
  animation:assistantPop .24s ease both;
}

.chat-panel.open{
  display:block;
}

@keyframes assistantPop{
  from{opacity:0; transform:translateY(10px) scale(.96)}
  to{opacity:1; transform:translateY(0) scale(1)}
}

.chat-header{
  padding:17px 18px !important;
  display:flex;
  align-items:center;
  gap:12px;
  background:linear-gradient(135deg, #0d2f28, #00a86b) !important;
}

.chat-avatar{
  width:38px !important;
  height:38px !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.18) !important;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font:800 17px var(--font-sans);
}

.chat-avatar-mark{
  display:block;
  transform:translateY(-1px);
}

.chat-info{flex:1; min-width:0;}
.chat-name{font:800 15px var(--font-sans) !important; color:#fff !important;}
.chat-status{font-size:11px !important; color:rgba(255,255,255,.78) !important; display:flex; align-items:center; gap:5px;}
.chat-status::before{content:''; width:6px; height:6px; border-radius:50%; background:#8dffca;}

.chat-close{
  width:34px;
  height:34px;
  padding:0 !important;
  border:0;
  border-radius:12px;
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.chat-close svg{width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:2.2; stroke-linecap:round;}

.chat-view{
  min-height:450px;
  max-height:630px;
  overflow-y:auto;
  background:
    radial-gradient(circle at top right, rgba(0,168,107,.09), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f7fbf9 100%);
}

.chat-screen{
  padding:22px;
}

.chat-screen-forward{animation:assistantForward .22s ease both;}
.chat-screen-back{animation:assistantBack .22s ease both;}

@keyframes assistantForward{
  from{opacity:0; transform:translateX(18px)}
  to{opacity:1; transform:translateX(0)}
}

@keyframes assistantBack{
  from{opacity:0; transform:translateX(-18px)}
  to{opacity:1; transform:translateX(0)}
}

.chat-screen-top{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.chat-mini-label{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(0,168,107,.09);
  color:var(--g);
  font:800 11px var(--font-sans);
  letter-spacing:.045em;
  text-transform:uppercase;
}

.chat-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:0;
  background:transparent;
  color:#60736d;
  cursor:pointer;
  padding:5px 0;
  font:800 13px var(--font-sans);
}

.chat-back svg,
.chat-home svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.chat-home{
  width:34px;
  height:34px;
  border:1px solid rgba(0,168,107,.16);
  border-radius:12px;
  background:#fff;
  color:var(--g);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.chat-screen-title{
  margin:0 0 10px;
  color:var(--dark);
  font-size:25px;
  line-height:1.12;
  letter-spacing:-.02em;
}

.chat-screen-text{
  margin:0 0 18px;
  max-width:95%;
  color:#60736d;
  font-size:14px;
  line-height:1.65;
}

.chat-choice-list{
  display:grid;
  gap:10px;
  margin-top:17px;
}

.chat-choice{
  width:100%;
  min-height:58px;
  display:grid;
  grid-template-columns:38px 1fr 24px;
  align-items:center;
  gap:12px;
  border:1px solid rgba(0,168,107,.14);
  background:rgba(255,255,255,.88);
  border-radius:18px;
  padding:10px 12px;
  cursor:pointer;
  text-align:left;
  color:var(--dark);
  box-shadow:0 10px 26px rgba(13,31,26,.045);
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.chat-choice:hover{
  transform:translateY(-1px);
  background:#fff;
  border-color:rgba(0,168,107,.36);
  box-shadow:0 16px 34px rgba(13,31,26,.075);
}

.chat-choice-icon{
  width:38px;
  height:38px;
  border-radius:14px;
  background:rgba(0,168,107,.09);
  color:var(--g);
  display:flex;
  align-items:center;
  justify-content:center;
}

.chat-choice-icon svg,
.chat-choice-arrow svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:2.25;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.chat-choice-text{
  font:800 14px var(--font-sans);
  color:var(--dark);
  line-height:1.25;
}

.chat-choice-arrow{
  color:var(--g);
  display:flex;
  justify-content:flex-end;
}

.chat-steps-list,
.chat-bullets-list{
  display:grid;
  gap:10px;
  margin:16px 0 18px;
}

.chat-step-item,
.chat-bullet-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:13px;
  border-radius:17px;
  background:rgba(0,168,107,.07);
  border:1px solid rgba(0,168,107,.12);
}

.chat-step-item span,
.chat-bullet-item span{
  width:26px;
  height:26px;
  border-radius:10px;
  background:var(--g);
  color:#fff;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font:800 12px var(--font-sans);
}

.chat-step-item p,
.chat-bullet-item p{
  margin:2px 0 0;
  color:var(--dark);
  font-size:13px;
  line-height:1.5;
}

.chat-contact-form{
  display:grid;
  gap:9px;
  margin-top:18px;
}

.chat-field-label{
  margin-top:5px;
  color:var(--dark);
  font:800 12px var(--font-sans);
}

.chat-field{
  width:100%;
  border:1.5px solid rgba(0,168,107,.18);
  border-radius:16px;
  background:#fff;
  padding:13px 14px;
  color:var(--dark);
  outline:none;
  font:600 14px var(--font-sans);
  transition:border-color .18s ease, box-shadow .18s ease;
}

.chat-field:focus{
  border-color:var(--g);
  box-shadow:0 0 0 4px rgba(0,168,107,.08);
}

.chat-textarea{
  min-height:118px;
  resize:vertical;
  line-height:1.5;
}

.chat-submit{
  margin-top:8px;
  min-height:54px;
  border:0;
  border-radius:18px;
  background:linear-gradient(135deg, var(--g), var(--gt));
  color:#fff;
  cursor:pointer;
  font:900 14px var(--font-sans);
  box-shadow:0 14px 30px rgba(0,168,107,.25);
}

.chat-success-icon{
  width:50px;
  height:50px;
  border-radius:18px;
  background:rgba(0,168,107,.1);
  color:var(--g);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
  font:900 24px var(--font-sans);
}

.chat-msgs,
.chat-msg,
.chat-options,
.chat-input-row{
  display:none !important;
}

@media (max-width: 859px){
  .drawer-chat-slot .chat-widget{
    position:static;
    right:auto;
    bottom:auto;
    z-index:auto;
    display:flex;
    justify-content:center;
    margin-top:22px;
  }

  .drawer-chat-slot .chat-panel{
    position:fixed;
    top:72px;
    left:10px;
    right:10px;
    bottom:auto;
    width:auto !important;
    max-width:none !important;
    height:calc(100svh - 82px);
    max-height:none;
    border-radius:24px !important;
    z-index:3005;
  }

  .chat-view{
    min-height:0;
    height:100%;
    max-height:none;
  }

  .chat-screen{
    padding:16px;
  }

  .chat-screen-title{
    font-size:18px;
    margin-bottom:8px;
  }

  .chat-screen-text{
    font-size:13px;
    line-height:1.45;
    margin-bottom:14px;
  }

  .chat-screen-top{
    margin-bottom:8px;
  }

  .chat-choice-list{
    gap:8px;
    margin-top:12px;
  }

  .chat-choice{
    min-height:52px;
    padding:10px 12px;
    border-radius:16px;
  }

  .chat-choice-icon{
    width:34px;
    height:34px;
    border-radius:12px;
  }

  .chat-choice-text{
    font-size:13px;
  }
}


/* Chat choice force layout fix */
.chat-choice{
  display:grid !important;
  grid-template-columns:38px minmax(0,1fr) 24px !important;
  align-items:center !important;
  column-gap:14px !important;
}
.chat-choice-icon{grid-column:1 !important;}
.chat-choice-text{
  grid-column:2 !important;
  min-width:0 !important;
  align-self:center !important;
  white-space:normal !important;
}
.chat-choice-arrow{
  grid-column:3 !important;
  justify-self:end !important;
  align-self:center !important;
}

/* ================================================
   CHAT V3 SMOOTH TRANSITION FIX
   Prevent temporary scrollbar/jump during screen changes
   ================================================ */
.chat-panel,
.chat-view{
  overflow-x: hidden !important;
}

.chat-view{
  scrollbar-gutter: stable !important;
  overscroll-behavior: contain !important;
}

.chat-screen{
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  will-change: opacity, transform !important;
}

.chat-screen-forward,
.chat-screen-back{
  animation-duration: .18s !important;
  animation-timing-function: ease-out !important;
}

@keyframes assistantForward{
  from{opacity:0; transform:translateX(10px)}
  to{opacity:1; transform:translateX(0)}
}

@keyframes assistantBack{
  from{opacity:0; transform:translateX(-10px)}
  to{opacity:1; transform:translateX(0)}
}

.chat-choice{
  max-width: 100% !important;
}

@media (max-width: 859px){
  .drawer-chat-slot .chat-panel{
    overflow: hidden !important;
  }

  .chat-view{
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* ================================================
   FINAL CHAT V3 HARD FIX
   1) button text always after icon
   2) no horizontal scrollbar / no jump during transitions
   Put this block at the VERY END of index.css
   ================================================ */
.chat-panel,
.drawer-chat-slot .chat-panel{
  overflow: hidden !important;
}

.chat-view{
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: auto !important;
}

.chat-screen,
.chat-screen-forward,
.chat-screen-back{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  transform: none !important;
}

.chat-screen-forward,
.chat-screen-back{
  animation: chatScreenFadeOnly .14s ease-out both !important;
}

@keyframes chatScreenFadeOnly{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.chat-choice-list{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

button.chat-choice,
.chat-choice{
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 24px !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  column-gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.chat-choice-icon{
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: center !important;
  flex: 0 0 auto !important;
}

.chat-choice-text{
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  justify-self: stretch !important;
  align-self: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.chat-choice-arrow{
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: center !important;
  flex: 0 0 auto !important;
}

@media (max-width: 859px){
  button.chat-choice,
  .chat-choice{
    grid-template-columns: 34px minmax(0, 1fr) 22px !important;
    column-gap: 12px !important;
  }

  .chat-choice-icon{
    width: 34px !important;
    height: 34px !important;
  }
}


/* ================================================
   FINAL MOBILE CHAT SCROLL FIX
   Makes the assistant panel a real fixed-height flex layout:
   header stays fixed, inner chat content scrolls normally.
   ================================================ */
@media (max-width: 859px){

  .drawer-chat-slot .chat-panel,
  .chat-panel.open{
    position: fixed !important;
    top: 52px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
    border-radius: 24px !important;
    z-index: 3005 !important;
  }

  .chat-header{
    flex: 0 0 auto !important;
  }

  .chat-view{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
  }

  .chat-screen{
    min-height: auto !important;
    height: auto !important;
    padding: 15px 16px 28px !important;
    box-sizing: border-box !important;
  }

  .chat-choice-list{
    padding-bottom: 18px !important;
  }
}

/* FIX 1: на мобиле круг чата не должен мигать на главной */
@media (max-width: 859px) {
  body:not(.drawer-open) > .chat-widget {
    display: none !important;
  }
}
/* FIX 2: при открытии гамбургера показывается только кнопка чата, не окно */
@media (max-width: 859px) {
  .drawer-chat-slot .chat-panel {
    display: none !important;
  }

  .drawer-chat-slot .chat-panel.open {
    display: flex !important;
  }
}

/* ===== Contact form validation ===== */

.chat-field-error{
    display:none;
    margin-top:6px;
    font-size:12px;
    line-height:1.4;
    color:#d92d20;
    font-weight:500;
}

.chat-field-error:not(:empty){
    display:block;
}

.chat-field.is-invalid{
    border-color:#d92d20 !important;
    box-shadow:0 0 0 3px rgba(217,45,32,.12) !important;
}

.chat-form-status{
    display:none;
    margin-top:10px;
    padding:12px 14px;
    border-radius:14px;
    font-size:13px;
    line-height:1.45;
}

.chat-form-status:not(:empty){
    display:block;
}

.chat-form-status.is-error{
    background:#fff3f2;
    border:1px solid rgba(217,45,32,.18);
    color:#b42318;
}