:root {
  --bg-color: #f4f6f9;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --accent-color: #fcc521;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.widget-header {
  text-align: center;
  margin-bottom: 32px;
}

.widget-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.widget-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.widget-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 8px rgba(0, 0, 0, 0.02);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget-card:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}
/* Модифицированный фиксированный баннер для Яндекс.Такси */
.taxi-fixed-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  z-index: 9999;
  width: 280px;
  border-left: 5px solid var(--accent-color);
  transform: translateY(150px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, border-radius 0.3s ease, width 0.3s ease, height 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}

/* Класс активации баннера */
.taxi-fixed-banner.show {
  transform: translateY(0);
  opacity: 1;
}

/* НОВЫЙ СТИЛЬ: Баннер плавно свернут в компактную круглую кнопку в углу */
.taxi-fixed-banner.minimized {
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  border-left: none;
  background: var(--accent-color);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(252, 197, 33, 0.4);
  transform: translateY(0) scale(1);
}

.taxi-fixed-banner.minimized:hover {
  background: #f5be1d;
  transform: scale(1.05);
}

/* Скрываем только тексты и кнопку минус, чтобы не ломать iframe Яндекса */
.taxi-fixed-banner.minimized .taxi-banner-title,
.taxi-fixed-banner.minimized .taxi-banner-desc,
.taxi-fixed-banner.minimized .taxi-banner-close {
  display: none !important;
}

/* ИСПРАВЛЕНО ДЛЯ IIS: Виджет такси прячем внутри кружка через прозрачность и нулевой размер.
   Кнопка физически остается активной в DOM, не ломается и всегда кликабельна! */
.taxi-fixed-banner.minimized .ya-taxi-widget {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0) !important;
  width: 0 !important;
  height: 0 !important;
}

/* Компактная иконка такси (видима только в свернутом режиме) */
.taxi-minimized-icon {
  display: none;
  font-size: 26px;
  line-height: 1;
  user-select: none;
}

.taxi-fixed-banner.minimized .taxi-minimized-icon {
  display: block;
}

.taxi-banner-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.taxi-banner-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Кнопка "Свернуть" (минус) */
.taxi-banner-close {
  position: absolute;
  top: 6px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.taxi-banner-close:hover {
  color: var(--text-main);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }
  .widget-header h1 {
    font-size: 1.6rem;
  }
  .widget-header p {
    font-size: 0.95rem;
  }
  .widget-card {
    padding: 12px;
    border-radius: 12px;
  }
  .taxi-fixed-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .taxi-fixed-banner.minimized {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: 60px;
    max-width: 60px;
  }
}