/* ============================================
   Zookzy PLATFORM - REDESIGNED PREMIUM SYSTEM
   Clean, Accessible, Universal Appeal
   ============================================ */

/* Utility class for JS filtering - overrides all display rules */
/* Using higher specificity to override mobile .services-grid .card { display: flex !important } */
.filtered-hidden,
.services-grid .card.filtered-hidden,
.card.filtered-hidden {
  display: none !important;
}

/* Клиентский антифлуд: временно отключённые поля поиска / Bla Bla */
.zookzy-shield-locked {
  opacity: 0.55;
  cursor: not-allowed !important;
}

/* iOS Zoom Prevention */
html {
  touch-action: manipulation;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Mobile: Make cards clickable */
@media (max-width: 768px) {
  .services-grid .card {
    cursor: pointer;
  }
}

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
  /* Proportional scaling system - Responsive Slope */
  /* Baseline: 16px at 1920px (0.833vw). Floor raised to 15px for readability on 1024 monitors. */
  font-size: clamp(15px, 0.8333vw, 24px);

  /* Fluid Container Width: Scales from 950px (at 1024px) up to 1400px (at 1920px) */
  --container-width: clamp(900px, 73vw, 1400px);
  --container-px: clamp(1rem, 2vw, 2.5rem);
  /* Reduced for ultra-compact look while maintaining alignment */
  --header-h: clamp(64px, 4.5vw, 85px);

  /* Primary Colors - Pantone 2026 'Blue Fusion' Palette */
  --color-primary: #496275;
  /* Blue Fusion: Sophisticated Slate Blue */
  --color-primary-dark: #364958;
  /* Darker Slate */
  --color-primary-light: #7AB6D9;
  /* Baltic Sea: Airy Sky Blue */
  --color-primary-subtle: #E3EBF2;

  /* Secondary Colors - Pantone 2026 'Quiet Violet' */
  --color-secondary: #A693AC;
  /* Quiet Violet: Muted Elegant Purple */
  --color-secondary-dark: #87768D;
  --color-secondary-light: #C8B9CC;
  --color-secondary-subtle: #F3EFF4;

  /* Accent Colors - Pantone 2026 'Pink Lemonade' */
  --color-accent: #EE6D8A;
  /* Pink Lemonade: Vibrant Contemporary Pink */
  --color-accent-dark: #D65C7A;
  --color-accent-light: #F59EB0;
  --color-accent-subtle: #FDF2F5;

  /* Neutral Colors - Pantone 2026 'Hematite' & 'Cloud Dancer' */
  --color-dark: #1E293B;
  /* Keep Deep Slate for text legibility */
  --color-dark-secondary: #496275;
  /* Use Blue Fusion for secondary text */
  --color-gray: #756F6B;
  /* Hematite: Warm Earthy Gray */
  --color-gray-medium: #A09B98;
  --color-gray-light: #DCD9D6;
  /* Soft Gray */
  --color-light: #F0EEE9;
  /* Cloud Dancer: 2026 Color of the Year */
  --color-white: #FFFFFF;

  /* Status Colors - Pantone 2026 Tones */
  --color-success: #599A78;
  /* Sage Green (Tropic Tonalities) */
  --color-warning: #D69D30;
  /* Mango Mojito: Golden Amber */
  --color-error: #B75B4B;
  /* Terracotta Red */
  --color-info: #7AB6D9;
  /* Baltic Sea */

  /* Premium Gradients - 2026 Modern */
  --gradient-primary: linear-gradient(135deg, #496275 0%, #364958 100%);
  --gradient-secondary: linear-gradient(135deg, #A693AC 0%, #C8B9CC 100%);
  --gradient-accent: linear-gradient(135deg, #EE6D8A 0%, #D69D30 100%);
  --gradient-light: linear-gradient(180deg, #FFFFFF 0%, #F0EEE9 100%);
  --gradient-dark: linear-gradient(135deg, #1E293B 0%, #496275 100%);

  /* Category-specific gradients (Updated) */
  --gradient-tours: linear-gradient(135deg, #7AB6D9 0%, #599A78 100%);
  --gradient-hotels: linear-gradient(135deg, #A693AC 0%, #EE6D8A 100%);
  --gradient-transport: linear-gradient(135deg, #D69D30 0%, #B75B4B 100%);
  --gradient-apartments: linear-gradient(135deg, #599A78 0%, #7AB6D9 100%);
  --gradient-services: linear-gradient(135deg, #496275 0%, #A693AC 100%);
  --gradient-food: linear-gradient(135deg, #D69D30 0%, #EE6D8A 100%);
  --gradient-entertainment: linear-gradient(135deg, #EE6D8A 0%, #B75B4B 100%);
  --gradient-other: linear-gradient(135deg, #756F6B 0%, #496275 100%);

  /* Spacing - Generous and Breathable */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Typography - Optimized for Readability */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 1.875rem;
  /* 30px */
  --font-size-4xl: 2.25rem;
  /* 36px */
  --font-size-5xl: 3rem;
  /* 48px */

  /* Border Radius - Sharp and Modern */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows - Layered and Premium - ENHANCED */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Enhanced dramatic shadows for cards and interactive elements */
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 8px 12px rgba(0, 0, 0, 0.1), 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-colored: 0 10px 30px -5px rgba(30, 64, 175, 0.3);
  --shadow-colored-hover: 0 20px 40px -5px rgba(30, 64, 175, 0.4);
  --shadow-glow: 0 0 20px rgba(30, 64, 175, 0.15);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Transitions - Smooth and Subtle */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Unified Proportional Vertical System */
  --header-h: clamp(64px, 7.5vh, 85px);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: #F0EEE9;
  /* Pantone 2026 'Cloud Dancer' - Warm, Serene White/Gray */
  overflow-x: hidden;
  max-width: 100vw;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* ============================================
   BUTTONS - ENHANCED
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  color: var(--color-warning) !important;
  /* Golden color like stars - matches rating stars */
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-gray-light);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
  /* Равные промежутки между «Главная», «Каталог», … (десктоп) */
  justify-content: space-evenly;
}

.nav-menu li {
  min-width: fit-content;
}

/* Верхний ряд: Главная, Каталог, Туры, Компас, Куда поехать, О нас — капсом (все языки) */
.nav-container .nav-menu > li:not(.mobile-only-auth) > a.nav-link {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-dark);
  position: relative;
  padding: 0.4rem 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
  min-width: 0;
  box-sizing: border-box;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  /* Fixed right side вЂ” never changes width between languages */
}

/* User Menu in Header */
.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
  color: white;
  font-size: 14px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.user-profile-link:hover .user-name {
  color: var(--color-primary);
}

.header-icon-btn {
  font-size: 16px;
  opacity: 0.7;
  transition: all 0.2s;
  text-decoration: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.header-icon-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.header-favorites-nav {
  align-items: center;
}

.header-favorites-btn {
  opacity: 1;
}

.header-favorites-btn:hover {
  background: rgba(225, 29, 72, 0.1);
}

.header-favorites-btn--active {
  background: rgba(225, 29, 72, 0.12);
}

.mobile-favorites-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-favorites-btn--active {
  background: rgba(225, 29, 72, 0.15);
}

.header-close-btn {
  font-size: 14px;
  font-weight: 700;
  color: #888;
  font-style: normal;
}

.header-close-btn:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.08);
}

.language-switcher {
  position: relative;
  display: flex;
  gap: 0;
  background: rgba(30, 64, 175, 0.08);
  padding: 0;
  border-radius: var(--radius-full);
  border: 2px solid rgba(30, 64, 175, 0.15);
  align-items: center;
  overflow: visible;
  min-height: 35px;
  flex-shrink: 0;
  min-width: 100px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border: none;
  background: transparent;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  font-family: var(--font-heading);
  position: relative;
  text-decoration: none;
  min-width: 45px;
}

.lang-btn .lang-flag {
  width: 22px;
  height: 14px;
  border-radius: 0;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
  background: rgba(30, 64, 175, 0.1);
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  margin-top: -2px;
  margin-bottom: -2px;
  padding-top: calc(0.35rem + 2px);
  padding-bottom: calc(0.35rem + 2px);
}

/* First active button - flush to left edge */
.lang-btn.active:first-child {
  margin-left: -2px;
}

/* Last active button - flush to right edge */
.lang-btn.active:last-child {
  margin-right: -2px;
}

/* Expand button - wide tab at bottom center, part of the block */
.lang-expand-btn {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 12px;
  padding: 0;
  border: none;
  background: rgba(30, 64, 175, 0.12);
  border-radius: 0 0 8px 8px;
  cursor: pointer;
  transition: background var(--transition-base);
  color: var(--color-primary);
  z-index: 10;
}

.lang-expand-btn:hover {
  background: rgba(30, 64, 175, 0.25);
}

.lang-expand-btn:active,
.lang-expand-btn:focus {
  background: rgba(30, 64, 175, 0.3);
  outline: none;
  transform: translateX(-50%);
  bottom: -12px;
}

.lang-expand-btn svg {
  width: 20px;
  height: 8px;
  transition: transform 0.2s ease;
}

.language-switcher.open .lang-expand-btn svg {
  transform: rotate(180deg);
}

/* Language dropdown menu */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 140px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(30, 64, 175, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 200;
  overflow: hidden;
}

.language-switcher.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  color: var(--color-dark);
  text-decoration: none;
  transition: all var(--transition-base);
  font-size: 0.8rem;
}

.lang-option:hover {
  background: rgba(30, 64, 175, 0.08);
}

.lang-option .lang-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.lang-option .lang-code {
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-primary);
  min-width: 22px;
}

.lang-option .lang-name {
  color: var(--color-gray);
  font-size: 0.75rem;
}

/* Country Switcher - Custom Dropdown */
.country-dropdown {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.country-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(30, 64, 175, 0.15);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  transition: all var(--transition-base);
  width: 150px;
  overflow: hidden;
}

.country-dropdown-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-white);
}

.country-dropdown-btn .country-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  flex-shrink: 0;
}

.country-dropdown-btn .country-icon-container img,
.country-dropdown-btn .country-icon-container .flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.country-dropdown-btn .globe-icon {
  stroke: var(--color-primary);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.country-dropdown-btn .location-emoji {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.country-dropdown-btn .country-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.country-dropdown-btn .dropdown-arrow {
  stroke: var(--color-gray-dark);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.country-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.country-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  overflow: visible;
}

.country-dropdown.open .country-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* в”Ђв”Ђв”Ђ Step-by-step Geo Panel в”Ђв”Ђв”Ђ */

.geo-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(30, 64, 175, 0.03);
}

.geo-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(30, 64, 175, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--color-primary);
  flex-shrink: 0;
}

.geo-back-btn:hover {
  background: rgba(30, 64, 175, 0.15);
}

.geo-panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-panel-items {
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 64, 175, 0.2) transparent;
}

/* Webkit custom scrollbar (Chrome, Safari, Edge) */
.geo-panel-items::-webkit-scrollbar {
  width: 5px;
}

.geo-panel-items::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.geo-panel-items::-webkit-scrollbar-thumb {
  background: rgba(30, 64, 175, 0.18);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.geo-panel-items::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 64, 175, 0.35);
}

.geo-panel-items::-webkit-scrollbar-thumb:active {
  background: rgba(30, 64, 175, 0.5);
}

.geo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
}

.geo-item:hover {
  background: rgba(30, 64, 175, 0.06);
}

.geo-item.selected {
  background: rgba(30, 64, 175, 0.1);
  color: var(--color-primary);
}

.geo-item img {
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.geo-item svg:first-child {
  stroke: var(--color-primary);
  flex-shrink: 0;
}

.geo-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-item-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.geo-item-count {
  font-size: 0.72rem;
  color: var(--color-gray);
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

.geo-item-arrow {
  stroke: var(--color-gray);
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-left: auto;
}

.geo-item:hover .geo-item-arrow {
  stroke: var(--color-primary);
  transform: translateX(2px);
}

.geo-item--all {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

.geo-separator {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 2px 12px;
}

/* Legacy classes kept for backward compatibility (no longer used in new DOM) */
.country-option,
.location-option,
.settlement-option {
  display: none;
}


/* Background transition */
.hero-background img {
  transition: opacity 0.3s ease-in-out;
}

.hero-background img.changing {
  opacity: 0;
}

/* ============================================
   MEGA MENU - SERVICES DROPDOWN
   ============================================ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow-nav {
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.nav-dropdown:hover .dropdown-arrow-nav {
  transform: rotate(180deg);
}

.mobile-dropdown-toggle {
  display: none;
}

.mega-menu {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 780px;
  max-width: 1100px;
  width: max-content;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
  padding: 0;
  overflow: visible;
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
  display: flex;
  padding: 1.1rem 1rem 1rem;
}

.mega-menu-column {
  padding: 0 0.65rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.mega-menu-column:first-child {
  padding-left: 0.3rem;
}

.mega-menu-column:last-child {
  border-right: none;
  padding-right: 0.3rem;
}

.mega-menu-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.mega-menu-title:hover {
  color: var(--color-primary);
}



.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mega-menu-list li {
  margin-bottom: 0;
}

.mega-menu-list a {
  display: block;
  padding: 0.22rem 0;
  font-size: 0.78rem;
  color: var(--color-gray);
  transition: all 0.15s ease;
  white-space: nowrap;
  position: relative;
}

.mega-menu-list a::before {
  content: '';
  position: absolute;
  left: -0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--color-primary);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.mega-menu-list a:hover {
  color: var(--color-primary);
  padding-left: 0.6rem;
}

.mega-menu-list a:hover::before {
  height: 14px;
}

/* Level 3 sub-subcategories */
.mega-menu-sublist {
  list-style: none;
  padding: 0.15rem 0 0.15rem 0.7rem;
  margin: 0;
  border-left: 2px solid rgba(30, 64, 175, 0.12);
}

.mega-menu-sublist li {
  margin-bottom: 0;
}

.mega-menu-sublist a {
  display: block;
  padding: 0.15rem 0;
  font-size: 0.7rem !important;
  color: var(--color-gray) !important;
  white-space: nowrap;
  opacity: 0.8;
}

.mega-menu-sublist a::before {
  display: none !important;
}

.mega-menu-sublist a:hover {
  color: var(--color-primary) !important;
  opacity: 1;
  padding-left: 0.3rem;
}

.mega-menu-footer {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.04));
  padding: 0.9rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.mega-menu-all {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.mega-menu-all:hover {
  color: var(--color-primary-dark);
  gap: 0.6rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 10002;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Hamburger в†’ X morphing */
.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   HERO SECTION
   ============================================ */
/* ============================================
   HERO SECTION (Clean / No Image)
   ============================================ */
.hero {
  position: relative;
  /* Compact hero вЂ” halved from 65vh */
  min-height: 35vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Standardized Vertical Rhythms - Minimal top spacing for mobile */
  padding-top: calc(var(--header-h) + 0.5rem) !important;
  padding-bottom: 0.5rem !important;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
  margin-top: 0;
  overflow: visible;
}

/* .hero-background styles REMOVED - Using global body background (#F1F4F9) */

.hero-content {
  max-width: 1200px !important;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  /* Dynamic Majestic Title - Mobile Optimized 2-line max */
  font-size: clamp(1.25rem, 4.5vw, 3.8rem);
  margin-bottom: clamp(0.25rem, 0.8vw, 0.5rem);
  color: var(--color-dark);
  animation: fadeInUp 0.6s ease-out;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: normal;
  /* Allow wrap to 2 lines */
  text-align: center;
  max-width: 95vw;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-subtitle {
  /* Elegant Clarity - Mobile Optimized 2-line max */
  font-size: clamp(0.65rem, 1.3vw, 1.35rem);
  color: var(--color-gray);
  margin-bottom: clamp(0.5rem, 2vw, 2rem);
  line-height: 1.3;
  max-width: clamp(320px, 94vw, 850px);
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
  font-weight: 400;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-search {
  max-width: 960px;
  margin: 0 auto 3rem;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.search-box {
  display: flex;
  gap: 4px;
  background: var(--color-white);
  padding: 2px 2px 2px clamp(0.6rem, 1vw, 0.8rem);
  min-height: clamp(28px, 2.8vw, 34px);
  border-radius: 2.5rem;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-gray-light);
  transition: all var(--transition-base);
  align-items: center;
}

.search-box:hover {
  box-shadow: var(--shadow-2xl), 0 0 80px rgba(30, 64, 175, 0.25);
  transform: translateY(-2px);
}

.search-input {
  flex: 1;
  padding: 0 !important;
  border: none;
  font-size: 1.33rem !important;
  font-family: var(--font-body);
  outline: none;
  color: var(--color-dark);
  background: transparent;
  transition: all var(--transition-base);
  height: 100%;
}

.search-input:focus {
  background: rgba(30, 64, 175, 0.03);
}

.search-input::placeholder {
  color: var(--color-gray);
}

.hero-search {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.search-icon-btn {
  width: clamp(28px, 2.4vw, 32px) !important;
  height: clamp(28px, 2.4vw, 32px) !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  border: none !important;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(0.4rem, 2.1vw, 2.1rem);
  margin-top: clamp(1rem, 3vw, 3rem);
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
  flex-wrap: nowrap;
  /* Force single row */
}

.stat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  /* Mobile-first: smaller min sizes for 3-in-row */
  width: clamp(95px, 18vw, 240px) !important;
  height: clamp(60px, 10vw, 140px) !important;
  padding: 0 clamp(0.3rem, 1vw, 1.5rem) !important;
  border-radius: clamp(0.5rem, 1.5vw, 1.4rem) !important;
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card), 0 0 40px rgba(30, 64, 175, 0.1);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover), 0 0 50px rgba(30, 64, 175, 0.2);
}

.stat-number {
  font-size: clamp(0.85rem, 1.8vw, 1.35rem) !important;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  text-shadow: 0 1px 2px rgba(30, 64, 175, 0.05);
}

.stat-label {
  font-size: clamp(0.5rem, 1vw, 0.75rem) !important;
  color: var(--color-dark);
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-gap-v) 0;
}

/* ============================================
   DESKTOP OPTIMIZATIONS (769px+)
   ============================================ */
@media (min-width: 769px) {

  /* Recommended Services section spacing */
  .section[style*="background: var(--color-white)"] {
    margin-top: 40px;
  }

  /* Homepage News Cards - 4 columns layout */
  .section[style*="background: rgba(248, 250, 252"] .category-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card,
  .news-container .homepage-news-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-decoration: none;
    height: 100%;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card:hover,
  .news-container .homepage-news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .section[style*="background: rgba(248, 250, 252"] .card-image-wrapper,
  .news-container .card-image-wrapper {
    position: relative;
    width: 100%;
    height: 270px !important;
    /* User requested increase */
    overflow: hidden;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card .card-image,
  .news-container .homepage-news-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .section[style*="background: rgba(248, 250, 252"] .news-category-badge,
  .news-container .news-category-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-full);
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 2;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card .card-content,
  .news-container .homepage-news-card .card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card .card-title,
  .news-container .homepage-news-card .card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card .card-text,
  .news-container .homepage-news-card .card-text {
    font-size: 0.7rem;
    color: var(--color-gray);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
  }

  .section[style*="background: rgba(248, 250, 252"] .news-date,
  .news-container .news-date {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.6rem;
    color: var(--color-gray);
    opacity: 0.7;
    font-weight: 500;
  }

  /* UNIVERSAL FOOTER SPACING - applies to ALL pages */
  footer,
  .footer {
    margin-top: 50px !important;
    padding-top: 30px !important;
  }

  /* Footer content layout */
  .footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px !important;
    max-width: 1400px;
    margin: 0 auto;
  }

  /* Footer typography - 30% smaller */
  .footer h4 {
    font-size: 0.7em !important;
  }

  .footer p {
    font-size: 0.7em !important;
  }

  .footer-links {
    font-size: 0.7em !important;
  }

  .footer-links a {
    font-size: 0.7em !important;
  }

  .footer-bottom {
    font-size: 0.7em !important;
  }
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-gray);
  line-height: 1.7;
}

.container {
  width: calc(100% - 2 * var(--container-px));
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0;
  /* Handled by calc width and auto margin */
}

/* ============================================
   CATEGORY GRID
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.5vw, 1.5rem);
  margin-top: var(--spacing-2xl);
  width: 100%;
}

.category-card {
  position: relative;
  /* Balanced internal padding */
  padding: 1.5rem;
  padding-bottom: 0;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  border: 2px solid var(--color-gray-light);
  transition: all var(--transition-base);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: var(--shadow-card);
  width: 100%;
  /* Balanced proportions: not too tall, not too short (Target ratio ~1.2) */
  min-height: clamp(285px, 20vw, 355px);
  height: 100%;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

/* Category-specific border colors on hover */
.category-card:nth-child(1):hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.category-card:nth-child(2):hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.category-card:nth-child(3):hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.category-card:nth-child(4):hover {
  border-color: rgba(16, 185, 129, 0.5);
}

.category-card:nth-child(5):hover {
  border-color: rgba(99, 102, 241, 0.5);
}

.category-card:nth-child(6):hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.category-card:nth-child(7):hover {
  border-color: rgba(236, 72, 153, 0.5);
}

.category-card:nth-child(8):hover {
  border-color: rgba(100, 116, 139, 0.5);
}

/* Category-specific gradient accents */
.category-card:nth-child(1)::before {
  background: var(--gradient-tours);
}

.category-card:nth-child(2)::before {
  background: var(--gradient-hotels);
}

.category-card:nth-child(3)::before {
  background: var(--gradient-transport);
}

.category-card:nth-child(4)::before {
  background: var(--gradient-apartments);
}

.category-card:nth-child(5)::before {
  background: var(--gradient-services);
}

.category-card:nth-child(6)::before {
  background: var(--gradient-food);
}

.category-card:nth-child(7)::before {
  background: var(--gradient-entertainment);
}

.category-card:nth-child(8)::before {
  background: var(--gradient-other);
}

.category-icon {
  /* Fluid icon size between 64px and 88px */
  width: clamp(64px, 5vw, 88px);
  height: clamp(64px, 5vw, 88px);
  aspect-ratio: 1 / 1;
  margin: 0 auto clamp(1rem, 1.5vw, 1.5rem);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transition: filter var(--transition-base);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-card:hover .category-icon img {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}


.category-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.category-card:hover .category-title {
  color: var(--color-primary);
}

.category-description {
  color: var(--color-gray);
  /* Fluid font size */
  font-size: clamp(0.875rem, 0.9vw, 1rem);
  margin-bottom: 1rem;
  line-height: 1.5;
  text-align: center;
  /* Ensure description has space but doesn't push too far */
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-count {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--color-light) 0%, var(--color-white) 100%);
  border-top: 1px solid var(--color-gray-light);
  border-radius: 0 0 calc(var(--radius-2xl) - 2px) calc(var(--radius-2xl) - 2px);
  min-height: clamp(80px, 6vw, 100px);
  transition: all var(--transition-base);
}

.category-count span:first-child {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.category-count span:last-child {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-card:hover .category-count {
  background: linear-gradient(180deg, var(--color-primary-subtle) 0%, var(--color-white) 100%);
}

.category-card:hover .category-count span:first-child {
  color: var(--color-primary-dark);
}

/* Category-specific icon hover glows - matching category colors */
.category-card:nth-child(1):hover .category-icon img {
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.category-card:nth-child(2):hover .category-icon img {
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.category-card:nth-child(3):hover .category-icon img {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.category-card:nth-child(4):hover .category-icon img {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.category-card:nth-child(5):hover .category-icon img {
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.category-card:nth-child(6):hover .category-icon img {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.category-card:nth-child(7):hover .category-icon img {
  filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.category-card:nth-child(8):hover .category-icon img {
  filter: drop-shadow(0 0 8px rgba(100, 116, 139, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

/* ============================================
   CARDS - ENHANCED
   ============================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-light);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px) scale(1.01);
  border-color: var(--color-primary-light);
}

.card:hover::before {
  background: var(--gradient-primary);
  opacity: 0.6;
}

.card-image {
  width: 100%;
  /* Р“РѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅРѕРµ СЃРѕРѕС‚РЅРѕС€РµРЅРёРµ РєР°Рє РЅР° СЂРµС„РµСЂРµРЅСЃРµ */
  aspect-ratio: 16 / 10 !important;
  object-fit: cover;
  background: var(--color-light);
  transition: transform var(--transition-slow);
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-image img {
  width: 100% !important;
  height: 100% !important;
  /* Р“РѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅРѕРµ СЃРѕРѕС‚РЅРѕС€РµРЅРёРµ РєР°Рє РЅР° СЂРµС„РµСЂРµРЅСЃРµ */
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
}

.card-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: var(--font-size-xl);
  margin-top: 10px;
  margin-bottom: 7px;
  transition: color var(--transition-fast);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card:hover .card-title {
  color: var(--color-primary);
}

.card-text {
  color: var(--color-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-gray-light);
  margin-top: auto;
}

/* ============================================
   FAVORITE BUTTON (Heart Icon)
   ============================================ */
.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  /* Reduced by 10% from 40px */
  height: 36px;
  /* Reduced by 10% from 40px */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  /* More transparent: 0.6 instead of 0.9 */
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-base);
}

.favorite-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.95);
  /* Slightly more opaque on hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.favorite-btn svg {
  width: 18px;
  /* Reduced by 10% from 20px */
  height: 18px;
  /* Reduced by 10% from 20px */
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  transition: all var(--transition-base);
}

.favorite-btn:hover svg {
  stroke: var(--color-accent-dark);
  transform: scale(1.1);
}

.favorite-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent-dark);
}

.favorite-btn.active svg {
  fill: var(--color-white);
  stroke: var(--color-white);
  animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0 var(--spacing-md) var(--spacing-xs);
  margin-top: 0;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
}

/* ============================================
   AI GUIDE WIDGET
   ============================================ */
.ai-guide-widget {
  position: fixed;
  bottom: 150px;
  right: 24px;
  z-index: var(--z-modal);
}

.ai-guide-button {
  position: relative;
  width: 65px;
  height: 65px;
  aspect-ratio: 1 / 1;
  /* Ensure perfect circle, not egg-shaped */
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-xl), 0 0 30px rgba(30, 64, 175, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all var(--transition-base);
  animation: pulse 2s infinite;
}

/* Непрочитанные сообщения — бейдж на иконке чата Bla Bla */
.ai-guide-unread {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-guide-unread.show {
  opacity: 1;
  transform: scale(1);
}

.ai-guide-unread.pulse {
  animation: unread-badge-pulse 1.5s ease-in-out infinite;
}

@keyframes unread-badge-pulse {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
    transform: scale(1.1);
  }
}

.ai-guide-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(30, 64, 175, 0.6);
}

.ai-avatar {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  /* Maintain perfect circle */
  border-radius: var(--radius-full);
  object-fit: cover;
}

.ai-guide-button .ai-avatar {
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.35));
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: var(--shadow-xl), 0 0 30px rgba(30, 64, 175, 0.4);
  }

  50% {
    box-shadow: var(--shadow-2xl), 0 0 50px rgba(124, 58, 237, 0.6);
  }
}

/* AI Guide Chat Panel */
/* AI Guide Chat Panel - Floating Island Style */
.ai-guide-chat {
  position: fixed;
  top: 50%;
  right: 100px;
  width: 26rem;
  height: 36rem;
  max-height: calc(100vh - 120px);
  min-height: 0;
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(-50%) translateX(20px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  z-index: var(--z-modal);
  overflow: hidden;
}

/* РџРљ: С‡Р°С‚ РєРѕРјРїР°РєС‚РЅС‹Р№ */
@media (min-width: 1024px) {
  .ai-guide-chat {
    width: 28rem;
    height: 38rem;
    max-height: calc(100vh - 100px);
  }

  .chat-message.bot .message-bubble p {
    margin-bottom: 0.75rem;
  }

  .chat-message.bot .message-bubble p+p {
    margin-top: 0.75rem;
    padding-top: 0.4rem;
  }
}

.ai-guide-chat.open {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  flex-shrink: 0;
  background: var(--color-white);
  color: var(--color-dark);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-dark);
}

.chat-close {
  background: var(--color-light);
  border: 1px solid var(--color-gray-light);
  color: var(--color-dark);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.chat-close:hover {
  background: var(--color-gray-light);
  border-color: var(--color-gray);
}

/* РџР°РЅРµР»СЊ Р±РµСЃРµРґ: РєРЅРѕРїРєРё СЃР»РµРІР°, СЃРїРёСЃРѕРє Р±РµСЃРµРґ СЃРїСЂР°РІР° РІ СЂСЏРґ СЃ РёРєРѕРЅРєР°РјРё */
.chat-conversations-bar {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-gray-light);
  background: var(--color-white);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chat-conv-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.chat-conv-btn {
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  background: var(--color-white);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.chat-conv-btn:hover {
  background: #F1F5F9;
  border-color: var(--color-gray);
}

.chat-conv-btn-summary {
  padding: 0.35rem 0.6rem;
  font-weight: 600;
  color: var(--color-primary);
  border-color: rgba(30, 64, 175, 0.3);
}

.chat-conv-btn-summary:hover {
  background: rgba(30, 64, 175, 0.08);
  border-color: var(--color-primary);
}

.chat-conv-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.1rem 0;
  scrollbar-width: thin;
}

.chat-conv-list::-webkit-scrollbar {
  height: 4px;
}

.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem 0.35rem 0.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--color-dark);
  background: #F8FAFC;
  border: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
  flex-shrink: 0;
  max-width: 160px;
}

.chat-conv-item:hover {
  background: #F1F5F9;
}

.chat-conv-item.active {
  background: rgba(30, 64, 175, 0.1);
  border-color: var(--color-primary);
  font-weight: 600;
}

.chat-conv-item-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

.chat-conv-item.active .chat-conv-item-icon {
  opacity: 1;
}

.chat-conv-item-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-item-delete {
  flex-shrink: 0;
  padding: 0.15rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-gray);
  font-size: 0.85rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  opacity: 0.7;
}

.chat-conv-item-delete:hover {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.1);
  opacity: 1;
}

/* Тело чата Bla Bla: flex 1 1 0 + min-height 0 — чтобы лента не выталкивала поле ввода за панель */
.chat-blabla-body {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Сообщения + ввод + оверлей входа (gate перекрывает весь stack при лимите гостя) */
.chat-main-stack {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.chat-main-stack--auth .chat-input-area {
  display: none !important;
}

.chat-messages-column {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages-column .chat-messages {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.chat-auth-gate {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(248, 250, 252, 0.97);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.chat-auth-gate[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.chat-main-stack .chat-auth-gate[hidden] {
  display: none !important;
}

.chat-auth-gate-inner {
  text-align: center;
  max-width: 19.5rem;
  width: 100%;
  margin: auto;
  padding-bottom: 0.5rem;
}

.chat-auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}

.chat-auth-tab {
  flex: 1;
  padding: 0.45rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-gray-dark);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.chat-auth-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.chat-auth-tab.is-active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.chat-auth-panel {
  text-align: left;
}

.chat-auth-field {
  display: block;
  margin-bottom: 0.5rem;
}

.chat-auth-field span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}

.chat-auth-field input[type="email"],
.chat-auth-field input[type="password"],
.chat-auth-field input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-auth-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(73, 98, 117, 0.1);
}

.chat-auth-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
  font-size: 0.75rem;
  color: var(--color-gray-dark);
}

.chat-auth-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.chat-auth-inline-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.chat-auth-inline-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.chat-auth-inline-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Shared OAuth Icons (site + chat + bot) ── */
.auth-oauth-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}
.auth-oauth-icon svg { width: 16px; height: 16px; }
.auth-oauth-icon:hover { transform: translateY(-2px); }
.oa-google { background: #fff; border: 2px solid var(--color-gray-light); }
.oa-google:hover { border-color: #4285F4; box-shadow: 0 3px 10px rgba(66,133,244,0.25); }
.oa-vk { background: #4680C2; color: white; }
.oa-vk:hover { box-shadow: 0 3px 10px rgba(70,128,194,0.4); }
.oa-yandex { background: #FC3F1D; color: white; }
.oa-yandex:hover { box-shadow: 0 3px 10px rgba(252,63,29,0.4); }
.oa-facebook { background: #1877F2; color: white; }
.oa-facebook:hover { box-shadow: 0 3px 10px rgba(24,119,242,0.4); }
.oa-telegram { background: #0088cc; color: white; }
.oa-telegram:hover { box-shadow: 0 3px 10px rgba(0,136,204,0.4); }
.oa-ok { background: #EE8208; color: white; }
.oa-ok:hover { box-shadow: 0 3px 10px rgba(238,130,8,0.4); }

/* ── Chat auth OAuth section ── */
.chat-auth-oauth {
  margin-top: 0.6rem;
  text-align: center;
}
.chat-auth-oauth-label {
  display: block;
  color: var(--color-gray);
  font-size: 0.72rem;
  margin-bottom: 0.4rem;
}
.chat-auth-oauth-icons {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.chat-auth-oauth .auth-oauth-icon { width: 30px; height: 30px; min-width: 30px; }
.chat-auth-oauth .auth-oauth-icon svg { width: 14px; height: 14px; }

.chat-auth-gate-status {
  min-height: 1.25em;
  font-size: 0.78rem;
  color: #b91c1c;
  margin: 0.35rem 0 0;
  text-align: center;
}

.chat-auth-gate-footer-links {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.chat-auth-gate-footer-links a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline;
}

.chat-auth-gate-footer-links a:hover {
  text-decoration: underline;
}

.chat-auth-gate-title {
  font-weight: 700;
  font-size: var(--font-size-base);
  margin: 0 0 0.5rem;
  color: var(--color-dark);
}

.chat-auth-gate-body {
  font-size: var(--font-size-sm);
  color: var(--color-gray-dark);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.chat-auth-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-auth-gate-btn {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-heading);
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.chat-auth-gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.chat-auth-gate-btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}

.chat-auth-gate-btn-secondary {
  background: var(--color-light);
  color: var(--color-dark);
  border: 1px solid var(--color-gray-light);
}

.chat-messages {
  flex: 1 1 0;
  padding: 1.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  background: #F8FAFC;
  /* Light gray background */
  min-height: 0;
  max-height: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.chat-message {
  margin-bottom: var(--spacing-md);
  display: flex;
  gap: var(--spacing-sm);
}

.chat-message.bot {
  justify-content: flex-start;
}

.chat-message.user {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Р‘Р»РѕРєРё РѕС‚РІРµС‚РѕРІ Р±РѕС‚Р°: РЅРµ С€РёСЂРµ 85% (РѕС‚СЃС‚СѓРї РїРѕ С€РёСЂРёРЅРµ в‰Ґ15%), РѕС„РѕСЂРјР»РµРЅРёРµ РєР°СЂС‚РѕС‡РєРё */
.chat-message.bot .message-bubble {
  max-width: 85%;
  min-width: 60%;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  color: var(--color-dark);
  border: 1px solid var(--color-gray-light);
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.chat-message.bot .message-bubble p {
  margin: 0 0 1rem 0;
  padding-left: 0;
}

.chat-message.bot .message-bubble p:last-child {
  margin-bottom: 0;
}

.chat-message.bot .message-bubble p+p {
  margin-top: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-message.user .message-bubble {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-bottom-right-radius: 4px;
}

.chat-sources {
  margin-top: 0.5rem;
  padding-left: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chat-source-link {
  font-size: 0.8rem;
  color: var(--color-primary);
  text-decoration: none;
  border: 1px solid var(--color-gray-light);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: var(--color-white);
}

.chat-source-link:hover {
  text-decoration: underline;
  background: var(--color-light);
}

/* РљР»РёРєР°Р±РµР»СЊРЅС‹Рµ [РСЃС‚РѕС‡РЅРёРє N] РІРЅСѓС‚СЂРё С‚РµРєСЃС‚Р° СЃРѕРѕР±С‰РµРЅРёСЏ Р±РѕС‚Р° */
.chat-message.bot .message-bubble .chat-source-inline {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-primary);
  cursor: pointer;
}

.chat-message.bot .message-bubble .chat-source-inline:hover {
  text-decoration: underline;
}

/* Статьи Компаса — изумрудный цвет, чтобы отличались от листингов */
.chat-message.bot .message-bubble .chat-source-article {
  color: #059669;
  border-bottom-color: #059669;
}

.chat-message.bot .message-bubble .chat-source-article:hover {
  color: #047857;
}

/* Списки внутри пузыря бота */
.chat-message.bot .message-bubble ul {
  margin: 0.3rem 0 0.5rem 1.1rem;
  padding: 0;
  list-style: disc;
}

.chat-message.bot .message-bubble ul li {
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.chat-summary-banner {
  padding: 0.4rem 0.75rem;
  background: var(--color-light);
  border-top: 1px solid var(--color-gray-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-summary-banner p {
  margin: 0;
  flex: 1;
}

.chat-summary-dismiss {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--color-gray);
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.chat-summary-dismiss:hover {
  color: var(--color-dark);
  background: rgba(0, 0, 0, 0.06);
}

.chat-summary-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-summary-btn:hover {
  opacity: 0.9;
}

.chat-message.bot.chat-loading .message-bubble {
  opacity: 0.95;
}

/* ── Bla Bla (чат) — анимация «думает» (legacy .blabla-* для кэша) ── */
.blabla-thinking-bubble,
.zookzy-thinking-bubble {
  padding: 0.85rem 1rem !important;
  min-width: auto !important;
  width: auto !important;
  display: inline-flex !important;
}

.blabla-thinking,
.zookzy-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Radar scanner SVG */
.thinking-scanner {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--color-dark);
  opacity: 0.55;
}

.thinking-scanner svg {
  width: 100%;
  height: 100%;
  animation: thinking-spin 2s linear infinite;
  transform-origin: center;
}

.thinking-arc {
  transform-origin: 18px 18px;
  animation: thinking-arc-fade 2s ease-in-out infinite;
}

.thinking-dot-orb {
  transform-origin: 18px 18px;
  animation: thinking-spin 2s linear infinite;
}

@keyframes thinking-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes thinking-arc-fade {
  0%, 100% { opacity: 0.9; stroke-dashoffset: 0; }
  50%       { opacity: 0.35; stroke-dashoffset: 12; }
}

/* 3 пульсирующих точки */
.thinking-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.thinking-dots span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.2;
  animation: thinking-wave 1.4s ease-in-out infinite;
}

.thinking-dots span:nth-child(1) { animation-delay: 0s; }
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking-wave {
  0%, 60%, 100% { opacity: 0.15; transform: scaleY(0.7); }
  30%            { opacity: 0.7;  transform: scaleY(1.3); }
}

@media (max-width: 768px) {
  .chat-message.bot .message-bubble {
    min-width: 75%;
    max-width: 92%;
    padding: 1rem 1.1rem;
  }
}

.chat-input-area {
  flex: 0 0 auto;
  padding: 1rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-light);
  z-index: 2;
}

/* Modern Pill Input Wrapper */
.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-light);
  padding: 4px;
  border-radius: 99px;
  /* Pill shape */
  border: 1px solid var(--color-gray-light);
}

.chat-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  line-height: 1.4;
}

.chat-input:focus {
  /* Input focus handled by wrapper visuals */
}

.chat-input::placeholder {
  color: var(--color-gray);
}

.chat-send {
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 99px;
  /* Pill button */
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.chat-send:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 1.6rem;
    --font-size-4xl: 1.35rem;
    --font-size-3xl: 1.15rem;
  }

  /* Шапка: отступ слева = отступ справа (каждая сторона со своим safe-area, без «лишнего» сдвига) */
  .nav-container {
    --hdr-rail: 12px;
    padding-left: max(var(--hdr-rail), env(safe-area-inset-left, 0px)) !important;
    padding-right: max(var(--hdr-rail), env(safe-area-inset-right, 0px)) !important;
    max-width: 100vw !important;
    min-width: 0;
    overflow: visible;
    gap: var(--hdr-rail);
    box-sizing: border-box;
  }

  .logo {
    font-size: 1rem;
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
  }

  .logo-text {
    font-size: clamp(0.95rem, 4.2vw, 1.05rem);
    white-space: nowrap;
  }

  .nav-actions {
    gap: var(--hdr-rail) !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
    align-items: center;
    overflow: visible;
  }

  .nav-actions .language-switcher {
    flex: 0 1 auto;
    min-width: 0;
  }

  .nav-actions .country-dropdown {
    flex: 0 1 auto;
    min-width: 0;
  }

  /* Блок языков +10% к текущему мобильному размеру */
  .language-switcher {
    font-size: clamp(0.68rem, 3.08vw, 0.79rem);
    min-width: 0 !important;
    min-height: clamp(29px, 8.25vw, 35px);
    border-width: 1px;
  }

  .language-switcher .lang-btn {
    padding: clamp(2px, 0.66vw, 4px) clamp(3px, 1.32vw, 7px);
    font-size: clamp(0.6rem, 2.86vw, 0.72rem);
    min-width: 0;
    gap: clamp(1px, 0.44vw, 4px);
  }

  .language-switcher .lang-btn.active:first-child {
    margin-left: 0 !important;
  }

  .language-switcher .lang-btn.active:last-child {
    margin-right: 0 !important;
  }

  .language-switcher .lang-btn.active {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: clamp(3px, 0.8vw, 6px);
    padding-bottom: clamp(3px, 0.8vw, 6px);
  }

  .language-switcher .lang-flag {
    width: clamp(12px, 3.74vw, 15px);
    height: clamp(9px, 2.64vw, 11px);
  }

  .language-switcher .lang-expand-btn {
    width: clamp(29px, 8.8vw, 35px);
    height: clamp(10px, 3.08vw, 13px);
    bottom: clamp(-12px, -2.8vw, -9px);
  }

  .country-dropdown {
    font-size: clamp(0.58rem, 2.56vw, 0.7rem);
  }

  /* Блок страны −20% от предыдущего крупного мобильного */
  .country-dropdown .country-name {
    display: inline-block;
    max-width: min(118px, 34vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.54rem, 2.4vw, 0.68rem);
  }

  .country-dropdown .dropdown-arrow {
    display: none;
  }

  .country-dropdown-btn {
    width: auto !important;
    max-width: min(182px, 46vw);
    min-height: clamp(29px, 8vw, 35px);
    padding: clamp(5px, 1.44vw, 8px) clamp(8px, 2.24vw, 13px) !important;
    min-width: min(128px, 35vw) !important;
    gap: clamp(5px, 1.28vw, 8px) !important;
    border-width: 1px;
    font-size: clamp(0.54rem, 2.4vw, 0.68rem);
  }

  .country-dropdown-btn .globe-icon {
    width: clamp(16px, 4.4vw, 19px);
    height: clamp(16px, 4.4vw, 19px);
  }

  .country-dropdown-btn .country-icon-container {
    width: clamp(16px, 4.4vw, 22px);
    height: clamp(14px, 4vw, 19px);
  }

  .country-dropdown-menu {
    max-height: 80vh !important;
    overflow-y: auto !important;
  }

  .desktop-only-auth {
    display: none !important;
  }

  .nav-actions .notif-bell-wrapper,
  .nav-actions .header-favorites-nav,
  .nav-actions > a.header-icon-btn {
    flex-shrink: 0;
  }
}

/* ============================================
   REDESIGNED HERO SECTIONS
   ============================================ */
/* ============================================
   PAGE HEADER CONTEXT (BREADCRUMBS)
   ============================================ */
/* Unified Container Strategy */
.container,
.services-container,
.category-tabs-container,
.news-container,
.tours-container,
.promo-banners-section .container,
.rental-container,
.news-detail-container,
.footer-content {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: var(--container-px) !important;
  padding-right: var(--container-px) !important;
  width: 100% !important;
}

.page-header-context,
body .page-header-context,
html body .page-header-context,
section.page-header-context {
  background: transparent !important;
  margin-top: 0 !important;
  padding-top: calc(var(--header-h) + var(--spacing-sm) - 6px) !important;
  /* UNIVERSAL: Fixed breadcrumb position below fixed header + visual gap */
  margin-bottom: var(--spacing-sm) !important;
  padding-bottom: 0.5rem !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  min-height: auto !important;
}

.page-header-context .container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.breadcrumb {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--color-gray) !important;
  margin: 0 !important;
  list-style: none !important;
  padding: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  overflow: hidden !important;
  max-width: 100% !important;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Last breadcrumb item can shrink and show ellipsis; no UPPERCASE */
.breadcrumb li:last-child {
  flex-shrink: 1;
  min-width: 0;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

/* ПК: полный текст, без обрезки 300px / overflow на всей ul (мобилка — как выше) */
@media (min-width: 769px) {
  .breadcrumb {
    flex-wrap: wrap;
    overflow: visible !important;
    row-gap: 0.35rem;
  }

  .breadcrumb li:last-child {
    max-width: none !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible !important;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
  }
}

.breadcrumb li:not(:last-child)::after {
  content: '\203A';
  opacity: 0.5;
  font-size: 1rem;
  line-height: 1;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.page-header-context h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-dark);
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Base Container Spacing to prevent sticky overlap */
.services-container,
.news-container {
  padding-top: var(--spacing-lg) !important;
  /* Reduced from 160px - filters are now sticky, no need for huge gap */
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
}

/* Detail Page Back Button (Visual Arrow) */
.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--color-gray-dark);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  margin-bottom: var(--spacing-md);
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-back-btn:hover {
  color: var(--color-primary);
  transform: translateX(-4px);
}

.detail-back-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* «Назад» на карточках аренды/недвижимости и ссылки как rv-back — капс как у крошек */
button.back-button,
a.rv-back,
a.place-back-link {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   SERVICE DETAIL MINI-SITE
   ============================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.detail-gallery {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.detail-main-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.detail-info-card {
  background: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.detail-price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.detail-contact-section {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-gray-light);
}

.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* ============================================
   HOMEPAGE GRIDS - 4 COLUMNS ON DESKTOP
   ============================================ */
.homepage-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

/* Featured Listings Card Styles */
.featured-price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.featured-price-period {
  color: var(--color-gray);
  font-size: var(--font-size-sm);
}

.featured-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.featured-rating-star {
  color: var(--color-warning);
}

.featured-rating-val {
  font-weight: 600;
}

.featured-rating-count {
  color: var(--color-gray);
  font-size: var(--font-size-sm);
}

.featured-details-btn {
  width: 100%;
  margin-top: var(--spacing-md);
}

.featured-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-gray);
}

.featured-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.featured-empty h3 {
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.featured-empty p {
  margin-bottom: 1.5rem;
}

@media (max-width: 968px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .page-header-context,
  body .page-header-context,
  html body .page-header-context,
  section.page-header-context {
    margin-top: 0 !important;
    padding-top: calc(var(--header-h) + 4px) !important;
    /* MOBILE: Breadcrumbs properly clear fixed header */
    margin-bottom: var(--spacing-sm) !important;
    /* Visual gap between breadcrumbs and content below */
    padding-bottom: 0 !important;
  }

  /* Breadcrumb container padding on mobile - ensure 16px alignment */
  .page-header-context .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .page-header-context h1 {
    font-size: 1.50rem;
  }

  .services-container,
  .news-container,
  .tours-container {
    padding-top: var(--spacing-md) !important;
    /* Reduced from 240px for mobile - filters are sticky */
  }

  /* ============================================
     MODERN MOBILE MENU вЂ“ 2026 REDESIGN
     Full-screen slide-in panel with glassmorphism
     ============================================ */

  /* Гамбургер: полоски у правого края тап-зоны — визуально как отступ «Zookzy» слева */
  .mobile-menu-toggle {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0.45rem 0.35rem 0.45rem 0.55rem !important;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    z-index: 10002;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  /* Panel container - slides in from right */
  .nav-menu {
    /* Не занимать место в строке шапки: иначе flex:1 + ширина сжимают логотип к языку */
    flex: 0 0 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 85%;
    max-width: 380px;
    height: 100dvh;
    display: block;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.4s ease;
    box-shadow: none;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 10001;
    opacity: 1;
    visibility: hidden;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    overflow-y: auto;
    overflow-anchor: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: -100vw 0 0 100vw rgba(0, 0, 0, 0.4);
  }

  /* Menu items */
  .nav-menu li {
    width: 100%;
    text-align: left;
  }

  /* Main nav links */
  .nav-link {
    display: flex !important;
    align-items: center;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 500;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-link:active,
  .nav-link.active {
    color: var(--color-primary);
    background: rgba(73, 98, 117, 0.04);
  }

  /* Auth section at bottom */
  .nav-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 0.5rem 1.5rem;
    width: auto;
  }

  .mobile-only-auth {
    display: block !important;
    margin-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  .mobile-only-auth .nav-link {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem !important;
    padding: 0.85rem 1.5rem !important;
    border-bottom: none;
  }

  .mobile-user-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 0.75rem;
  }

  .mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.95rem;
  }

  .mobile-user-profile:hover {
    color: var(--color-primary);
  }

  .mobile-user-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
  }

  .mobile-icon-btn:hover {
    background: rgba(0, 0, 0, 0.08);
  }

  .mobile-close-btn {
    font-size: 16px;
    font-weight: 700;
    color: #888;
  }

  .mobile-close-btn:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
  }

  /* в”Ђв”Ђ Dropdown & Mega-Menu accordion в”Ђв”Ђ */
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown>.nav-link {
    display: flex !important;
    align-items: center;
    padding-right: 3.5rem !important;
    transition: color 0.2s ease, font-weight 0.2s ease, border-color 0.2s ease;
  }

  .nav-dropdown.open>.nav-link {
    color: var(--color-primary);
    font-weight: 600;
  }

  .nav-dropdown>.nav-link .dropdown-arrow-nav {
    display: none;
  }

  /* Expand/collapse chevron button */
  .mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 0;
    height: 26px;
    width: 32px;
    min-width: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 14px;
  }

  .mobile-dropdown-toggle:active {
    background: rgba(73, 98, 117, 0.08);
    transform: scale(0.92);
  }

  .mobile-dropdown-toggle svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    stroke: var(--color-primary);
    stroke-width: 3;
    width: 14px;
    height: 14px;
  }

  .nav-dropdown.open .mobile-dropdown-toggle {
    background: transparent;
  }

  .nav-dropdown.open .mobile-dropdown-toggle svg {
    transform: rotate(180deg);
    stroke: var(--color-primary);
    stroke-width: 3;
  }

  /* Mega-menu container */
  .mega-menu {
    position: static;
    transform: none;
    left: auto;
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.02);
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    opacity: 1;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s linear 0.35s;
  }

  .nav-dropdown.open .mega-menu {
    visibility: visible;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: none;
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .mega-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0;
  }

  /* Each category is an accordion item */
  .mega-menu-column {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;
  }

  .mega-menu-column:first-child {
    padding-left: 0;
  }

  .mega-menu-column:last-child {
    border-bottom: none;
    padding-right: 0;
  }

  /* в”Ђв”Ђ Category title в”Ђв”Ђ */
  .mega-menu-title {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: none;
    padding: 0.65rem 1rem 0.65rem 1.25rem;
    margin: 0.15rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-user-select: none;
    user-select: none;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.55);
    background: transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mega-menu-title:active {
    transform: scale(0.98);
  }

  /* Active category вЂ” colored pill */
  .mega-menu-column.expanded .mega-menu-title {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(73, 98, 117, 0.07);
  }

  /* Chevron arrow */
  .mega-menu-title::after {
    content: '';
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.6;
  }

  .mega-menu-column.expanded .mega-menu-title::after {
    transform: rotate(45deg);
    opacity: 1;
  }

  /* в”Ђв”Ђ Subcategory list в”Ђв”Ђ */
  .mega-menu-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.15rem 0.75rem 0.4rem 1.75rem;
    background: transparent;
  }

  .mega-menu-column.expanded .mega-menu-list {
    display: flex;
    animation: menuFadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes menuFadeIn {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mega-menu-list li {
    margin-bottom: 0;
  }

  .mega-menu-list a {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    margin: 0.1rem 0;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: none;
    border-radius: 8px;
  }

  .mega-menu-list a:active {
    color: var(--color-primary);
    background: rgba(73, 98, 117, 0.05);
  }

  .mega-menu-list a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.2;
    margin-right: 0.65rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .mega-menu-list a:active::before {
    opacity: 0.6;
    transform: scale(1.3);
  }

  .mega-menu-list li:last-child a {
    border-bottom: none;
  }

  .mega-menu-list a:active::before {
    opacity: 1;
  }

  /* "View all" footer */
  .mega-menu-footer {
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    bottom: 0;
    font-size: 0.85rem;
  }

  .mega-menu-footer .mega-menu-all {
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  /* BALANCED Mobile UI Optimizations - Professional & Clean */
  .section {
    padding: var(--spacing-md) 0 !important;
    /* Remove horizontal padding */
  }

  .section-header {
    margin-bottom: var(--spacing-md) !important;
  }

  .section-title {
    font-size: 1.35rem !important;
    margin-bottom: var(--spacing-xs) !important;
  }

  .section-description {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }

  .container {
    padding: 0 8px !important;
  }

  /* Compact Hero */
  /* Hero - compact block, big search bar */
  .hero {
    min-height: clamp(180px, 28vh, 280px) !important;
    padding: 0 12px 12px 12px !important;
    padding-top: 0 !important;
    justify-content: flex-start !important;
  }

  .hero-content {
    margin-top: 8px !important;
  }

  .search-box {
    flex-direction: row !important;
    padding: 4px 4px 4px 1.2rem !important;
    min-height: 56px !important;
    gap: 0 !important;
    border-radius: 2rem !important;
  }

  .search-input {
    padding: 0 !important;
    font-size: 0.95rem !important;
  }

  /* Search Icon Button - Compact Icon-Only Design */
  .search-icon-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
  }

  .search-icon-btn svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 2.5 !important;
  }


  .hero-stats {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: var(--spacing-xs) !important;
    margin-top: var(--spacing-md) !important;
  }

  /* Homepage News Cards - Mobile horizontal full-width */
  .section[style*="background: rgba(248, 250, 252"] .category-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card {
    display: flex !important;
    flex-direction: row !important;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    align-items: stretch !important;
  }

  .section[style*="background: rgba(248, 250, 252"] .card-image-wrapper {
    position: relative;
    width: 120px;
    min-width: 120px;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
    order: 1 !important;
    background: var(--color-light) !important;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
    border-top-left-radius: var(--radius-xl) !important;
    border-bottom-left-radius: var(--radius-xl) !important;
  }

  .section[style*="background: rgba(248, 250, 252"] .news-category-badge {
    position: absolute;
    top: 3px;
    left: 3px;
    right: auto !important;
    padding: 2px 5px;
    border-radius: var(--radius-full);
    font-size: 0.4rem;
    font-weight: 700;
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    white-space: nowrap !important;
    max-width: 114px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card .card-content {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
    justify-content: flex-start;
    order: 2 !important;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card .card-title {
    font-size: 0.75rem !important;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 3px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .section[style*="background: rgba(248, 250, 252"] .homepage-news-card .card-text {
    font-size: 0.6rem !important;
    color: var(--color-gray);
    line-height: 1.25;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 !important;
  }

  .section[style*="background: rgba(248, 250, 252"] .news-date {
    position: absolute !important;
    bottom: 4px !important;
    right: 8px !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.5rem;
    color: var(--color-gray);
    opacity: 0.7;
    font-weight: 500;
  }

  /* Stat items now inherit fluid clamp() scaling from global styles */

  /* Balanced Grids */
  .category-grid {
    grid-template-columns: 1fr !important;
    /* Default to 1 column (Services/News) */
    gap: 16px !important;
    margin-top: var(--spacing-md) !important;
  }

  /* Only Category Icons should be 2 columns */
  .category-grid:has(.category-card) {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Fallback for browsers without :has support (Category Icons are usually short) */
  .category-card {
    border-width: 1px !important;
    padding: var(--spacing-xs) !important;
    /* Ensure icons don't break if 1 column, but preference is 2 */
  }

  .category-icon {
    width: 55px !important;
    height: 55px !important;
    margin: var(--spacing-xs) auto var(--spacing-xs) !important;
  }

  /* Make white background transparent for 3D icons */
  /* SVG Note: Removed mix-blend-mode as new SVGs are natively transparent */

  .category-title {
    font-size: 0.85rem !important;
    padding: 0 4px !important;
    line-height: 1.3 !important;
  }

  .category-description {
    display: none !important;
  }

  .category-count {
    padding: 2px 4px !important;
    margin-top: auto !important;
    height: 45px !important;
    min-height: 45px !important;
    justify-content: center !important;
    background: linear-gradient(180deg, var(--color-light) 0%, var(--color-white) 100%) !important;
  }

  .category-count span:first-child {
    font-size: 0.95rem !important;
  }

  .category-count span:last-child {
    font-size: 0.6rem !important;
  }

  /* Footer mobile padding */
  .footer {
    padding-top: 18px !important;
  }

  .footer-content {
    padding-top: 10px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 14px !important;
  }

  /* First section (Рћ Zookzy) - full width, left aligned */
  .footer-section:first-child {
    grid-column: 1 / -1 !important;
    text-align: left !important;
  }

  .footer-section:first-child h4 {
    font-size: 1.1rem !important;
    /* 20% larger */
  }

  /* Other sections - 3 per row */
  .footer-section {
    text-align: left !important;
  }

  .footer-section h4 {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
  }

  .footer-links li {
    margin-bottom: 4px !important;
  }

  .footer-links a {
    font-size: 0.8rem !important;
  }

  /* Sections after first (social share) - add top margin */
  .footer-section:not(:first-child) {
    margin-top: 20px !important;
  }

  /* Footer bottom - add top margin */
  .footer-bottom {
    margin-top: 20px !important;
  }

  /* ============================================
     HOMEPAGE MOBILE OPTIMIZATIONS
     ============================================ */

  /* Category Cards - SQUARE on Mobile with centered content above gradient */
  .category-card {
    min-height: unset !important;
    height: unset !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
  }

  /* Center icon in space above 50px gradient footer */
  .category-icon {
    position: absolute !important;
    top: calc(50% - 25px) !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
  }

  /* Title below icon, still centered in space above gradient */
  .category-title {
    position: absolute !important;
    top: calc(50% - 25px + 30px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 95% !important;
    font-size: clamp(0.7rem, 3vw, 0.9rem) !important;
    /* 20% larger */
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    /* No wrap */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Description below title on mobile - closer to title */
  .category-description {
    position: absolute !important;
    top: calc(50% - 25px + 44px) !important;
    /* Closer to title */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 95% !important;
    font-size: clamp(0.45rem, 2vw, 0.55rem) !important;
    /* Auto-scale font */
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.1 !important;
    color: var(--color-gray) !important;
    display: block !important;
    white-space: nowrap !important;
    /* No wrap */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Wide gradient footer on mobile - more visible */
  .category-count {
    display: flex !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    background: linear-gradient(180deg, var(--color-light) 0%, rgba(99, 102, 241, 0.15) 100%) !important;
    border-top: 1px solid rgba(99, 102, 241, 0.1) !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
  }

  .category-count span:first-child {
    font-size: 0.85rem !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
  }

  .category-count span:last-child {
    font-size: 0.55rem !important;
    color: var(--color-gray) !important;
    text-transform: uppercase !important;
  }

  /* Homepage News Grid - 1 column on mobile with full content */
  .homepage-news-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* AI Guide Compact - Full Screen Mobile */
  .ai-guide-chat {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 2000 !important;
    /* Above everything */
  }

  /* Add bottom padding to sections to prevent AI Guide button overlap */
  .section {
    padding-bottom: var(--spacing-lg) !important;
    /* Reduced from 100px вЂ” buttons moved to bottom corner */
  }

  .chat-header {
    border-radius: 0 !important;
    padding: 10px !important;
  }


  /* News Cards - 2 Columns on Mobile */
  .news-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--spacing-xs) !important;
  }

  .news-card {
    padding: var(--spacing-xs) !important;
  }

  .news-card-image {
    height: 100px !important;
    margin-bottom: var(--spacing-xs) !important;
  }

  .news-card-title {
    font-size: 0.85rem !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
  }

  .news-card-excerpt {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: var(--spacing-xs) !important;
  }

  .news-card-meta {
    font-size: 0.65rem !important;
  }

  /* Page header: горизонтальные отступы задаёт .page-header-context .container (page-nav-unified.css) */
  .page-header-context {
    margin-bottom: var(--spacing-xs) !important;
    padding-top: calc(var(--header-h) + 8px) !important;
    padding-bottom: var(--spacing-xs) !important;
  }

  .breadcrumb {
    font-size: 0.75rem !important;
  }

  /* Services Container - Tight Edge Padding */
  .services-container,
  .news-container {
    padding-top: var(--spacing-sm) !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Homepage Cards - 2-Column Mobile Layout */
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Restore 1-column layout for news cards */
  .homepage-news-card {
    grid-column: 1 / -1 !important;
  }

  .category-grid .card:not(.homepage-news-card) {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
  }

  .category-grid .card-image:not(.homepage-news-card .card-image) {
    height: 110px !important;
    min-height: 110px !important;
    position: relative !important;
  }

  /* Compact card content */
  .category-grid .card-content:not(.homepage-news-card .card-content) {
    padding: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }

  .category-grid .card:not(.homepage-news-card) .card-title {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
  }

  .category-grid .card:not(.homepage-news-card) .card-text {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Price - compact */
  .category-grid .card:not(.homepage-news-card) .card-footer {
    margin-top: auto !important;
  }

  .category-grid .card:not(.homepage-news-card) .card-footer>div:first-child {
    font-size: 0.7rem !important;
    margin-bottom: 6px !important;
  }

  .category-grid .card:not(.homepage-news-card) .card-footer>div:first-child strong,
  .category-grid .card:not(.homepage-news-card) .card-footer>div:first-child span[style*="font-size: var(--font-size-2xl)"] {
    font-size: 1rem !important;
  }

  /* Rating badge - positioned on image bottom-right */
  .category-grid .card:not(.homepage-news-card) .card-footer>div:last-child {
    position: absolute !important;
    top: 115px !important;
    /* Positioned fully on the 140px image */
    right: 6px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.15rem !important;
    font-size: 0.65rem !important;
    margin-bottom: 0 !important;
  }

  .category-grid .card:not(.homepage-news-card) .card-footer>div:last-child span {
    font-size: 0.65rem !important;
  }

  /* Button - compact */
  .category-grid .card:not(.homepage-news-card) .btn {
    padding: 6px 10px !important;
    font-size: 0.7rem !important;
    width: 100% !important;
    margin-top: auto !important;
  }

  /* News badge */
  .category-grid .card-content span[style*="display: inline-block"] {
    padding: 0.1rem 0.4rem !important;
    font-size: 0.55rem !important;
    margin-bottom: 4px !important;
  }

  /* GRIDS - 4 columns everywhere */
  .category-grid,
  .services-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.8rem !important;
    /* Tighter gap for better proportions */
  }

  .services-grid .card {
    height: auto !important;
    min-height: 170px !important;
    /* Ultra-compact height for mobile tiles */
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
  }

  .services-grid .card-image {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    object-fit: cover !important;
    position: relative !important;
  }

  .services-grid .card-content {
    padding: 4px !important;
    /* Minimal possible padding */
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }

  .services-grid .card-title {
    font-size: 0.75rem !important;
    /* Titles enlarged by 25% for better readability */
    line-height: 1.2 !important;
    margin-bottom: 3px !important;
    font-weight: 700 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .services-grid .card-text {
    display: none !important;
    /* Hide descriptions on mobile 4-column to prevent vertical blowouts */
  }

  /* Price & Buttons for small 4-column */
  .services-grid .card-footer {
    padding-top: 4px !important;
    margin-top: auto !important;
  }

  .services-grid .card-footer>div:first-child {
    font-size: 0.6rem !important;
    margin-bottom: 4px !important;
  }

  .services-grid .card-footer>div:first-child strong,
  .services-grid .card-footer>div:first-child span[style*="font-size: var(--font-size-2xl)"] {
    font-size: 0.85rem !important;
  }

  .services-grid .btn {
    padding: 4px 6px !important;
    font-size: 0.65rem !important;
    min-height: 28px !important;
  }

  .services-grid .card-footer {
    margin-top: auto !important;
  }

  .services-grid .card-footer>div:first-child {
    font-size: 0.875rem !important;
    /* Price label enlarged by 25% */
    margin-bottom: 6px !important;
  }

  .services-grid .card-footer>div:first-child strong,
  .services-grid .card-footer>div:first-child span[style*="font-size: var(--font-size-2xl)"] {
    font-size: 1.25rem !important;
    /* Price amount enlarged by 25% */
  }

  /* Rating badge - positioned on image bottom-right */
  .services-grid .card-footer>div:last-child {
    position: absolute !important;
    top: 115px !important;
    right: 6px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.15rem !important;
    font-size: 0.8rem !important;
    /* Rating enlarged by 23% */
    margin-bottom: 0 !important;
  }

  .services-grid .card-footer>div:last-child span {
    font-size: 0.8rem !important;
    /* Rating text enlarged by 23% */
  }

  .services-grid .btn {
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    /* Button text enlarged by 25% */
    width: 100% !important;
    margin-top: auto !important;
  }

  /* AI Search Promo Section - Compact Mobile */
  .section[style*="background: var(--gradient-primary)"] {
    padding: var(--spacing-md) var(--spacing-sm) !important;
  }

  .section[style*="background: var(--gradient-primary)"] h2 {
    font-size: 1.4rem !important;
    margin-bottom: var(--spacing-xs) !important;
    line-height: 1.3 !important;
  }

  .section[style*="background: var(--gradient-primary)"] p {
    font-size: 0.85rem !important;
    margin-bottom: var(--spacing-md) !important;
    line-height: 1.4 !important;
  }

  .section[style*="background: var(--gradient-primary)"] .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }

  .section[style*="background: var(--gradient-primary)"] div[style*="display: flex"] {
    gap: var(--spacing-xs) !important;
  }



  /* "Р’СЃРµ РЅРѕРІРѕСЃС‚Рё" button - 50% smaller on mobile */
  .section[style*="background: rgba(248, 250, 252"] .btn-lg {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }

  /* Paginators - 50% smaller on mobile */
  .pagination {
    gap: 4px !important;
  }

  .pagination .page-link {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem !important;
    min-width: 28px !important;
  }

  /* Compact Pagination - 50% smaller, arrow-only */
  .pagination-compact {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
  }

  .pagination-compact .btn {
    padding: 0.3rem 0.6rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    min-width: 32px !important;
    height: 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* UNIVERSAL FOOTER SPACING - Mobile */
  footer,
  .footer {
    margin-top: 40px !important;
  }

  .pagination .page-item.active .page-link {
    padding: 0.25rem 0.5rem !important;
  }

  /* News Cards - Compact Horizontal Layout (Image LEFT 50px, Content RIGHT) */
  .homepage-news-card {
    display: flex !important;
    flex-direction: row !important;
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    overflow: hidden !important;
    position: relative !important;
    margin-bottom: 0.5rem !important;
    align-items: stretch !important;
    padding: 0 !important;
    background: var(--color-white) !important;
    border-radius: var(--radius-xl) !important;
  }

  /* IMAGE - LEFT SIDE (Order 1) - 120px width */
  .homepage-news-card .card-image-wrapper {
    width: 120px !important;
    min-width: 120px !important;
    height: 100% !important;
    order: 1 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    background: var(--color-light) !important;
  }

  .homepage-news-card .card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    border-top-left-radius: var(--radius-xl) !important;
    border-bottom-left-radius: var(--radius-xl) !important;
  }

  /* BADGE - Top Left of Image */
  .homepage-news-card .news-category-badge {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    right: auto !important;
    width: auto !important;
    max-width: 114px !important;
    padding: 2px 5px !important;
    font-size: 0.4rem !important;
    z-index: 10 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* CONTENT - RIGHT SIDE (Order 2) */
  .homepage-news-card .card-content {
    flex: 1 !important;
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 6px 8px !important;
    position: relative !important;
    height: 100% !important;
    justify-content: flex-start !important;
  }

  .homepage-news-card .card-title {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 3px !important;
    font-weight: 700 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-dark);
    white-space: normal !important;
    margin-top: 0 !important;
    padding-right: 0 !important;
  }

  .homepage-news-card .card-text {
    font-size: 0.6rem !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-gray);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    flex: 1 !important;
  }

  .homepage-news-card .btn {
    display: none !important;
  }

  /* DATE - Bottom Right of CARD */
  .homepage-news-card .news-date {
    position: absolute !important;
    bottom: 4px !important;
    right: 8px !important;
    padding: 0 !important;
    background: transparent !important;
    z-index: 10 !important;
    font-size: 0.5rem !important;
    color: var(--color-gray) !important;
    text-shadow: none !important;
    display: block !important;
    font-weight: 500 !important;
    left: auto !important;
    top: auto !important;
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: 56px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
  }

  .category-grid {
    gap: var(--spacing-sm);
  }

  .category-icon {
    width: 48px;
    height: 48px;
  }

  .category-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Header optimizations for 1024px screens */
  .nav-link {
    padding: 0.4rem 0.35rem;
    font-size: 0.8rem;
    min-width: 0;
  }

  .nav-actions {
    gap: 0.4rem;
    /* Further reduced for tight fit */
  }

  .nav-actions .btn {
    padding: 0.4rem 0.7rem;
    /* Reduced button padding */
    font-size: 0.75rem;
    /* Smaller text */
  }

  .country-select {
    min-width: 120px;
    /* Reduced from 144px */
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
  }

  .lang-btn {
    padding: 0.35rem 0.6rem;
    /* Reduced padding */
    font-size: 0.7rem;
  }

  /* Hero section optimization - Compact block */
  .hero {
    padding-top: 0.5rem !important;
    padding-bottom: 0 !important;
    min-height: 30vh !important;
  }

  /* Reduce promo banner size to fit in viewport */
  .promo-banner {
    padding: 1rem 1.2rem;
    /* Reduced from var(--spacing-lg) */
    gap: 0.8rem;
  }

  .promo-banner-icon {
    width: 50px;
    height: 50px;
    /* Smaller icon */
  }

  .promo-banner-icon svg {
    width: 30px;
    height: 30px;
  }

  .promo-banner-title {
    font-size: 1.1rem;
    /* Smaller title */
    margin-bottom: 0.3rem;
  }

  .promo-banner-description {
    font-size: 0.75rem;
    /* Smaller description */
  }

  /* Maintain spacing above banners */
  .promo-banners-section {
    padding-top: 2rem !important;
    /* Mobile still needs some air but not 10rem */
    padding-bottom: var(--spacing-lg);
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Large desktop optimization (1440px - 1919px) */
/* Reset any lingering desktop overrides to allow global majestic proportions */
.hero {
  /* Inherit from global */
}

/* Default visibility for new classes */
.mobile-only-auth {
  display: none;
}

.desktop-only-auth {
  display: inline-flex;
}

/* Beautiful Swipe Styles for Categories */
@media (max-width: 768px) {
  .category-tabs {
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px !important;
  }

  /* Visual hint for swipeable area - subtle thin line */
  .category-tabs-wrapper::after,
  .category-tabs-container::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-gray-light) 50%, transparent 100%);
    opacity: 0.3;
    pointer-events: none;
  }
}

/* ============================================
   UNIFIED HERO & BACK BUTTON
   ============================================ */
.section-hero {
  position: relative;
  padding: calc(64px + var(--spacing-md)) var(--spacing-sm) var(--spacing-md);
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(124, 58, 237, 0.6) 100%);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.section-hero .container {
  position: relative;
  z-index: 2;
}

.section-hero h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-xs);
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-hero p {
  font-size: var(--font-size-base);
  opacity: 0.9;
  margin-bottom: 0;
}

/* Background images for specific heroes */
.services-hero-bg {
  background-image: url('../images/services-hero-bg.png');
  background-size: cover;
  background-position: center;
}

.news-hero-bg {
  background-image: url('../images/news-hero-bg.png');
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .section-hero {
    padding: calc(64px + 0.5rem) var(--spacing-sm) 0.5rem;
    min-height: 120px;
  }

  .section-hero h1 {
    font-size: 1.5rem;
  }

  .section-hero p {
    font-size: 0.85rem;
  }
}

/* Back Button Component */
.back-button-container {
  padding: var(--spacing-sm) var(--spacing-md) 0;
  max-width: 1400px;
  margin: 0 auto;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--color-light);
  border: 1px solid var(--color-gray-light);
  margin-top: 4px;
}

.back-button:hover {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  transform: translateX(-4px);
}

.back-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* ============================================
   CATEGORY TABS & FILTERS
   ============================================ */
.category-tabs-wrapper {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  position: sticky;
  top: var(--header-h);
  /* Sync with dynamic header height */
  z-index: var(--z-sticky);
}

.category-tabs-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.25rem !important;
  /* Ultra-tight gap between Row 1 and Row 2 */
  padding: 0.6rem var(--container-px) !important;
  /* Fixed symmetrical vertical padding + absolute left alignment with the grid */
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
}

.category-tabs-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100% !important;
  min-width: 0;
}

.category-tabs {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding: 0;
  /* Removed 2px padding */
  margin-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  /* Reduced from 0.3rem 0.6rem */
  border: 1px solid var(--color-gray-light);
  /* Thinner border */
  border-radius: var(--radius-full);
  flex-shrink: 0;
  background: var(--color-white);
  color: var(--color-dark);
  font-weight: 600;
  font-size: 0.75rem;
  /* Increased by 15% from 0.65rem for better readability */
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 24px;
  /* Explicit compact height */
}

.category-tab:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.category-tab.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.category-tab .count {
  opacity: 0.7;
  font-size: 0.69rem;
  /* Increased by 15% from 0.6rem for better readability */
}

/* Swipe Navigation Buttons — в ряду flex, не вылезают за скругление карточки */
.swipe-btn {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  flex-shrink: 0;
  transform: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  color: var(--color-primary);
  font-weight: bold;
}

.swipe-btn:hover {
  background: var(--color-primary-subtle);
  transform: scale(1.06);
}

.swipe-btn:active {
  transform: scale(0.94);
}

/* Filter Controls */
.filter-controls {
  display: flex;
  gap: 1.5rem !important;
  flex-wrap: nowrap;
  /* Keep everything on one line (Row 2) */
  align-items: center;
  justify-content: flex-start !important;
  width: 100% !important;
  padding: 0;
  flex-shrink: 0;
}

.filter-group-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem !important;
  /* Standardized label-toggle gap */
}

.filter-group-inline label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-dark);
  cursor: pointer;
}

.filter-group-inline input[type="checkbox"] {
  margin: 0 !important;
  /* Reset legacy margin */
  cursor: pointer;
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  cursor: pointer;
  background: var(--color-white);
  min-width: 150px;
  transition: all var(--transition-base);
}

@media (max-width: 768px) {

  /* Stick categories directly to header */
  .category-tabs-wrapper {
    margin-top: 0 !important;
    border-radius: 0;
    position: sticky;
    top: 64px;
    /* Adjust according to header height */
    z-index: var(--z-sticky);
    box-shadow: none !important;
    background: var(--color-white);
  }

  .category-tabs-container {
    padding: 0.6rem var(--container-px) !important;
  }

  .category-tabs-inner {
    margin-bottom: 0px !important;
  }

  .filter-controls {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px !important;
    padding: 0 !important;
    background: var(--color-white);
  }

  .filter-group-inline {
    width: 100% !important;
    margin: 0 !important;
  }

  .filter-group-inline label {
    font-size: 0.7rem !important;
  }

  /* Hide text labels for dropdowns to save space */
  .filter-group-inline:not(:has(input[type="checkbox"])) label {
    display: none !important;
  }

  .filter-select {
    padding: 0.3rem 0.6rem !important;
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.75rem !important;
    height: 28px;
  }

  .filter-group-inline:has(input[type="checkbox"]) {
    justify-content: center;
  }

  .filter-group-inline:has(input[type="checkbox"]) label {
    white-space: nowrap;
  }
}

/* Unified Footer Spacing - All Pages */
.footer {
  margin-top: 0 !important;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}

@media (max-width: 576px) {
  /* Одна колонка только для каталога /services; главная «Рекомендуемые» — .homepage-featured-grid (2 колонки) */
  .services-grid:not(.homepage-featured-grid) {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .services-container {
    padding-top: var(--spacing-sm) !important;
  }
}

/* Compact Pagination Styles */
.pagination-compact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.pagination-compact .btn {
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-base);
}

.pagination-compact .btn-primary {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
}

.pagination-compact .btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pagination-compact .btn-secondary {
  background: white;
  color: var(--color-dark);
  border: 1px solid var(--color-gray-light);
}

.pagination-compact .btn-secondary:hover:not(:disabled) {
  background: var(--color-gray-lightest);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-compact .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-compact span {
  color: var(--color-gray);
  padding: 0 4px;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .pagination-compact {
    gap: 4px;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
  }

  .pagination-compact .btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .footer {
    margin-top: 0 !important;
  }
}

/* ============================================
   NEWS CARD STYLES (Global)
   ============================================ */
.homepage-news-card {
  display: flex;
  flex-direction: column;
  height: auto !important;
  /* Changed from fixed 480px for natural flow */
  min-height: 420px !important;
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.homepage-news-card .card-image-wrapper {
  position: relative;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  /* Reduced height by 25% */
  flex-shrink: 0;
  overflow: hidden;
}

.homepage-news-card .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.homepage-news-card:hover .card-image {
  transform: scale(1.05);
}

.homepage-news-card .news-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 10px;
  width: auto;
  min-width: 0;
  max-width: fit-content;
  display: inline-block;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.homepage-news-card .card-content {
  display: flex !important;
  flex-direction: column !important;
  padding: 1.25rem !important;
  flex: 1 !important;
  justify-content: flex-start !important;
}

.homepage-news-card .card-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-top: 10px !important;
  margin-bottom: 7px !important;
  color: var(--color-dark) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.homepage-news-card .card-text {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: var(--color-gray) !important;
  margin-bottom: 1rem !important;
  flex: 1;
  /* Fills space */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.homepage-news-card .news-date {
  margin-top: auto !important;
  align-self: flex-start !important;
  font-size: 0.8rem !important;
  color: var(--color-gray-medium) !important;
  font-weight: 500 !important;
  display: block !important;
}

/* Mobile Optimizations for News Cards */
@media (max-width: 768px) {
  .homepage-news-card {
    display: flex !important;
    flex-direction: row !important;
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    align-items: stretch !important;
    padding: 0 !important;
  }

  .homepage-news-card .card-image-wrapper {
    width: 120px !important;
    min-width: 120px !important;
    height: 100% !important;
    order: 1 !important;
    flex-shrink: 0 !important;
    background: var(--color-light) !important;
  }

  .homepage-news-card .card-image {
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    border-top-left-radius: var(--radius-xl) !important;
    border-bottom-left-radius: var(--radius-xl) !important;
  }

  .homepage-news-card .news-category-badge {
    top: 3px !important;
    left: 3px !important;
    right: auto !important;
    padding: 2px 5px !important;
    font-size: 0.4rem !important;
    max-width: 114px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .homepage-news-card .card-content {
    order: 2 !important;
    padding: 6px 8px !important;
    justify-content: flex-start !important;
  }

  .homepage-news-card .card-title {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 3px !important;
  }

  .homepage-news-card .card-text {
    font-size: 0.6rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
    -webkit-line-clamp: 2 !important;
  }

  .homepage-news-card .news-date {
    position: absolute !important;
    bottom: 4px !important;
    right: 8px !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.5rem !important;
    margin-top: 0 !important;
  }
}

/* ============================================
   Category Filter Panel Refinement
   ============================================ */
/* Obsolete Overrides Removed to maintain Unified alignment */

@media (max-width: 1440px) {
  .category-tabs-container {
    max-width: 100% !important;
  }
}

.category-tabs-wrapper {
  background: transparent !important;
  padding: 0 !important;
  /* Reduced padding since breadcrumbs now provide the gap */
  margin-top: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.category-tabs-wrapper::before,
.category-tabs-wrapper::after {
  display: none !important;
}

.category-tabs-container {
  background: var(--color-white) !important;
}

/* ============================================
   PROMOTIONAL BANNERS
   ============================================ */
.promo-banners-section {
  /* Dynamic vertical rhythm - 50% closer to stats on mobile */
  padding-top: clamp(0.75rem, 3vw, 3.5rem) !important;
  padding-bottom: clamp(4rem, 8vw, 10rem) !important;
  margin-top: 0;
  overflow: visible !important;
}

.promo-banners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  width: 100%;
  margin: 0 auto;
}

/* Match global container width exactly */
.promo-banners-section .container {
  max-width: var(--container-width);
}

.promo-banner {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: clamp(1rem, 2vw, 2rem);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  /* Removed overflow: hidden to prevent shadow clipping */
  overflow: visible;
  box-shadow: var(--shadow-md);
  /* Balanced height for all content types */
  min-height: clamp(110px, 13vw, 170px);
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
  /* Mask correctly since parent is overflow: visible */
  border-radius: inherit;
}

.promo-banner:hover::before {
  opacity: 1;
}

.promo-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ---- DB Banner with real <img> ---- */
.promo-banner--db {
  overflow: hidden;
}

.promo-banner__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
}

.promo-banner__gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.promo-banner--db .promo-banner-content,
.promo-banner--db .promo-banner-icon,
.promo-banner--db .promo-banner-arrow {
  position: relative;
  z-index: 2;
}

/* Primary Banner - Blue Gradient */
.promo-banner-primary {
  background: linear-gradient(135deg, #496275 0%, #7AB6D9 100%);
}

.promo-banner-primary::before {
  background: linear-gradient(135deg, #364958 0%, #496275 100%);
}

/* Secondary Banner - Purple/Pink Gradient */
.promo-banner-secondary {
  background: linear-gradient(135deg, #A693AC 0%, #EE6D8A 100%);
}

.promo-banner-secondary::before {
  background: linear-gradient(135deg, #87768D 0%, #D65C7A 100%);
}

.promo-banner-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.promo-banner:hover .promo-banner-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1) rotate(5deg);
}

.promo-banner-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.promo-banner-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.promo-banner-description {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
}

.promo-banner-arrow {
  flex-shrink: 0;
  color: var(--color-white);
  opacity: 0.7;
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.promo-banner:hover .promo-banner-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .promo-banners-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .promo-banner {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
  }

  .promo-banner-icon {
    width: 40px;
    height: 40px;
  }

  .promo-banner-icon svg {
    width: 24px;
    height: 24px;
  }

  .promo-banner-title {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .promo-banner-description {
    font-size: 0.7rem;
    line-height: 1.3;
  }
}

/* ============================================
   SERVICE CARDS (Featured Services Section)
   ============================================ */
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  height: auto;
  min-height: 440px;
  /* Reduced from 480px as image is now shorter */
  overflow: hidden;
  /* Re-enabled for border-radius clipping, height is now auto */
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  /* Made 25% shorter as requested (3/4 = 0.75) */
  object-fit: cover;
  display: block;
}

.homepage-news-card .card-content {
  padding: calc(var(--spacing-md) / 2) var(--spacing-md);
  /* 50% reduction in top/bottom padding */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.card-content {
  padding: calc(var(--spacing-md) / 2) var(--spacing-md);
  /* 50% reduction in top/bottom padding */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  /* Keeps content tight as requested */
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.card-text {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */
.social-share {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.social-share-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-dark);
  margin-right: var(--spacing-xs);
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  padding: 0;
}

.share-btn svg {
  width: 20px;
  height: 20px;
}

.share-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
}

.share-btn.facebook svg {
  fill: #1877f2;
}

.share-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.22);
}

.share-btn.whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
}

.share-btn.whatsapp svg {
  fill: #25D366;
}

.share-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.22);
}

.share-btn.telegram {
  background: rgba(0, 136, 204, 0.12);
  color: #0088cc;
}

.share-btn.telegram svg {
  fill: #0088cc;
}

.share-btn.telegram:hover {
  background: rgba(0, 136, 204, 0.22);
}

.share-btn.twitter {
  background: rgba(29, 161, 242, 0.12);
  color: #1da1f2;
}

.share-btn.twitter svg {
  fill: #1da1f2;
}

.share-btn.twitter:hover {
  background: rgba(29, 161, 242, 0.22);
}

.share-btn.vk {
  background: rgba(74, 118, 168, 0.12);
  color: #4a76a8;
}

.share-btn.vk svg {
  fill: #4a76a8;
}

.share-btn.vk:hover {
  background: rgba(74, 118, 168, 0.22);
}

.share-btn.copy-link {
  background: rgba(108, 92, 231, 0.12);
  color: #6c5ce7;
}

.share-btn.copy-link svg {
  stroke: #6c5ce7;
}

.share-btn.copy-link:hover {
  background: rgba(108, 92, 231, 0.22);
}

@media (max-width: 768px) {
  .share-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .social-share {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .social-share-label {
    margin-bottom: 0;
    margin-right: var(--spacing-xs);
    width: auto;
  }

  .share-buttons {
    justify-content: center;
  }

  .share-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* ============================================
   ADD LISTING FLOATING WIDGET & MODAL
   ============================================ */

/* Floating Button - Animated Circle with Carousel */
.add-listing-widget {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  /* Center vertically */
  z-index: 1000;
}

.add-listing-button {
  position: relative;
  width: 65px;
  height: 65px;
  padding: 0;
  background: linear-gradient(135deg, #4CAF7D 0%, #6FCF97 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(76, 175, 125, 0.5),
    0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.add-listing-button:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 36px rgba(76, 175, 125, 0.6),
    0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Category Carousel - Large background icons (95% of button) */
.category-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.carousel-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 95%;
  height: 95%;
  opacity: 0;
  transition: all 0.4s ease;
}

.carousel-icon.active {
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(1);
}

.carousel-icon svg {
  width: 100%;
  height: 100%;
  stroke: white;
  stroke-width: 1.5;
}

/* Content overlay - Big Plus in center */
.big-plus {
  position: relative;
  z-index: 2;
  width: 55px;
  height: 55px;
}

.big-plus svg {
  width: 100%;
  height: 100%;
  stroke: white;
  stroke-width: 3;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

/* Label hidden - just plus and icon now */
.add-listing-label {
  display: none;
}

/* Hover animation */
.add-listing-button:hover .big-plus svg {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .add-listing-widget {
    right: 14px;
    top: auto !important;
    bottom: 76px;
    transform: none !important;
  }

  .add-listing-button {
    width: 48px !important;
    height: 48px !important;
  }

  .big-plus {
    width: 38px;
    height: 38px;
  }

  /* Match ai-guide button to same size and position */
  .ai-guide-widget {
    right: 14px !important;
    bottom: 16px;
    top: auto !important;
    transform: none !important;
  }

  .ai-guide-button {
    width: 48px !important;
    height: 48px !important;
    font-size: 22px;
  }

  .ai-guide-button .ai-avatar {
    width: 48px !important;
    height: 48px !important;
  }
}

/* Modal Overlay */
.add-listing-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.add-listing-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content - Paper Style */
.listing-modal-content {
  background: linear-gradient(180deg, #fefefe 0%, var(--color-light) 100%);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.listing-modal-content::-webkit-scrollbar {
  width: 6px;
}

.listing-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.listing-modal-content::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 3px;
}

/* Paper texture effect */
.listing-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: 24px;
}

.add-listing-modal.active .listing-modal-content {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.listing-modal-header {
  text-align: center;
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.listing-modal-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  box-shadow: 0 8px 24px rgba(73, 98, 117, 0.3);
}

.listing-modal-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 6px;
}

.listing-modal-header p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.listing-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.listing-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1e293b;
}

/* Type Selector - Card Style */
.listing-type-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.listing-type-option {
  cursor: pointer;
}

.listing-type-option input {
  display: none;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: #f1f5f9;
  border-radius: 14px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

.type-card svg {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.listing-type-option input:checked+.type-card {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.listing-type-option input:checked+.type-card svg {
  color: var(--color-primary);
}

.listing-type-option:hover .type-card {
  background: #e2e8f0;
}

/* Form Fields */
.listing-form-fields {
  padding: 20px 24px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #1e293b;
  transition: all 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(73, 98, 117, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #94a3b8;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* Auth Section */
.listing-auth-section {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, transparent 0%, rgba(73, 98, 117, 0.03) 100%);
}

.listing-auth-section .btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.listing-auth-section .btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(238, 109, 138, 0.35);
}

/* Auth Required Notice */
.auth-required-notice {
  text-align: center;
}

.auth-required-notice p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 14px;
}

.oauth-icons-mini {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.oauth-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.oauth-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.oauth-mini.oauth-google {
  background: white;
  border: 2px solid #e5e7eb;
}

.oauth-mini.oauth-vk {
  background: #4680C2;
  color: white;
}

.oauth-mini.oauth-yandex {
  background: #FC3F1D;
  color: white;
}

.oauth-mini.oauth-fb {
  background: #1877F2;
  color: white;
}

.oauth-mini.oauth-tg {
  background: #0088cc;
  color: white;
}

.oauth-mini.oauth-ok {
  background: #EE8208;
  color: white;
  font-size: 0.65rem;
}

/* Simple Login Form in Modal */
.simple-login-form {
  margin: 16px 0;
}

.simple-login-form .form-row {
  margin-bottom: 12px;
}

.btn-login-inline {
  width: 100%;
  padding: 12px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(73, 98, 117, 0.35);
}

.auth-divider,
.auth-divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
}

.auth-divider::before,
.auth-divider::after,
.auth-divider-or::before,
.auth-divider-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span,
.auth-divider-or span {
  padding: 0 16px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.auth-divider span {
  color: #475569;
  font-weight: 600;
}

.register-link {
  text-align: center;
  margin-top: 16px;
}

.register-link a {
  color: var(--color-accent);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.register-link a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 520px) {
  .listing-type-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row.two-cols {
    grid-template-columns: 1fr;
  }

  .listing-modal-content {
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
  }

  .add-listing-modal {
    align-items: flex-end;
    padding: 0;
  }
}


/* ============================================
   WEB BOT вЂ” Single-Panel Listing Submission
   Mirrors TG bot: edit content in place, no scroll history
   ============================================ */

.web-bot {
  display: flex;
  flex-direction: column;
  height: 86vh;
  max-height: 780px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}

.web-bot-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wb-embed-shell {
  display: none;
  flex-direction: column;
  position: absolute;
  inset: 0;
  z-index: 25;
  background: var(--color-light);
}

.wb-embed-shell.is-open {
  display: flex;
}

.wb-embed-toolbar {
  flex-shrink: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-gray-light);
  background: rgba(255, 255, 255, 0.98);
}

.wb-embed-back {
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.wb-embed-back:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary-light);
}

.wb-embed-frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: #f8fafc;
}

.listing-modal-content:has(.web-bot) {
  max-width: min(460px, 100%);
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fefefe 0%, var(--color-light) 100%);
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-xl);
}

/* Текстура «бумаги» как у остальных модалок сайта */
.listing-modal-content:has(.web-bot)::before {
  border-radius: inherit;
}

/* в”Ђв”Ђ Header в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.web-bot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-gray-light);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.web-bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.web-bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.web-bot-header-info { flex: 1; }

.web-bot-header-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.web-bot-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--color-success);
  font-weight: 600;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 6px rgba(89, 154, 120, 0.45);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(0.8); }
}

.web-bot-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: var(--color-light);
  border: 1px solid var(--color-gray-light);
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.web-bot-menu-btn:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.wb-site-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.wb-site-menu-overlay.is-open {
  display: block;
}

.wb-site-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 88vw);
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  z-index: 3100;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-light) 100%);
  border-right: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-xl);
  transform: translateX(-102%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wb-site-menu-drawer.is-open {
  transform: translateX(0);
}

.wb-site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--color-gray-light);
  flex-shrink: 0;
}

.wb-site-menu-brand {
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.wb-site-menu-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  color: var(--color-gray);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.wb-site-menu-x:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.wb-site-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 20px;
  -webkit-overflow-scrolling: touch;
}

.wb-site-menu-section {
  margin-bottom: 14px;
}

.wb-site-menu-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray);
  padding: 6px 8px 4px;
}

.wb-site-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin: 2px 0;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-dark);
  font-size: 0.86rem;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.wb-site-menu-item:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
}

.wb-cabinet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.wb-cabinet-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-primary);
}
.wb-cabinet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wb-cabinet-card {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  color: var(--color-dark);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}
.wb-cabinet-card:hover {
  background: var(--color-white);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}
.wb-cabinet-muted {
  color: var(--color-gray);
  font-size: 0.88rem;
}
.wb-cabinet-terms {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-dark-secondary);
  max-height: 55vh;
  overflow-y: auto;
}
.wb-cabinet-terms p {
  margin: 0 0 0.75em;
}

.wb-cabinet-item-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 10px;
}
.wb-cabinet-item-row .wb-cabinet-card {
  flex: 1;
  margin: 0;
}
.wb-list-edit-btn {
  flex-shrink: 0;
  min-width: 44px;
  padding: 8px 10px;
  align-self: center;
}
.wb-list-edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.wb-list-edit-form label {
  margin-top: 4px;
}
.wb-textarea {
  min-height: 72px;
  resize: vertical;
  font-family: inherit;
}
.wb-list-edit-row {
  display: flex;
  gap: 10px;
}
.wb-list-edit-row > div {
  flex: 1;
  min-width: 0;
}
.wb-list-edit-actions {
  margin-top: 12px;
  flex-wrap: wrap;
}
.wb-list-edit-warning {
  margin-top: 8px;
}
.wb-list-edit-reject {
  color: #f87171;
  font-size: 0.86rem;
}

.web-bot-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-light);
  border: 1px solid var(--color-gray-light);
  color: var(--color-gray);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.web-bot-close:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

/* в”Ђв”Ђ Panel (single content area) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.web-bot-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px 16px;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(73, 98, 117, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(238, 109, 138, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, var(--color-light) 100%);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-light) transparent;
  color: var(--color-dark);
}

.web-bot-panel::-webkit-scrollbar { width: 4px; }
.web-bot-panel::-webkit-scrollbar-thumb {
  background: var(--color-gray-light);
  border-radius: 2px;
}

/* Panel transition animation */
.panel-enter {
  animation: panelFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* в”Ђв”Ђ Step containers в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wb-step-header {
  text-align: center;
}

.wb-step-header h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.wb-step-hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--color-gray);
  line-height: 1.35;
}

.wb-sub-prompt {
  margin: 12px 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
}

.wb-catalog-preview {
  margin: 8px 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  color: var(--color-dark-secondary);
  white-space: pre-wrap;
}

.wb-step-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
}

.wb-step-counter {
  font-size: 0.72rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}

.wb-breadcrumb {
  font-size: 0.78rem;
  color: var(--color-success);
  font-weight: 600;
  margin-bottom: 6px;
}

/* в”Ђв”Ђ Welcome в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-welcome {
  align-items: center;
  text-align: center;
  padding: 8px 0 4px;
}

.wb-welcome-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 2px;
  border: 1px solid var(--color-gray-light);
}
.wb-welcome-icon svg { width: 20px; height: 20px; }

.wb-welcome h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.wb-welcome p {
  margin: 1px 0 0;
  font-size: 0.72rem;
  color: var(--color-gray);
}

.wb-welcome-auth {
  width: 100%;
  max-width: 400px;
  margin: 6px auto 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.wb-welcome-auth-sub {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--color-dark-secondary);
  text-align: center;
}

.wb-welcome-auth-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Гость на сайте / в мини-апп: приветствие + вход/регистрация в той же панели */
.wb-welcome--guest-inline {
  overflow: hidden;
  align-items: stretch;
  text-align: center;
}

.wb-welcome-auth--inline {
  margin-top: 4px;
  max-width: 100%;
}

.wb-inline-auth-card {
  text-align: left;
  margin: 6px auto 0;
  padding: 0;
  max-width: 400px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}

.wb-inline-auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0.7rem;
}

.wb-inline-auth-tab {
  flex: 1;
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-gray-dark);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.wb-inline-auth-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.wb-inline-auth-tab--active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.wb-inline-auth-tab--active:hover {
  color: #fff;
}

.wb-inline-auth-panel {
  margin-bottom: 0;
}

.wb-inline-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.7rem;
}

.wb-inline-field-l {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0;
}

.wb-inline-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wb-inline-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(73, 98, 117, 0.1);
}

.wb-inline-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--color-dark-secondary);
  margin: 0 0 0.7rem;
  cursor: pointer;
}

.wb-inline-terms input {
  margin-top: 3px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.wb-inline-submit {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.wb-inline-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.wb-inline-auth-oauth {
  margin-top: 0.8rem;
  text-align: center;
}
.wb-inline-auth-oauth .chat-auth-oauth-label {
  display: block;
  color: var(--color-gray);
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}
.wb-inline-auth-oauth .auth-oauth-icons,
.wb-inline-auth-oauth .chat-auth-oauth-icons {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.wb-inline-auth-status {
  min-height: 1em;
  font-size: 0.75rem;
  color: #b91c1c;
  margin: 0.5rem 0 0;
  text-align: center;
}

/* Мини-приложение: аккуратный экран «сначала аккаунт» */
.wb-welcome--mini-gate {
  text-align: center;
  padding-top: 4px;
}
.wb-auth-gate {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 14px;
  padding: 16px 14px 14px;
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, #f0fdf4 0%, #ecfeff 55%, #f8fafc 100%);
  border: 1px solid rgba(13, 148, 136, 0.22);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}
.wb-auth-gate-icon {
  margin-bottom: 8px;
  color: var(--color-primary);
}
.wb-auth-gate-title {
  margin: 0 0 8px;
  font-size: 1.14rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #0f172a;
  line-height: 1.25;
}
.wb-auth-gate-lead {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
  text-align: center;
}
.wb-auth-gate-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.wb-auth-gate-card {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  box-sizing: border-box;
}
.wb-auth-gate-card--reg {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.wb-auth-gate-card--reg:active {
  transform: scale(0.98);
}
.wb-auth-gate-card--login {
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
}
.wb-auth-gate-card--login:active {
  transform: scale(0.98);
}
.wb-auth-gate-foot {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #64748b;
  text-align: center;
}

.wb-auth-form-pro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.wb-auth-form-pro-sub {
  margin: 0 0 4px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-dark-secondary);
}
.wb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.wb-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-dark);
}
.wb-btn-block {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.wb-error-auth-hint {
  max-width: 340px;
  margin: 0 auto 12px;
  text-align: center;
}

.wb-error-auth-hint > p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #fca5a5;
  line-height: 1.4;
}

.wb-resume-hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--color-gray);
  line-height: 1.35;
}

.wb-register-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--color-dark-secondary);
  cursor: pointer;
  text-align: left;
  margin: 4px 0 2px;
}

.wb-register-terms input {
  margin-top: 3px;
  flex-shrink: 0;
}

.wb-register-terms a {
  color: var(--color-primary);
  font-weight: 600;
}

.wb-reg-terms-btn {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
}

.wb-reg-terms-btn:hover {
  color: var(--color-primary-dark);
}

.wb-mini-page .web-bot-body {
  flex: 1;
  min-height: 0;
}

.wb-center {
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 300px;
}

/* в”Ђв”Ђ Buttons в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-btn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 280px;
  margin: 4px auto 0;
}

.wb-btn {
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.wb-btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.wb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.wb-btn-primary:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.wb-btn-accent {
  background: var(--gradient-accent);
  color: var(--color-white);
}

.wb-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.wb-btn-ghost {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-gray-light);
}

.wb-btn-ghost:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary-light);
}

.wb-btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.wb-btn-back {
  align-self: flex-start;
  margin-top: 4px;
}

/* в”Ђв”Ђ Grid Buttons (categories) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-grid {
  display: grid;
  gap: 6px;
}

.wb-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wb-grid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 5px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
  color: var(--color-dark);
  box-shadow: var(--shadow-sm);
}

.wb-grid-btn:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.wb-grid-btn:active {
  transform: scale(0.96);
}

.wb-grid-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.wb-grid-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.wb-grid-label--full {
  width: 100%;
  font-size: 0.7rem;
  word-break: break-word;
  hyphens: auto;
}

/* в”Ђв”Ђ Voice area в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-voice-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wb-voice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: 50%;
  width: 80px; height: 80px;
  background: var(--color-primary-subtle);
  border: 2px solid rgba(73, 98, 117, 0.25);
  color: var(--color-primary);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.wb-voice-btn:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.wb-voice-btn span {
  font-size: 0.65rem;
  font-weight: 600;
  display: none;
}

.wb-voice-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
}

.wb-voice-pulse {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ef4444;
  animation: wbPulse 1s ease-in-out infinite;
}

@keyframes wbPulse {
  0%,100% { transform:scale(1); opacity:1; }
  50% { transform:scale(1.4); opacity:0.4; }
}

.wb-voice-stop {
  padding: 6px 14px;
  border-radius: 14px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.wb-voice-stop:hover {
  background: rgba(239,68,68,0.22);
}

/* в”Ђв”Ђ Divider в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wb-divider::before,
.wb-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-gray-light);
}

.wb-divider span {
  font-size: 0.75rem;
  color: var(--color-gray);
  font-weight: 500;
  white-space: nowrap;
}

/* в”Ђв”Ђ Input / Textarea в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wb-textarea,
.wb-input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  background: var(--color-white);
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  color: var(--color-dark);
  font-size: 0.88rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  font-family: var(--font-body);
  box-sizing: border-box;
}

.wb-textarea:focus,
.wb-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(73, 98, 117, 0.1);
}

.wb-textarea::placeholder,
.wb-input::placeholder {
  color: var(--color-gray-medium);
}

.wb-send-btn {
  align-self: flex-end;
}

.wb-skip-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* в”Ђв”Ђ Field Area в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-field-area {
  margin: 4px 0;
}

/* в”Ђв”Ђ Filled Fields Summary в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-filled-summary {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.wb-filled-row {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
}

.wb-filled-label {
  color: var(--color-gray);
  flex-shrink: 0;
  min-width: 70px;
}

.wb-filled-value {
  color: var(--color-dark);
  word-break: break-word;
}

/* в”Ђв”Ђ Progress Bar в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-progress {
  height: 3px;
  background: var(--color-gray-light);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.wb-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* в”Ђв”Ђ Photo Upload в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-drop-zone {
  border: 2px dashed var(--color-gray-light);
  border-radius: var(--radius-xl);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base);
  background: var(--color-white);
}

.wb-drop-zone:hover,
.wb-drop-zone.dragover {
  border-color: var(--color-primary-light);
  background: var(--color-primary-subtle);
}

.wb-drop-zone p {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--color-gray);
}

.wb-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.wb-photo-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  animation: wbThumbIn 0.25s ease;
}

@keyframes wbThumbIn {
  from { opacity:0; transform:scale(0.85); }
  to { opacity:1; transform:scale(1); }
}

.wb-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wb-photo-rm {
  position: absolute;
  top: 2px; right: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.wb-photo-thumb:hover .wb-photo-rm {
  opacity: 1;
}

/* в”Ђв”Ђ Preview Card в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-preview-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.wb-preview-cat {
  padding: 8px 14px;
  background: var(--color-primary-subtle);
  border-bottom: 1px solid var(--color-gray-light);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}

.wb-preview-body {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-light) transparent;
}

.wb-preview-body::-webkit-scrollbar { width: 3px; }
.wb-preview-body::-webkit-scrollbar-thumb {
  background: var(--color-gray-light);
  border-radius: 2px;
}

.wb-preview-row {
  display: flex;
  gap: 6px;
  font-size: 0.73rem;
  padding: 2px 0;
  border-bottom: 1px solid var(--color-gray-light);
  line-height: 1.3;
}

.wb-preview-row:last-child { border-bottom: none; }

.wb-preview-label {
  color: var(--color-gray);
  flex-shrink: 0;
  min-width: 60px;
  max-width: 110px;
  font-size: 0.7rem;
}

.wb-preview-value {
  color: var(--color-dark);
  word-break: break-word;
  font-size: 0.73rem;
}

/* ── Button Row (конструкторы и шаги формы — кнопки по центру группой) ── */
.wb-btn-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── Progress bar ────────────────────────────── */
.wb-progress {
  height: 3px;
  background: var(--color-gray-light);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.wb-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ── Filled summary ──────────────────────────── */
.wb-filled-summary {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}

.wb-filled-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
}

.wb-filled-label { color: var(--color-gray); flex-shrink: 0; }

.wb-filled-value {
  color: var(--color-dark);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* ── Field area ──────────────────────────────── */
.wb-field-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Smart Fill ──────────────────────────────── */
.wb-smart-fill-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wb-smart-textarea {
  min-height: 88px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.wb-ptt-lg {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
}

.wb-btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
}

.wb-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  pointer-events: none;
}

.wb-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-gray);
  font-size: 0.75rem;
}

.wb-divider::before,
.wb-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gray-light);
}

/* в”Ђв”Ђ Auth notice в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-auth-notice {
  text-align: center;
  font-size: 0.82rem;
  color: #f59e0b;
  font-weight: 600;
  padding: 8px;
  background: rgba(245,158,11,0.08);
  border-radius: 10px;
}

/* в”Ђв”Ђ Spinner в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--color-primary-subtle);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: wbSpin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes wbSpin {
  to { transform: rotate(360deg); }
}

/* в”Ђв”Ђ Done Icon в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.wb-done-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

/* в”Ђв”Ђ Mobile в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
@media (max-width: 520px) {
  .listing-modal-content:has(.web-bot) {
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }

  .web-bot {
    height: 100vh;
    max-height: 100vh;
  }

  .add-listing-modal:has(.web-bot) {
    padding: 0;
    align-items: stretch;
  }

  .wb-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .wb-grid-btn {
    padding: 12px 4px;
  }

  .wb-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Web bot: больше места на ПК — меньше внутренней прокрутки */
@media (min-width: 600px) {
  .add-listing-modal:has(.web-bot) {
    padding: 8px 12px;
    align-items: center;
  }

  .listing-modal-content:has(.web-bot) {
    max-width: min(560px, calc(100vw - 24px));
    width: 100%;
    max-height: min(94vh, 900px);
  }

  .web-bot {
    height: min(94vh, 900px);
    max-height: none;
    min-height: 420px;
  }

  .web-bot-panel {
    padding: 12px 16px 14px;
  }

  .wb-step {
    gap: 8px;
  }

  .wb-smart-fill-area {
    gap: 6px;
  }

  .wb-ptt-area {
    padding: 6px 0;
  }
}

/* Mini App / страница только с ботом — на весь экран (Telegram, iframe) */
html.wb-mini-page,
body.wb-mini-page {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--color-light);
  font-family: var(--font-body);
  color: var(--color-dark);
}

.wb-mini-page .add-listing-modal.wb-mini-embedded {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 !important;
  background: var(--color-light);
  opacity: 1 !important;
  visibility: visible !important;
}

.wb-mini-page .add-listing-modal.wb-mini-embedded .listing-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 100% !important;
  width: 100% !important;
}

.wb-mini-page .listing-modal-content:has(.web-bot) {
  max-height: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

.wb-mini-page .web-bot {
  flex: 1;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
}

.wb-mini-page .web-bot-header {
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  padding-left: max(14px, env(safe-area-inset-left, 0px));
  padding-right: max(14px, env(safe-area-inset-right, 0px));
}

.wb-mini-page .web-bot-panel {
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

/* ── Service Tabs ─────────────────────────────────────── */
.wb-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
}

.wb-tab {
  flex: 1;
  padding: 8px 6px;
  border: none;
  background: transparent;
  color: var(--color-gray);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.wb-tab:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
}

.wb-tab-active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary-light);
}

/* ── Photo Add Button ─────────────────────────────────── */
.wb-photo-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-primary-light);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  cursor: pointer;
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.wb-photo-add-btn:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.wb-photo-add-btn svg {
  flex-shrink: 0;
}

/* ── Registration CTA (after publish) ────────────────── */
.wb-register-cta {
  margin-top: 20px;
  padding: 18px 16px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary-subtle) 0%, var(--color-accent-subtle) 100%);
  border: 1px solid var(--color-gray-light);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.wb-register-title {
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 6px;
}

.wb-register-sub {
  font-size: 0.82rem;
  color: var(--color-dark-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

.wb-btn-register {
  display: inline-flex;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: var(--color-white);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-md);
}

.wb-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ── Drop zone subtle (secondary to add button) ──────── */
.wb-drop-zone {
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.wb-drop-zone:hover,
.wb-drop-zone.dragover {
  opacity: 1;
}

/* ── Mode Toggle (Voice / Manual) ────────────────────── */
.wb-mode-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 3px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
}

.wb-mode-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--color-gray);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.wb-mode-btn:hover {
  color: var(--color-primary-dark);
  background: var(--color-primary-subtle);
}

.wb-mode-btn.active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary-light);
}

/* ── PTT (Push-To-Talk) Voice Button ─────────────────── */
.wb-ptt-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

.wb-ptt-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(73, 98, 117, 0.35);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.wb-ptt-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-white);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.wb-ptt-btn:active,
.wb-ptt-btn.recording {
  border-color: #ef4444;
  background: rgba(239,68,68,0.2);
  color: #ef4444;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(239,68,68,0.3);
  animation: ptt-pulse 1s ease-in-out infinite;
}

@keyframes ptt-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(239,68,68,0.2); }
  50% { box-shadow: 0 0 40px rgba(239,68,68,0.4); }
}

.wb-ptt-label {
  font-size: 0.82rem;
  color: var(--color-gray);
  text-align: center;
}

.wb-ptt-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 24px;
}

.wb-wave-bar {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #ef4444;
  animation: wave-bar 0.6s ease-in-out infinite;
}

.wb-wave-bar:nth-child(1) { animation-delay: 0s; }
.wb-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wb-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wb-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wb-wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave-bar {
  0%, 100% { height: 8px; }
  50% { height: 22px; }
}

/* ── Choice Grid ─────────────────────────────────────── */
.wb-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.wb-choice-btn {
  padding: 10px 12px;
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--font-body);
  text-align: center;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  word-break: break-word;
  box-shadow: var(--shadow-sm);
}

.wb-choice-btn:hover {
  border-color: var(--color-primary-light);
  background: var(--color-primary-subtle);
}

.wb-choice-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  box-shadow: inset 0 0 0 1px var(--color-primary-light);
}

/* ── Geo Select ──────────────────────────────────────── */
.wb-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  font-family: var(--font-body);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23496275' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.wb-select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.wb-select option {
  background: var(--color-white);
  color: var(--color-dark);
}

.wb-geo-loading {
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-top: 6px;
  text-align: center;
}

/* ── Required badge ──────────────────────────────────── */
.wb-required-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: #f59e0b;
  margin-top: 4px;
}

/* ── Shake animation for validation ──────────────────── */
.wb-shake {
  animation: wb-shake 0.4s ease-in-out;
}

@keyframes wb-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ── Divider for voice/text split ────────────────────── */
.wb-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--color-gray);
  font-size: 0.78rem;
}

.wb-divider::before,
.wb-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gray-light);
}

/* ── Input wrap for voice+text mode ──────────────────── */
.wb-input-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.wb-input-wrap .wb-input,
.wb-input-wrap .wb-textarea {
  flex: 1;
}

.wb-send-btn {
  flex-shrink: 0;
  padding: 10px 16px !important;
  min-width: auto !important;
}

/* Web listing bot: address step + Leaflet */
.wb-addr-map-hint {
  font-size: 0.8rem;
  color: var(--color-gray);
  line-height: 1.35;
  margin: 0 0 10px;
}

.wb-addr-map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  z-index: 1;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.wb-addr-map .leaflet-container {
  z-index: 2;
  font-family: inherit;
}

.wb-addr-pin-status {
  min-height: 1.25em;
  margin: 8px 0 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--color-success);
}

.wb-addr-input {
  margin: 0 0 10px;
}

.wb-addr-map-fallback {
  display: block;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--color-warning);
}

/* Web listing bot: TTS / replay */
.wb-welcome-tts {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-gray-light);
  text-align: left;
}

.wb-tts-autoplay-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
}

.wb-tts-autoplay-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.wb-tts-autoplay-hint {
  margin: 8px 0 10px;
  font-size: 0.78rem;
  color: var(--color-gray);
  line-height: 1.35;
}

.wb-step-header--tts {
  position: relative;
  padding-right: 48px;
}

.wb-tts-replay {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-light);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.wb-tts-replay:hover {
  background: var(--color-primary-subtle);
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

.wb-tts-replay:active {
  transform: scale(0.96);
}

