/* ══════════════════════════════════════════════════════════
   NEGODA SOLUTIONS — Shared Components
   ══════════════════════════════════════════════════════════ */

/* ═══ HEADER / NAV ═══ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--dark);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}
.site-header .container-wide {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img, .site-logo svg { height: 40px; width: auto; max-width: 180px; }
.site-logo-text {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--white);
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 14px; font-weight: 600; color: rgba(250, 250, 248, 0.6);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.site-nav a.active { color: var(--gold); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger::after {
  content: ''; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; transition: transform var(--duration);
}
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  min-width: 320px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--duration), visibility var(--duration);
}
@media (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-trigger::after { transform: rotate(180deg); }
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
}
.nav-dropdown-menu .nav-dropdown-item {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-weight: 600;
  transition: background var(--duration);
}
.nav-dropdown-menu .nav-dropdown-item:hover { background: var(--bg2); color: var(--text); }
.nav-dropdown-menu .nav-dropdown-item small { display: block; font-size: 12px; color: var(--text2); font-weight: 400; margin-top: 2px; }

/* CTA Header */
.header-cta {
  font-size: 13px; font-weight: 700; color: var(--dark);
  background: var(--gold); padding: 9px 20px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; white-space: nowrap;
  transition: background var(--duration), transform var(--duration);
}
.header-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--white); cursor: pointer; padding: 8px;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 64px 0 0 0;
    background: var(--dark); padding: 24px;
    z-index: var(--z-overlay);
    overflow-y: auto;
  }
  .site-nav.open a { font-size: 18px; padding: 14px 0; }
  .site-nav.open .nav-dropdown-menu {
    position: static; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 0; margin: 0;
    opacity: 1; visibility: visible; pointer-events: auto;
    max-height: 0; overflow: hidden;
    display: block;
    transition: max-height 0.3s ease;
  }
  .site-nav.open .nav-dropdown.mobile-open .nav-dropdown-menu {
    max-height: 600px;
    padding: 0 0 8px 16px;
  }
  .site-nav.open .nav-dropdown.mobile-open .nav-dropdown-trigger::after { transform: rotate(180deg); }
  .site-nav.open .nav-dropdown-item { display: block; color: rgba(250, 250, 248, 0.6); }
  .site-nav.open .nav-dropdown-item:hover { background: rgba(255, 255, 255, 0.06); }
  .site-nav.open .nav-dropdown-item small { display: none; }
  .header-cta { display: none; }
}

/* ═══ TRUST BAR ═══ */
.trust-bar {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 8px 0; overflow-x: auto;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; white-space: nowrap;
}
.trust-item {
  font-size: 13px; font-weight: 600; color: var(--text2);
  display: flex; align-items: center; gap: 6px;
}
.trust-item .icon { color: var(--gold); }

@media (max-width: 768px) {
  .trust-bar-inner { justify-content: flex-start; padding: 0 16px; }
}
@media (max-width: 480px) {
  .trust-bar-inner { gap: 16px; flex-direction: column; align-items: flex-start; white-space: normal; padding: 8px 16px; }
  .btn { font-size: 14px; padding: 12px 20px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ═══ SOS BUTTON ═══ */
.sos-button {
  position: fixed; bottom: 24px; left: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--dark); color: #fff;
  font-size: 13px; font-weight: 700;
  border: 3px solid transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: var(--z-modal);
  transition: transform var(--duration);
}
.sos-button::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(var(--red-bright), var(--red), #8B3A3A, #C44040, var(--red-bright));
  animation: sosRotate 2.5s linear infinite; z-index: -1;
}
.sos-button::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--dark); z-index: -1;
}
.sos-button { animation: sosPulse 3s ease-in-out infinite; }
.sos-button:hover { transform: scale(1.08); }
@keyframes sosRotate { to { transform: rotate(360deg); } }
@keyframes sosPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(184,92,92,.25); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(184,92,92,.5); transform: scale(1.06); }
}

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--dark); color: rgba(250, 250, 248, 0.5);
  padding: var(--space-2xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl); margin-bottom: var(--space-xl);
}
.footer-col { min-width: 0; }
.footer-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(250, 250, 248, 0.5);
  padding: 4px 0; transition: color var(--duration);
}
.footer-col a:hover { color: var(--white); }

.footer-partners {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center;
  padding: var(--space-lg) 0; border-top: 1px solid rgba(250, 250, 248, 0.06);
  border-bottom: 1px solid rgba(250, 250, 248, 0.06);
  margin-bottom: var(--space-lg);
}
.footer-partner { height: 24px; opacity: 0.4; filter: grayscale(1) brightness(2); transition: opacity var(--duration); }
.footer-partner:hover { opacity: 0.8; }

.footer-legal {
  font-size: 12px; color: rgba(250, 250, 248, 0.3); line-height: 1.6;
  text-align: center;
}
.footer-legal a { color: rgba(250, 250, 248, 0.3); }
.footer-legal a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; white-space: nowrap;
  transition: all var(--duration) var(--ease);
}
.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-whatsapp { background: #1D9E75; color: #fff; }
.btn-whatsapp:hover { background: #25B586; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--gold); padding: 8px 0; }
.btn-ghost:hover { opacity: 0.7; }
.btn-secondary { background: rgba(250, 250, 248, 0.15); color: var(--white); border: 1px solid rgba(250, 250, 248, 0.2); }
.btn-secondary:hover { background: rgba(250, 250, 248, 0.25); }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: var(--space-md); }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px; color: var(--text);
  transition: border-color var(--duration);
}
.form-input:focus { border-color: var(--gold); outline: none; }
.form-input::placeholder { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-checkbox {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text2); cursor: pointer;
}
.form-checkbox input { margin-top: 3px; accent-color: var(--gold); }

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-family: var(--serif); font-size: 22px;
  color: var(--text); margin-bottom: var(--space-lg);
}

/* ═══ CARDS ═══ */
.card {
  background: #e8ece5; border-radius: 15px;
  padding: var(--space-lg);
  box-shadow: 5px 5px 10px #a3a89f, -5px -5px 10px #ffffff;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 4px 4px 8px #c8cdc4, -4px -4px 8px #f4f8f1, inset 2px 2px 5px #c8cdc4, inset -2px -2px 5px #f4f8f1; }
.card-title { font-family: var(--serif); font-size: 18px; color: var(--text); margin-bottom: 8px; }
.card-text { font-size: 15px; color: var(--text2); line-height: 1.65; }

/* Dark variant */
.sec-dark .card { background: #1A3C34; box-shadow: 8px 8px 16px rgba(0,0,0,0.35), -8px -8px 16px rgba(250,250,248,0.07); }
.sec-dark .card-title { color: var(--white); }
.sec-dark .card-text { color: rgba(250, 250, 248, 0.6); }

/* ═══ FAQ ═══ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}
.faq-question {
  font-size: 16px; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after {
  content: '+'; font-size: 20px; color: var(--gold);
  transition: transform var(--duration);
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease);
  font-size: 15px; color: var(--text2); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 500px; padding-top: 12px; }

/* ═══ TAGS ═══ */
.tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
}
.tag-gold { background: rgba(184, 146, 74, 0.12); color: var(--gold); }
.tag-green { background: rgba(74, 139, 111, 0.12); color: var(--green); }
.tag-red { background: rgba(184, 92, 92, 0.12); color: var(--red); }

/* ═══ PHONE CTA (floating) ═══ */
.phone-float {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: var(--z-modal);
}
.phone-float a {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: transform var(--duration);
}
.phone-float a:hover { transform: scale(1.08); }
.phone-float .wa { background: #25D366; color: #fff; }
.phone-float .tel { background: var(--gold); color: var(--dark); }

/* ═══ BREADCRUMBS ═══ */
.breadcrumbs {
  font-size: 13px; color: var(--text-muted); padding: 12px 0;
}
.breadcrumbs a { color: var(--text2); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 6px; }

/* ═══ COOKIE BANNER ═══ */
.cookie-banner {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  max-width: 520px; width: calc(100% - 48px);
  background: var(--dark); color: rgba(250, 250, 248, 0.7);
  padding: 16px 24px; z-index: 9500;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap;
  font-size: 14px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
}
.cookie-banner.hidden { display: none; }
.cookie-accept {
  background: var(--gold); color: var(--dark);
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13px; border: none; cursor: pointer;
}
.cookie-reject {
  background: rgba(250, 250, 248, 0.15); color: rgba(250, 250, 248, 0.8);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13px; border: 1px solid rgba(250, 250, 248, 0.2);
  cursor: pointer;
}
.cookie-reject:hover { background: rgba(250, 250, 248, 0.25); }

/* ═══ SOS MODAL ═══ */
#sos-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
#sos-overlay.sos-active { opacity: 1; pointer-events: auto; }

#sos-modal {
  background: #FAFAF8; color: #1A3C34;
  border: 1px solid rgba(26, 60, 52, 0.1);
  border-radius: var(--radius); width: 100%; max-width: 440px;
  max-height: calc(100dvh - 32px); overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s ease;
}
#sos-overlay.sos-active #sos-modal { transform: translateY(0) scale(1); }

#sos-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid rgba(26, 60, 52, 0.08);
  position: sticky; top: 0; background: #FAFAF8; z-index: 1;
}
#sos-title { flex: 1; font-size: 15px; font-weight: 700; color: #1A3C34; }
#sos-back, #sos-close {
  background: none; border: none; cursor: pointer;
  color: #5A7A6E; font-size: 20px; line-height: 1;
  padding: 4px 6px; border-radius: 6px;
  transition: color var(--duration), background var(--duration);
}
#sos-back { font-size: 18px; }
#sos-back:hover, #sos-close:hover { color: #1A3C34; background: rgba(26, 60, 52, 0.06); }

#sos-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

/* Unified contact block (all SOS screens) */
.sos-contact-block { display: flex; flex-direction: column; gap: 10px; }
.sos-info-block {
  background: #f0f6f3; border: 1px solid rgba(74,139,111,.2);
  border-radius: 10px; padding: 12px 14px;
  font-size: 0.83em; color: #2d5a47; line-height: 1.5; font-weight: 600;
}
.sos-info-block-sub {
  font-size: 0.91em; color: #5A7A6E; margin-top: 6px;
  font-weight: 400; line-height: 1.4;
}
.sos-support-hours { font-size: 12px; color: #5A7A6E; text-align: center; line-height: 1.6; }


/* Phone call CTA (level 1 — big) */
.sos-phone-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #B85C5C; color: #fff;
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700;
  transition: background var(--duration), transform var(--duration);
}
.sos-phone-btn:hover { background: #cc6a6a; transform: translateY(-1px); color: #fff; }

/* WhatsApp link (level 1 — compact) */
.sos-wa-btn-sm {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(29, 158, 117, 0.15); color: #25D366;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; border: 1px solid rgba(29, 158, 117, 0.25);
  transition: background var(--duration);
}
.sos-wa-btn-sm:hover { background: rgba(29, 158, 117, 0.15); color: #1D9E75; }


/* Question heading */
.sos-question {
  font-size: 18px; font-weight: 700; color: #1A3C34;
  margin: 4px 0 0; text-align: center;
}


/* Fallback hint (bottom of level 1) */
.sos-hint {
  font-size: 0.75em; color: #5A7A6E;
  text-align: center; margin: 4px 0 0; line-height: 1.5;
}
.sos-hint a { color: #1A3C34; text-decoration: underline; }
.sos-hint a:hover { color: #B8924A; }

/* Category grid — 4×2 */
.sos-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sos-cat-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: #F2F5F0; border: 1.5px solid rgba(26, 60, 52, 0.1);
  border-radius: 12px; padding: 14px 10px; cursor: pointer; min-height: 82px;
  transition: background var(--duration), border-color var(--duration), transform var(--duration);
  text-align: center;
}
.sos-cat-btn:hover { background: rgba(26, 60, 52, 0.06); border-color: rgba(184, 146, 74, 0.4); transform: translateY(-1px); }
.sos-cat-label { font-size: inherit; font-weight: 600; color: #1A3C34; line-height: 1.2; }


/* Options list */
.sos-opts { display: flex; flex-direction: column; gap: 8px; }
.sos-opt-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-radius: var(--radius-sm); cursor: pointer;
  background: #fff; border: 1px solid rgba(26, 60, 52, 0.08);
  border-left-width: 4px; transition: background var(--duration);
}
.sos-opt-btn:hover { background: #F2F5F0; }
.sos-opt-red   { border-left-color: #B85C5C; }
.sos-opt-amber { border-left-color: #C69A3B; }
.sos-opt-neutral { border-left-color: rgba(26, 60, 52, 0.15); }
.sos-opt-label { font-size: inherit; font-weight: 600; color: #1A3C34; text-align: left; }
.sos-opt-arrow { font-size: 18px; color: #5A7A6E; }

/* Level 3 — light background per spec */
#sos-modal.sos-level3 { background: var(--bg); }
#sos-modal.sos-level3 #sos-header { background: var(--bg); border-bottom-color: var(--border); }
#sos-modal.sos-level3 #sos-title { color: var(--text); }
#sos-modal.sos-level3 #sos-back,
#sos-modal.sos-level3 #sos-close { color: var(--text2); }
#sos-modal.sos-level3 #sos-back:hover,
#sos-modal.sos-level3 #sos-close:hover { color: var(--text); background: rgba(26,60,52,0.06); }

/* Step cards — white bg, dark text */
.sos-steps { display: flex; flex-direction: column; gap: 10px; }
.sos-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: 10px;
  background: #fff; border-left: 4px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sos-step-red   { border-left-color: #B85C5C; }
.sos-step-amber { border-left-color: #C69A3B; }
.sos-step-green { border-left-color: #4A8B6F; }
.sos-step-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
}
.sos-step-red   .sos-step-num { background: #B85C5C; }
.sos-step-amber .sos-step-num { background: #C69A3B; }
.sos-step-green .sos-step-num { background: #4A8B6F; }
.sos-step-body { flex: 1; }
.sos-step-title { font-size: inherit; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.sos-step-text  { font-size: inherit; color: var(--text2); line-height: 1.5; }

/* Tip block (💡 Полезно знать) */
.sos-tip {
  display: flex; gap: 8px; align-items: start;
  padding: 12px 14px; border-radius: 10px;
  background: #faf6ec; border: 1px solid rgba(184,146,74,.2);
  font-size: 0.82em; color: #6b5420; line-height: 1.5;
}
.sos-tip svg { flex-shrink: 0; margin-top: 2px; }

/* WA button on light bg */
#sos-modal.sos-level3 .sos-wa-btn { background: #1D9E75; color: #fff; }
#sos-modal.sos-level3 .sos-wa-btn:hover { background: #25B586; color: #fff; }


/* Font slider INSIDE SOS modal (level 3 only) */
.sos-font-slider {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0 4px;
}
.sos-font-slider span { font-size: 11px; color: var(--text2); flex-shrink: 0; }
.sos-font-slider span:last-of-type { font-size: 15px; }
.sos-font-slider input[type="range"] {
  flex: 1; height: 3px; -webkit-appearance: none; appearance: none;
  background: var(--border); border-radius: 2px; outline: none;
}
.sos-font-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); cursor: pointer;
}
.sos-font-slider input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); cursor: pointer; border: none;
}

/* WhatsApp button */
.sos-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #1D9E75; color: #fff;
  padding: 13px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; margin-top: 4px;
  transition: background var(--duration), transform var(--duration);
}
.sos-wa-btn:hover { background: #25B586; transform: translateY(-1px); color: #fff; }

/* ═══ SOS — AI ASSISTANT ═══ */

/* Disclaimer box */
.sos-ai-disclaimer {
  font-size: 13px; line-height: 1.6;
  color: #5A7A6E;
  background: rgba(198, 154, 59, 0.06);
  border: 1px solid rgba(198, 154, 59, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

/* "Начать чат" button */
.sos-ai-start {
  display: block; width: 100%;
  background: var(--dark); color: var(--white);
  border: 1px solid rgba(250, 250, 248, 0.2);
  padding: 14px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background var(--duration), border-color var(--duration);
}
.sos-ai-start:hover { background: #25503F; }

/* Consent text */
.sos-ai-consent {
  font-size: 11px; color: #5A7A6E;
  text-align: center; margin: 0; line-height: 1.5;
}

/* Chat container */
.sos-chat {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 300px; overflow-y: auto;
  padding: 4px 0;
}

/* Message bubbles */
.sos-bubble {
  max-width: 85%; padding: 12px 16px;
  border-radius: 14px; font-size: 14px; line-height: 1.6;
  animation: sosBubbleIn 0.3s ease;
}
@keyframes sosBubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.sos-bubble-ai {
  align-self: flex-start;
  background: #F2F5F0;
  color: #1A3C34;
  border-bottom-left-radius: 4px;
}
.sos-bubble-user {
  align-self: flex-end;
  background: rgba(26, 60, 52, 0.08);
  color: #1A3C34;
  border-bottom-right-radius: 4px;
}

/* Chat input */
.sos-chat-input {
  display: flex; gap: 8px; align-items: center;
}
.sos-chat-field {
  flex: 1; padding: 11px 14px;
  background: #F2F5F0;
  border: 1px solid rgba(26, 60, 52, 0.12);
  border-radius: var(--radius-sm); color: #1A3C34;
  font-size: 16px; outline: none;
  transition: border-color var(--duration);
}
.sos-chat-field:focus { border-color: rgba(184, 146, 74, 0.5); }
.sos-chat-field::placeholder { color: #5A7A6E; }

/* ── Mobile fullscreen chat mode ── */
@media (max-width: 600px) {
  #sos-modal.sos-chat-mode {
    max-width: 100%; max-height: 100dvh;
    border-radius: 0; border: none;
    height: 100dvh;
    display: flex; flex-direction: column;
  }
  #sos-modal.sos-chat-mode #sos-header {
    border-radius: 0; flex-shrink: 0;
  }
  #sos-modal.sos-chat-mode #sos-body {
    flex: 1; display: flex; flex-direction: column;
    padding: 12px; overflow: hidden;
  }
  #sos-modal.sos-chat-mode .sos-chat {
    flex: 1; max-height: none; min-height: 0;
  }
  #sos-modal.sos-chat-mode .sos-chat-input {
    flex-shrink: 0; padding: 4px 0;
  }
  #sos-modal.sos-chat-mode .sos-chat-note {
    flex-shrink: 0;
  }
  #sos-overlay.sos-active { padding: 0; }
}

.sos-chat-send {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--dark);
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration);
}
.sos-chat-send:hover { background: var(--gold-light); }

/* Attach button */
.sos-chat-attach {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: #F2F5F0; color: #5A7A6E;
  border: 1px solid rgba(26, 60, 52, 0.12);
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration), color var(--duration);
}
.sos-chat-attach:hover { background: rgba(26, 60, 52, 0.08); color: #1A3C34; }

/* Image in bubble */
.sos-bubble-img { max-width: 100%; border-radius: 8px; margin-bottom: 6px; display: block; }
.sos-bubble-upload { font-size: 12px; color: #5A7A6E; }

/* Typing indicator */
.sos-typing { display: flex; gap: 4px; padding: 14px 18px; }
.sos-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #5A7A6E;
  animation: sosTypingDot 1.2s ease-in-out infinite;
}
.sos-typing span:nth-child(2) { animation-delay: 0.2s; }
.sos-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes sosTypingDot { 0%,80%,100%{opacity:.3;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }

/* Chat fallback note */
.sos-chat-note {
  font-size: 11px; color: #5A7A6E;
  text-align: center; margin: 0;
}

/* Global font slider removed — now inside SOS modal only */
.font-slider-val { font-size: 11px; color: rgba(250, 250, 248, 0.5); min-width: 28px; text-align: right; }

/* ── PARTNERS CAROUSEL ── */
.partners{padding:var(--space-lg) 0;background:var(--bg);overflow:hidden;width:80%;margin:0 auto}
.partners-scroll{display:flex;flex-wrap:nowrap;overflow:hidden;width:100%;-webkit-mask-image:linear-gradient(to right,transparent 0,black 80px,black calc(100% - 80px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,black 80px,black calc(100% - 80px),transparent 100%)}
.partners-track{display:flex;align-items:center;gap:56px;animation:partnerScroll 25s linear infinite;flex-shrink:0;padding-right:56px}
.partner-logo{font-size:26px;font-weight:700;color:var(--text2);letter-spacing:.04em;white-space:nowrap;opacity:.55;transition:opacity .3s}
.partner-logo:hover{opacity:1}
@keyframes partnerScroll{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}

/* ── WIDE CARD (nslab) ── */
.nslab {
  position: relative;
  padding: 20px 24px;
  border-radius: 15px;
  margin-bottom: 24px;
  background: var(--bg);
  box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  transition: all 0.3s ease;
  cursor: default;
}
.nslab:hover {}
.sec-neu .nslab { background: #e8ece5; }
.sec-neu .neu-chip { background: #e8ece5; }
.nslab h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 10px; }
.nslab p { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ── NSLAB COLOR STRIP ── */
.nslab-strip {
  position: absolute;
  top: 16px; bottom: 16px; left: 12px; width: 5px;
  border-radius: 3px;
  background: var(--bg);
  box-shadow: inset 2px 2px 3px var(--shadow-dark), inset -1px -1px 2px var(--shadow-light);
  overflow: hidden;
}
.nslab-strip::after {
  content: '';
  position: absolute;
  top: 15%; bottom: 15%; left: 1px; right: 1px;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0.7;
  transition: opacity 0.3s, top 0.3s, bottom 0.3s;
}
.nslab:hover .nslab-strip::after { opacity: 1; top: 8%; bottom: 8%; }
.nslab-strip.teal::after { background: var(--teal); }
.nslab-strip.indigo::after { background: var(--indigo); }
.nslab-strip.terracotta::after { background: var(--terracotta); }
.nslab-strip.plum::after { background: var(--plum); }
.nslab-strip.slate::after { background: var(--slate); }
.nslab.has-strip { padding-left: 36px; }

/* ── NEUMORPHIC CHIP BADGE ── */
.neu-chip {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 14px;
  background: var(--bg);
  box-shadow: 2px 2px 5px var(--shadow-dark), -2px -2px 5px var(--shadow-light);
  color: var(--gold);
}
.neu-chip.teal { color: var(--teal); }
.neu-chip.indigo { color: var(--indigo); }
.neu-chip.terracotta { color: var(--terracotta); }
.neu-chip.plum { color: var(--plum); }
.neu-chip.slate { color: var(--slate); }

/* Insurance selector in SOS steps */
.sos-insurance-selector { margin-top: 10px; }
.sos-insurance-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d5d2;
  background: #f7f9f7;
  font-size: inherit;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sos-insurance-select:focus { outline: 2px solid #4A8B6F; outline-offset: 1px; }
.sos-insurance-result { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sos-insurance-phone {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 8px;
  background: #eef6f1; text-decoration: none;
  color: #1A3C34; font-weight: 600; font-size: inherit;
  transition: background 0.15s;
}
.sos-insurance-phone:hover { background: #ddf0e5; }
.sos-insurance-phone svg { flex-shrink: 0; color: #4A8B6F; }
.sos-insurance-wa { background: #e8f5e9; }
.sos-insurance-wa:hover { background: #d4edda; }
.sos-insurance-wa svg { color: #25D366; }
.sos-insurance-none { font-size: 0.9em; color: #888; padding: 6px 0; }

/* 112 call button in SOS steps */
.sos-call-112 {
  display: inline-flex; align-items: center; justify-content: center;
  background: #B85C5C; color: #fff !important; text-decoration: none;
  font-weight: 800; padding: 2px 10px; border-radius: 6px;
  font-size: inherit; line-height: 1.4;
  transition: background 0.15s;
}
.sos-call-112:hover { background: #a04a4a; }
.sos-step-title .sos-call-112 { font-size: 1em; }
.sos-call-112-inline {
  color: #B85C5C !important; text-decoration: underline;
  font-weight: 700;
}
.sos-call-112-inline:hover { color: #a04a4a !important; }

/* Phone icon before emergency call buttons */
.sos-call-112::before {  content: "";  display: inline-block;  width: 12px; height: 12px;  margin-right: 4px;  vertical-align: -1px;  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23fff%27 stroke-width=%272.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07A19.5 19.5 0 013.07 11.5a19.79 19.79 0 01-3.07-8.67A2 2 0 012 .84h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L6.09 8.64a16 16 0 006.27 6.27l1.16-1.16a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z%27/%3E%3C/svg%3E") no-repeat center/contain;}
