/* static/styles/main.css (исправление: поднятие контента страниц, не затрагивая круги и строку) */
/* Полный файл с изменениями: .app-container (padding-top: 12px), .carousel-container (margin-bottom: -12px) */

/* ---------- ГЛОБАЛЬНЫЕ СТИЛИ ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
::-webkit-scrollbar {
  display: none;
}
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html,
body {
  height: 100%;
}
body {
  background-color: var(--tg-theme-bg-color, #000000);
  color: var(--tg-theme-text-color, #ffffff);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  min-height: 100vh;
}
.app-container {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 12px 16px 90px;  /* восстановлен исходный верхний отступ (не поднимаем шапку и круги) */
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.back-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}
.logo {
  font-weight: bold;
  font-size: 18px;
}
.avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: white;
  font-weight: 500;
  cursor: pointer;
}
.user-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
/* Неавторизованный – пунктирная рамка цветом #881f26 */
.user-photo.guest {
  border: 2px dashed #881f26;
}
/* Авторизованный – зелёная сплошная рамка с эффектом свечения */
.user-photo.authorized {
  border: 2px solid #4caf50;
  box-shadow: 0 0 8px #4caf50;
  transition: box-shadow 0.2s ease;
}
/* Стрелка ▼ рядом с именем (только для авторизованных) */
.profile-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  color: #4caf50;
  transition: transform 0.2s;
}
.avatar:hover .profile-arrow {
  transform: translateY(2px);
}

/* ---------- СТРАНИЦЫ (ОСНОВНАЯ ЛОГИКА) ---------- */
.page {
  display: none;
}
.page.active {
  display: block;
}
.placeholder-page {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* ---------- КОНТЕЙНЕР КРУГОВ + БЕГУЩАЯ СТРОКА ---------- */
.carousel-container {
  position: relative;
  margin-bottom: -12px;      /* отрицательный отступ – подтягиваем контент страниц вверх, не трогая сами круги и строку */
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  min-height: 160px;
}
.circles-scroll {
  display: inline-flex;
  gap: 16px;
  padding: 8px 16px;
}

/* ---------- БЕГУЩАЯ СТРОКА (ТИКЕР-ЛЕНТА) - ШИРОКАЯ, СКОРОСТЬ 85S ---------- */
.ticker-tape {
  position: absolute;
  bottom: 12px;
  left: -100vw;
  width: 300vw;
  right: auto;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 0;
  z-index: 10;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-tape-inner {
  display: inline-block;
  animation: ticker-scroll 85s linear infinite;
  white-space: nowrap;
}
.ticker-tape-inner.double {
  display: flex;
  flex-direction: row;
}
.ticker-tape-item {
  display: inline-block;
  margin: 0 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ticker-tape-ticker {
  font-weight: 700;
  color: #ffffff;
}
.ticker-tape-dot {
  color: #cc6600;
  font-weight: bold;
  font-size: 14px;
  margin: 0 2px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}
.ticker-tape-price {
  color: #ffffff;
  font-weight: 500;
}
.ticker-tape-change {
  display: inline-block;
}
.ticker-tape-change .triangle-up,
.ticker-tape-change .triangle-down {
  margin: 0 2px 0 4px;
}
.ticker-tape-change-value {
  font-weight: 500;
}
.ticker-tape-separator {
  color: #888888;
  margin: 0 6px;
  font-weight: 400;
  font-size: 12px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* ---------- КРУГИ ---------- */
.circle-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  flex-shrink: 0;
  cursor: pointer;
}
.animated-circle {
  position: relative;
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  will-change: transform, opacity, width, height;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  outline: 2px solid var(--border-color);
  outline-offset: 3px;
}
.circle-block.small-mode .animated-circle {
  width: 50px;
  height: 50px;
  background-color: var(--front-color);
  background-image: none;
}
.circle-block.big-mode .animated-circle {
  width: 70px;
  height: 70px;
  background-color: transparent;
  --border-color: var(--front-color);
  background-size: cover;
}
.logo-static,
.logo-animated {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background-image: url('/static/images/logo_pvi.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}
@keyframes slideFromTop {
  0% {
    transform: translate(-50%, -150%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
@keyframes slideFromBottom {
  0% {
    transform: translate(-50%, 150%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
@keyframes slideFromLeft {
  0% {
    transform: translate(-150%, -50%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
@keyframes slideFromRight {
  0% {
    transform: translate(150%, -50%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
@keyframes slideFromTopLeft {
  0% {
    transform: translate(-150%, -150%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
@keyframes slideFromTopRight {
  0% {
    transform: translate(150%, -150%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
@keyframes slideFromBottomLeft {
  0% {
    transform: translate(-150%, 150%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
@keyframes slideFromBottomRight {
  0% {
    transform: translate(150%, 150%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
@keyframes appearFromTop {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes appearFromBottom {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes appearFromLeft {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes appearFromRight {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes appearFromTopLeft {
  0% {
    transform: translate(-100px, -100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}
@keyframes appearFromTopRight {
  0% {
    transform: translate(100px, -100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}
@keyframes appearFromBottomLeft {
  0% {
    transform: translate(-100px, 100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}
@keyframes appearFromBottomRight {
  0% {
    transform: translate(100px, 100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}
.circle-block[data-anim='0'] .animated-circle {
  animation: appearFromTop 0.4s ease-out;
}
.circle-block[data-anim='1'] .animated-circle {
  animation: appearFromBottom 0.4s ease-out;
}
.circle-block[data-anim='2'] .animated-circle {
  animation: appearFromLeft 0.4s ease-out;
}
.circle-block[data-anim='3'] .animated-circle {
  animation: appearFromRight 0.4s ease-out;
}
.circle-block[data-anim='4'] .animated-circle {
  animation: appearFromTopLeft 0.4s ease-out;
}
.circle-block[data-anim='5'] .animated-circle {
  animation: appearFromTopRight 0.4s ease-out;
}
.circle-block[data-anim='6'] .animated-circle {
  animation: appearFromBottomLeft 0.4s ease-out;
}
.circle-block[data-anim='7'] .animated-circle {
  animation: appearFromBottomRight 0.4s ease-out;
}
.flip-transition .animated-circle {
  transform: scale(0.85) rotateY(15deg);
  opacity: 0.7;
  filter: blur(0.5px);
}
.circle-caption {
  margin-top: 8px;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  white-space: normal;
  width: 70px;
  display: block;
}

/* ---------- БЛОК IMOEX2 ---------- */
.imoex2-block {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 20px;
}
.imoex2-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.imoex2-color-square {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.imoex2-label {
  font-weight: bold;
  font-size: 16px;
}
.imoex2-price {
  font-size: 20px;
  font-weight: bold;
}
.imoex2-change {
  font-size: 14px;
}
.imoex2-change .triangle-up,
.imoex2-change .triangle-down {
  font-size: 12px;
}
.imoex2-scale-container {
  margin: 8px 0;
}
#imoex2Canvas {
  width: 100%;
  height: 40px;
  display: block;
}
.imoex2-volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-top: 6px;
}
.volume-label {
  font-size: 12px;
  color: #aaa;
}
.volume-value {
  font-weight: bold;
}
.volume-compare {
  color: #ffaa44;
}

/* ---------- ВЕРХНЯЯ СТРОКА ---------- */
.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.custom-select {
  position: relative;
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  min-width: 55px;
  text-align: center;
  backdrop-filter: blur(5px);
  z-index: 50;
}
.select-trigger {
  font-size: 11px;
  font-weight: bold;
}
.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  min-width: 100%;
  display: none;
  flex-direction: column;
  z-index: 100;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.custom-select.open .select-dropdown {
  display: flex;
}
.select-option {
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}
.select-option:hover {
  background: rgba(255, 255, 255, 0.2);
}
.chart-icon {
  font-size: 18px;
}
.chart-group-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.group-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.group-btn.active {
  background: white;
  color: black;
}

/* ---------- ГРАФИКИ ---------- */
.widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-right: 8px;
  touch-action: pan-y;
}
.widget-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
}
.widget-item.no-chart {
  height: 80px;
  justify-content: center;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 10px;
  z-index: 10;
}
.chart-title {
  font-weight: bold;
}
.chart-price {
  font-family: monospace;
  font-size: 11px;
}
.chart-price span {
  margin-left: 4px;
}
.triangle-up {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #4caf50;
  margin-right: 4px;
}
.triangle-down {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #ff5252;
  margin-right: 4px;
}
.chart-container {
  flex: 1;
  width: 100%;
  min-height: 0;
}
@media (max-width: 600px) {
  .widgets-grid {
    grid-template-columns: 1fr;
    padding-right: 12px;
  }
}

/* ---------- НОВОСТИ ---------- */
.news-slider-container {
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.news-slider {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}
.news-item {
  flex: 0 0 80%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  font-size: 14px;
  backdrop-filter: blur(5px);
}
.news-source {
  font-weight: bold;
  margin-bottom: 4px;
  text-transform: uppercase;
  color: #ff8c00;
  font-weight: 600;
}
.news-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ---------- НИЖНЯЯ НАВИГАЦИЯ ---------- */
.bottom-nav {
  position: sticky;
  bottom: 10px;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-around;
  padding: 8px 16px 12px;
  border-radius: 30px;
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 568px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.nav-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: white;
  opacity: 0.6;
  transition: 0.2s;
  cursor: pointer;
  font-size: 12px;
  position: relative;
}
.nav-btn.active {
  opacity: 1;
  transform: scale(1.05);
}
.nav-icon {
  width: 48px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.home-icon {
  background-image: url('/static/images/nav/home.png');
}
.dividends-icon {
  background-image: url('/static/images/nav/dividends.png');
}
.top10-icon {
  background-image: url('/static/images/nav/top10.png');
}
.companies-icon {
  background-image: url('/static/images/nav/companies.png');
}
.more-icon {
  background-image: url('/static/images/nav/more.png');
}
.nav-label {
  font-size: 10px;
}

/* Точка уведомления на кнопке навигации */
.nav-notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #ff3b30;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.5);
  z-index: 5;
}
.nav-notification-dot.blink {
  animation: blink-animation 1s step-start infinite;
}

/* ---------- ВЫПАДАЮЩЕЕ МЕНЮ "ЕЩЁ" ---------- */
.dropdown-menu {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  min-width: 180px;
}
.dropdown-menu.show {
  display: flex;
}
.dropdown-item {
  background: none;
  border: none;
  padding: 12px 16px;
  text-align: left;
  color: white;
  font-size: 14px;
  cursor: pointer;
}
.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.dropdown-item.development {
  color: #888 !important;
  opacity: 0.7;
}

/* ---------- СТРАНИЦА ДИВИДЕНДОВ ---------- */
.dividends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dividends-header h2 {
  font-size: 20px;
  font-weight: 600;
}
.refresh-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.dividends-table-wrapper {
  overflow-x: auto;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 0;
}
.dividends-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
  color: white;
  table-layout: fixed;
}
.dividends-table th {
  text-align: left;
  padding: 12px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dividends-table th:first-child {
  padding-left: 8px;
}
.dividends-table th:last-child {
  padding-right: 8px;
}
.dividends-table th.sortable-yield {
  cursor: pointer;
  user-select: none;
}
.dividends-table th.sortable-yield:hover {
  color: white;
}
.dividends-table td {
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dividends-table td:first-child {
  padding-left: 8px;
}
.dividends-table td:last-child {
  padding-right: 8px;
}
.dividends-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.dividends-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}
.company-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.company-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  flex-shrink: 0;
}
.company-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.company-name {
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.company-ticker {
  font-size: 9px;
  color: #aaa;
}
.bell-icon {
  background: none;
  border: none;
  color: #ffaa00;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 0;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}
.bell-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}
.status-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  color: #ddd;
  white-space: nowrap;
}
.status-badge.declared {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}
.status-badge.recommended {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}
.status-badge.forecast {
  background: rgba(158, 158, 158, 0.2);
  color: #9e9e9e;
}
.dividend-detail {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0 0 16px 16px;
  padding: 12px;
  margin: 0;
  width: 100%;
  animation: fadeIn 0.2s;
}
.detail-two-columns {
  display: flex;
  gap: 12px;
}
.detail-labels {
  flex-shrink: 0;
  width: 38%;
}
.detail-values {
  flex: 1;
  text-align: left;
  overflow: hidden;
}
.detail-label-item {
  color: #aaa;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}
.detail-value-item {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 400px) {
  .detail-label-item {
    font-size: 11px;
  }
  .detail-value-item {
    font-size: 11px;
  }
}
.loading-message {
  text-align: center;
  color: #aaa;
  padding: 20px;
}

/* Модалка уведомлений */
.notification-modal-content {
  max-width: 350px;
  margin: auto;
  background: #1c1c1e;
  border-radius: 20px;
  padding: 20px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}
.time-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.time-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.save-notification-btn {
  width: 100%;
  padding: 12px;
  background: #2c9e5f;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.premium-note {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 12px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- СТОРИС ---------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  width: 100%;
  height: 100%;
  background: #000;
  color: white;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.story-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.progress-bar-container {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar {
  width: 0%;
  height: 100%;
  background: white;
  transition: width 0.03s linear;
}
.close-story {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}
.story-image {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background-size: cover;
  background-position: center;
  min-height: 200px;
  max-height: 33vh;
  height: 33vh;
}
.story-card {
  position: relative;
  z-index: 15;
  background: rgba(0, 0, 0, 0.70);
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 16px;
  margin-top: calc(33vh - 20px);
  min-height: 100vh;
  padding-bottom: 70px;
}
.story-text {
  color: #fff;
  line-height: 1.5;
  font-size: 14px;
  text-align: left;
}
.story-button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 14px;
  background: var(--tg-theme-button-color, #213953);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  margin: 12px 16px;
}

/* ---------- СТРАНИЦА ТОП-10 ---------- */
.top10-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.top10-benchmark-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 16px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.top10-benchmark-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
}
.top10-benchmark-left {
  flex: 1;
  min-width: 0;
}
.top10-benchmark-right {
  width: 180px;
  flex-shrink: 0;
}
.top10-imoex2-chart-container {
  width: 100%;
  height: 100%;
  min-height: 90px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}
.top10-benchmark-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.top10-imoex2-color-square {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 4px;
  background-color: #4caf50;
}
.top10-benchmark-title {
  font-size: 20px;
  font-weight: bold;
  margin-right: 4px;
}
.top10-benchmark-price {
  font-size: 24px;
  font-weight: bold;
}
.top10-benchmark-change {
  font-size: 14px;
}
.top10-benchmark-periods {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.top10-period-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 400;
  color: #aaaaaa;
  transition: all 0.2s;
}
.top10-period-badge.active {
  font-weight: 600;
  color: #ffffff;
}
.top10-benchmark-rsi {
  color: #ff8c00;
  font-size: 14px;
  margin-top: 4px;
}
.top10-period-switch {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 8px 0;
}
.top10-period-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 8px 28px;
  border-radius: 30px;
  color: #aaaaaa;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}
.top10-period-btn.active {
  font-weight: 600;
  color: #ffffff;
}
.top10-section-title {
  font-size: 18px;
  font-weight: bold;
  margin: 8px 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.top10-title-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 6px;
}
.top10-leaders-carousel-container,
.top10-losers-carousel-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.top10-leaders-carousel,
.top10-losers-carousel {
  display: flex;
  gap: 12px;
  padding: 4px 2px;
}
.top10-stock-card {
  flex: 0 0 110px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 6px;
  text-align: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.top10-card-rank {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top10-medal-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.top10-rank-text {
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 3px black;
}
.top10-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  margin: 8px auto 4px;
}
.top10-card-ticker {
  font-weight: bold;
  font-size: 14px;
}
.top10-card-change,
.top10-card-relative,
.top10-card-rsi {
  font-size: 12px;
  margin: 2px 0;
}
.top10-positive {
  color: #4caf50;
}
.top10-negative {
  color: #ff5252;
}
.top10-curtain-wrapper {
  margin: 12px 0;
}
.top10-curtain-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: bold;
}
.top10-curtain-content {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 16px 16px;
  padding: 12px 8px;
  margin-top: -4px;
}
.top10-neutral-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.top10-neutral-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.top10-neutral-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.top10-neutral-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  flex-shrink: 0;
}
.top10-neutral-ticker {
  font-weight: bold;
  min-width: 45px;
  flex-shrink: 0;
}
.top10-neutral-change,
.top10-neutral-relative {
  white-space: nowrap;
  flex-shrink: 0;
}
.top10-neutral-rsi-row {
  padding-left: 30px;
  font-size: 11px;
}
.top10-neutral-rsi {
  white-space: nowrap;
}
.top10-rsi-neutral {
  color: #aaa;
}
.top10-rsi-oversold {
  color: #90ee90;
}
.top10-rsi-oversold-extreme {
  color: #00ff00;
}
.top10-rsi-overbought {
  color: #ff6666;
}
.top10-rsi-overbought-extreme {
  color: #ff0000;
}
.top10-blink {
  animation: top10-blink-animation 1s step-start infinite;
}
@keyframes top10-blink-animation {
  50% {
    opacity: 0;
  }
}
.top10-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 16px;
}
.top10-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: top10-spin 1s linear infinite;
}
@keyframes top10-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 480px) {
  .top10-benchmark-row {
    flex-direction: column;
  }
  .top10-benchmark-right {
    width: 100%;
    height: 100px;
  }
}

/* ---------- МОДАЛЬНОЕ ОКНО ГРАФИКА АКЦИИ ---------- */
.chart-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(3px) !important;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stock-chart-modal-content {
  max-width: 500px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
  background: rgba(28, 28, 30, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stock-chart-modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.stock-chart-modal-content .modal-header h3 {
  color: white;
  font-size: 18px;
}
.stock-chart-modal-content .close-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}
#stockChartContainer {
  background: #000;
  border-radius: 12px;
  margin-bottom: 12px;
}
.stock-chart-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #ccc;
  font-size: 14px;
}
.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}
.top10-rsi-prefix {
  color: #ff8c00;
}
.top10-indices-carousel-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  margin: 8px 0 16px;
}
.top10-indices-carousel {
  display: flex;
  gap: 12px;
  padding: 4px 2px;
}
.top10-index-card {
  flex: 0 0 110px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 6px;
  text-align: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.top10-index-card .top10-card-rank {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 20px;
  height: 20px;
}
.top10-index-card .top10-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  margin: 8px auto 4px;
}
.top10-index-card .top10-card-ticker {
  font-weight: bold;
  font-size: 14px;
}
.top10-index-card .top10-card-change,
.top10-index-card .top10-card-relative,
.top10-index-card .top10-card-rsi {
  font-size: 12px;
  margin: 2px 0;
}

/* ---------- КНОПКИ БРОКЕРОВ ---------- */
.broker-section {
  margin-top: 16px;
}
.broker-label {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #ff8c00;
  margin-bottom: 16px;
}
.broker-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.broker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  text-decoration: none;
  min-width: 110px;
  flex: 1;
  max-width: 150px;
}
.broker-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.broker-btn:hover {
  opacity: 0.9;
}
.broker-btn.btn-tinvest {
  background-color: #f8d932;
  color: #000000;
}
.broker-btn.btn-bcs {
  background-color: #2683f8;
  color: #ffffff;
}
.broker-btn.btn-vtb {
  background-color: #0d2b4c;
  color: #ffffff;
}
.broker-note {
  text-align: left;
  font-size: 10px;
  color: #777;
  margin-top: 0;
  line-height: 1.4;
}

/* ---------- СТРАНИЦА КОМПАНИЙ ---------- */
.companies-content {
  padding: 8px 0 20px;
}
.companies-page-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}
.companies-search {
  margin-bottom: 16px;
}
#companiesSearchInput {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: white;
  font-size: 16px;
  backdrop-filter: blur(5px);
}
#companiesSearchInput::placeholder {
  color: #aaa;
}
#companiesSearchInput:focus {
  outline: none;
  border-color: #2c9e5f;
}
.companies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.company-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 10px 8px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.company-card:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.1);
}
.company-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  margin-right: 8px;
  flex-shrink: 0;
}
.company-info {
  flex: 1;
  min-width: 0;
}
.company-name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.company-tickers {
  font-size: 11px;
  color: #ccc;
  margin-bottom: 2px;
}
.company-inn {
  font-size: 9px;
  color: #999;
  margin-top: 2px;
}
.company-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 9px;
  line-height: 1.2;
  z-index: 2;
}
.indicator-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2px;
}
.indicator-circle {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-left: 2px;
}
.indicator-circle.red {
  background: #ff3b30;
}
.indicator-circle.orange {
  background: #ff9500;
}
.indicator-circle.yellow {
  background: #ffcc00;
}
.indicator-circle.blink {
  animation: blink-animation 1s step-start infinite;
}
.indicator-envelope {
  font-size: 18px;
  line-height: 1;
  margin-left: 2px;
}
.indicator-envelope.red {
  color: #ff3b30;
}
.indicator-envelope.orange {
  color: #ff9500;
}
.indicator-envelope.yellow {
  color: #ffcc00;
}
.indicator-envelope.blink {
  animation: blink-animation 1s step-start infinite;
}
.indicator-date {
  font-size: 8px;
  color: #ccc;
  white-space: nowrap;
  margin-top: 2px;
}
.tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  max-width: 200px;
  text-align: center;
  z-index: 1000;
  pointer-events: none;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: none;
  white-space: nowrap;
}
.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}
.companies-modal-content {
  max-width: 500px;
  width: 95%;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(28, 28, 30, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.company-links {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.company-link-btn {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 24px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}
.company-link-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.company-facts-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.company-facts-table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  font-size: 12px;
}
.company-facts-table th {
  text-align: left;
  padding: 10px 8px;
  background: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  color: #ddd;
  white-space: nowrap;
}
.company-facts-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
}
.company-facts-table td:first-child {
  white-space: nowrap;
}
.company-facts-table a {
  color: #2c9e5f;
  text-decoration: none;
  font-size: 16px;
}
.fact-detail-modal-content {
  max-width: 600px;
  width: 95%;
  max-height: 80vh;
  overflow-y: auto;
  background: #e8e8e8 !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: #222;
}
.fact-detail-modal-content .modal-header {
  position: sticky;
  top: 0;
  background: #e8e8e8;
  z-index: 10;
  padding-bottom: 8px;
}
.fact-detail-modal-content .modal-header h3 {
  color: #881f26;
}
.fact-detail-meta {
  margin-bottom: 16px;
  color: #555;
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 8px;
}
.fact-detail-content {
  line-height: 1.6;
  font-size: 14px;
}
.fact-detail-content p {
  margin: 0 0 1em 0;
}
@keyframes blink-animation {
  50% {
    opacity: 0;
  }
}

/* ---------- СТРАНИЦА ЭКОНОМИЧЕСКИЙ КАЛЕНДАРЬ ---------- */
.economic-content {
  padding: 8px 0 20px;
}
.economic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.economic-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.economic-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.economic-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.economic-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.economic-nav-btn.today-btn {
  width: auto;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 14px;
}
.economic-week-range {
  font-size: 14px;
  color: #ccc;
  min-width: 200px;
  text-align: center;
}
.economic-week {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.economic-day {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border 0.2s;
}
.economic-day.today {
  border: 1px solid #2c9e5f;
  background: rgba(44, 158, 95, 0.05);
}
.economic-day-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.economic-day-name {
  font-weight: 600;
  font-size: 16px;
}
.economic-day-date {
  font-size: 13px;
  color: #aaa;
}
.economic-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.economic-event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  position: relative;
}
.economic-event:active {
  transform: scale(0.99);
  background: rgba(255, 255, 255, 0.08);
}
.economic-event.has-link {
  background: rgba(44, 158, 95, 0.08);
  border-left: 3px solid #2c9e5f;
}
.economic-event.empty {
  color: #888;
  font-style: italic;
  cursor: default;
}
.event-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  flex-shrink: 0;
}
.event-content {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.event-time {
  font-weight: 600;
  color: #ffaa44;
  font-size: 13px;
  min-width: 45px;
}
.event-desc {
  font-size: 13px;
  line-height: 1.4;
}
.event-link-icon {
  font-size: 16px;
  opacity: 0.7;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s;
}
.event-link-icon:hover {
  opacity: 1;
}
.event-detail-modal-content {
  max-width: 500px;
  width: 95%;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(28, 28, 30, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.event-detail-meta {
  margin-bottom: 16px;
  color: #aaa;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}
.event-detail-description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.event-detail-link a {
  color: #2c9e5f;
  text-decoration: none;
  font-weight: 500;
}
.event-detail-link a:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .economic-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .economic-week-range {
    min-width: auto;
    font-size: 13px;
  }
}
.dropdown-item.development {
  color: #888 !important;
  opacity: 0.7;
}

/* ---------- БОКОВОЙ ВИДЖЕТ ДЛЯ ТЕЛЕФОНОВ ---------- */
.main-content-row {
  display: flex;
  gap: 0;
}
.widgets-grid {
  transition: width 0.3s;
}
.vertical-widget {
  display: none;
  width: 28%;
  min-width: 100px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  margin-left: 1%;
  padding: 8px 6px;
  font-size: 11px;
  overflow: hidden;
  height: 750px;
  max-height: 750px;
  color: #fff;
  position: relative;
}
.main-content-row.widget-visible .vertical-widget {
  display: block;
}
.widget-scroll {
  height: 100%;
  overflow: hidden;
}
.widget-ticker {
  display: flex;
  flex-direction: column;
  animation: scroll-up 25s linear infinite;
}
.widget-ticker:hover {
  animation-play-state: paused;
}
@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
.widget-section {
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
}
.widget-head {
  font-weight: bold;
  color: #bbb;
  margin-bottom: 6px;
}
.widget-row {
  margin: 4px 0;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}
.widget-row .ticker {
  font-weight: 600;
  color: #ff8c00;
  margin-right: 4px;
}
.widget-row .delta.pos {
  color: #4caf50;
}
.widget-row .delta.neg {
  color: #ff5252;
}
.fact-row {
  text-align: center;
}
.fact-ticker {
  display: inline-block;
  color: #ff5252 !important;
  font-weight: bold;
  animation: pulse-fact 1.5s ease-in-out infinite;
}
@keyframes pulse-fact {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ---------- СТРАНИЦА ПРОФИЛЯ ---------- */
.profile-content {
  padding: 8px 0 20px;
}
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  position: relative;
}
/* Эффект "солнышко" – зелёное свечение слева */
.profile-avatar {
  box-shadow: -8px 0 12px rgba(76, 175, 80, 0.6), 0 0 8px rgba(76, 175, 80, 0.3);
  border: 2px solid rgba(76, 175, 80, 0.5);
}
.profile-field {
  margin-bottom: 16px;
}
.profile-field label {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 4px;
}
.profile-field .value {
  font-size: 16px;
  font-weight: 500;
}
.profile-bio {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}
.profile-bio:focus {
  outline: none;
  border-color: #ff8c00;
}
.profile-link-input {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: inherit;
}
.profile-link-input:focus {
  outline: none;
  border-color: #ff8c00;
}
#profile-photo-upload {
  display: block;
  margin-top: 4px;
  color: #ccc;
  font-size: 13px;
}
.profile-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.profile-buttons button {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
.profile-buttons button:hover {
  opacity: 0.9;
}
.save-profile-btn {
  background: #213953;
  border: none;
  color: white;
}
.logout-profile-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ff5252;
}

/* ---------- ПРЕМИУМ МОДАЛКА ---------- */
.premium-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(3px) !important;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.premium-modal .premium-modal-content {
  max-width: 350px;
  width: 90%;
  margin: 0 auto;
  background: rgba(28, 28, 30, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.premium-modal .premium-modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.premium-modal .premium-modal-content .modal-header h3 {
  color: white;
  font-size: 18px;
}
.premium-modal .premium-modal-content .close-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}
.premium-modal .premium-modal-content .modal-body p {
  color: #ddd;
  font-size: 14px;
  margin-bottom: 20px;
}
.premium-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.premium-buttons .login-icon-btn {
  flex: 1;
  justify-content: center;
}
.app-container.blur {
  filter: blur(4px);
  transition: filter 0.2s;
}

/* ---------- ТРЕЙДЕР-ТИНДЕР (МОДАЛЬНОЕ ОКНО) ---------- */
.tinder-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.tinder-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 0;
}
.tinder-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #ff8c00;
  margin: 0;
}
.tinder-cards-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 0;
  position: relative;
}
.tinder-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 16px;
  width: 100%;
  max-width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, opacity 0.3s;
  user-select: none;
  touch-action: none;
  overflow-y: auto;
  max-height: 65vh;
}
.tinder-card-photo {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: #1c1c1e;
  margin-bottom: 16px;
}
.tinder-card-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}
.tinder-card-bio {
  font-size: 14px;
  color: #ccc;
  line-height: 1.4;
  margin-bottom: 16px;
  word-wrap: break-word;
  white-space: pre-wrap;
  text-align: left;
}
.tinder-card-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tinder-link-btn {
  display: block;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  text-align: center;
}
.tinder-actions-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}
.tinder-actions-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 8px 24px;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tinder-action-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  touch-action: none;
  position: relative;
}
.tinder-action-circle.dislike {
  border-color: #ff5252;
}
.tinder-action-circle.like {
  border-color: #4caf50;
  flex-direction: column;
  gap: 0;
}
.tinder-action-icon {
  font-size: 28px;
  color: #ff5252;
}
.tinder-like-icon {
  font-size: 24px;
  color: #4caf50;
}
.tinder-like-count {
  font-size: 12px;
  color: #4caf50;
  margin-top: -4px;
}
.tinder-arrow-hint {
  position: absolute;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  animation: tinder-arrow-pulse 2s ease-in-out infinite;
}
.tinder-action-circle.dislike .tinder-arrow-hint {
  left: -20px;
}
.tinder-action-circle.like .tinder-arrow-hint {
  right: -20px;
}
.tinder-action-circle:hover .tinder-arrow-hint,
.tinder-action-circle:active .tinder-arrow-hint {
  opacity: 1;
  animation: none;
}
@keyframes tinder-arrow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
.tinder-seen-label {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.tinder-empty {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  line-height: 1.5;
}
.tinder-go-profile {
  margin-top: 16px;
  padding: 10px 24px;
  background: #213953;
  border: none;
  color: white;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
}

/* ---------- МОДАЛКА СОВПАДЕНИЯ (Трейдер-Тиндер) ---------- */
.match-modal-content {
  max-width: 350px;
  width: 90%;
  margin: auto;
  background: rgba(28, 28, 30, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.match-body {
  text-align: center;
}
.match-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}
.match-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.match-text {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.4;
}
.match-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.match-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  color: #fff;
  text-align: center;
}
.match-btn.continue-swipe {
  background: #4caf50;
  color: #fff;
  margin-top: 16px;
}
.match-btn.tg-link {
  background: #2AABEE;
}
.match-btn.max-link {
  background: #0077FF;
}
.match-btn.web-link {
  background: #ff8c00;
  color: #000;
}

/* ---------- МОДАЛКА ПРЕДПРОСМОТРА КАРТОЧКИ (Профиль) ---------- */
.preview-modal-content {
  max-width: 400px;
  width: 90%;
  margin: auto;
  background: rgba(28, 28, 30, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #fff;
}

/* ---------- СТРАНИЦА «О ПРОЕКТЕ» (ФИНАЛЬНЫЕ ПРАВКИ) ---------- */
.about-content {
  position: relative;
  overflow: hidden;
  padding: 10px 0 40px;
  background-image: 
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 20px);
}

/* Оси графика */
.about-axis {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 60px;
  height: 60px;
}
.about-axis-y {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.2);
}
.about-axis-x {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.2);
}
.about-axis-arrow-up {
  position: absolute;
  top: -6px;
  left: -4px;
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid rgba(255,255,255,0.3);
}
.about-axis-arrow-right {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 0; 
  height: 0; 
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255,255,255,0.3);
}

#aboutBgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
}
.about-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.about-layer-1 { z-index: 0; }
.about-layer-2 { z-index: 1; }
.about-layer-3 { z-index: 3; }

/* Дальний слой */
.about-layer-1 .about-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  background: radial-gradient(circle, #4caf50 0%, transparent 70%);
}
.about-l1-1 { top: 8%; left: 5%; width: 250px; height: 250px; animation: aboutFloat1 24s ease-in-out infinite; }
.about-l1-2 { top: 50%; right: 0; width: 200px; height: 200px; animation: aboutFloat2 30s ease-in-out infinite; }
.about-l1-3 { bottom: 10%; left: 15%; width: 180px; height: 180px; animation: aboutFloat3 26s ease-in-out infinite; }

/* Средний слой: тикеры и светофоры */
.about-floating-ticker {
  position: absolute;
  font-family: monospace;
  font-size: 13px;
  font-weight: bold;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  animation: aboutTickerFloat 30s linear infinite;
}
.about-ft-1 { top: 5%; left: 5%; animation-duration: 22s; }
.about-ft-2 { top: 8%; left: 25%; animation-duration: 28s; }
.about-ft-3 { top: 12%; left: 50%; animation-duration: 20s; }
.about-ft-4 { top: 15%; left: 70%; animation-duration: 25s; }
.about-ft-5 { top: 20%; left: 10%; animation-duration: 32s; }
.about-ft-6 { top: 25%; left: 40%; animation-duration: 18s; }
.about-ft-7 { top: 30%; left: 60%; animation-duration: 27s; }
.about-ft-8 { top: 35%; left: 80%; animation-duration: 23s; }
.about-ft-9 { top: 40%; left: 15%; animation-duration: 30s; }
.about-ft-10 { top: 45%; left: 35%; animation-duration: 26s; }
.about-ft-11 { top: 50%; left: 55%; animation-duration: 21s; }
.about-ft-12 { top: 55%; left: 75%; animation-duration: 29s; }
.about-ft-13 { top: 60%; left: 5%; animation-duration: 24s; }
.about-ft-14 { top: 65%; left: 30%; animation-duration: 19s; }
.about-ft-15 { top: 70%; left: 50%; animation-duration: 33s; }
.about-ft-16 { top: 75%; left: 70%; animation-duration: 22s; }
.about-ft-17 { top: 80%; left: 10%; animation-duration: 28s; }
.about-ft-18 { top: 85%; left: 40%; animation-duration: 25s; }
.about-ft-19 { top: 90%; left: 60%; animation-duration: 31s; }
.about-ft-20 { top: 95%; left: 80%; animation-duration: 27s; }
.about-ft-21 { top: 10%; right: 5%; animation-duration: 23s; }
.about-ft-22 { top: 20%; right: 25%; animation-duration: 29s; }
.about-ft-23 { top: 30%; right: 45%; animation-duration: 20s; }
.about-ft-24 { top: 40%; right: 65%; animation-duration: 26s; }
.about-ft-25 { top: 50%; right: 85%; animation-duration: 32s; }
.about-ft-26 { top: 60%; right: 10%; animation-duration: 18s; }
.about-ft-27 { top: 70%; right: 30%; animation-duration: 25s; }
.about-ft-28 { top: 80%; right: 50%; animation-duration: 21s; }
.about-ft-29 { top: 90%; right: 70%; animation-duration: 28s; }
.about-ft-30 { top: 95%; right: 90%; animation-duration: 24s; }

.about-sentiment-cluster {
  position: absolute;
  display: flex;
  gap: 4px;
  opacity: 0.4;
  animation: aboutSentimentFloat 18s ease-in-out infinite;
}
.about-sc-cluster-1 { top: 15%; left: 5%; animation-duration: 20s; }
.about-sc-cluster-2 { top: 35%; left: 10%; animation-duration: 25s; animation-delay: -7s; }
.about-sc-cluster-3 { top: 55%; left: 8%; animation-duration: 22s; animation-delay: -14s; }
.about-sc-cluster-4 { bottom: 25%; left: 12%; animation-duration: 28s; animation-delay: -3s; }
.about-sc-cluster-5 { bottom: 10%; left: 6%; animation-duration: 24s; animation-delay: -10s; }

.about-sc-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.about-sc-dot-green { background: #4caf50; }
.about-sc-dot-yellow { background: #ffcc00; }
.about-sc-dot-red { background: #ff5252; }

@keyframes aboutSentimentFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -25px) scale(1.2); }
}

/* Передний слой: свечи и треугольники */
.about-candle-cluster {
  position: absolute;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  opacity: 0.4;
  animation: aboutClusterFloat 15s ease-in-out infinite;
}
.about-cc-1 { top: 20%; right: 5%; animation-duration: 14s; }
.about-cc-2 { top: 35%; right: 12%; animation-duration: 18s; animation-delay: -5s; }
.about-cc-3 { top: 50%; right: 8%; animation-duration: 16s; animation-delay: -10s; }
.about-cc-4 { bottom: 30%; right: 10%; animation-duration: 20s; animation-delay: -3s; }
.about-cc-5 { bottom: 15%; right: 15%; animation-duration: 22s; animation-delay: -8s; }
.about-cc-6 { top: 65%; right: 5%; animation-duration: 17s; animation-delay: -12s; }
.about-cc-7 { top: 80%; right: 18%; animation-duration: 19s; animation-delay: -6s; }
.about-cc-8 { bottom: 5%; right: 22%; animation-duration: 21s; animation-delay: -11s; }

.about-candle {
  width: 10px;
  border-radius: 3px;
}
.about-candle-up { background: #4caf50; }
.about-candle-down { background: #ff5252; }

.about-triangle-group {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: aboutTriangleFloat 15s ease-in-out infinite;
  font-size: 22px;
}
.about-triangle-icon {
  font-size: 32px;
  line-height: 1;
}
.about-triangle-pct {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}
.about-tg-up .about-triangle-icon { color: #4caf50; }
.about-tg-down .about-triangle-icon { color: #ff5252; }
.about-tg-up .about-triangle-pct { color: #4caf50; }
.about-tg-down .about-triangle-pct { color: #ff5252; }

@keyframes aboutTriangleFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -12px); }
}

@keyframes aboutClusterFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -18px); }
}
@keyframes aboutFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.15); }
}
@keyframes aboutFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-40px, -50px) rotate(10deg); }
}
@keyframes aboutFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-60px, 20px); }
}
@keyframes aboutTickerFloat {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
  25% { transform: translate(30px, -20px) rotate(5deg); opacity: 0.45; }
  50% { transform: translate(-20px, 30px) rotate(-3deg); opacity: 0.35; }
  75% { transform: translate(10px, -10px) rotate(2deg); opacity: 0.42; }
  100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
}

.about-inner {
  position: relative;
  z-index: 5;
}
.about-title {
  text-align: left;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  padding-left: 8px;
}
.about-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  min-height: 0;
}
.about-block-left {
  flex-direction: row;
}
.about-block-right {
  flex-direction: row-reverse;
}
.about-text {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  line-height: 1.6;
  color: #eee;
}
.about-accent {
  color: #ff8c00;
  font-weight: 600;
}
.about-image {
  flex: 0 0 140px;
  max-width: 140px;
  will-change: transform;
  margin-top: 20px;
}
.about-image img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.about-cta {
  justify-content: center;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 40px;
}
.about-subscribe-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #ff8c00;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
  animation: aboutPulse 2s ease-in-out infinite;
  transition: transform 0.2s;
}
.about-subscribe-btn:hover {
  transform: scale(1.05);
}
@keyframes aboutPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,140,0,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255,140,0,0); }
}

@media (max-width: 600px) {
  .about-block,
  .about-block-right {
    flex-direction: column !important;
  }
  .about-block-right .about-image {
    order: 2;
  }
  .about-block-right .about-text {
    order: 1;
  }
  .about-image {
    flex: 0 0 auto;
    max-width: 200px;
    margin: 0 auto;
  }
  .about-image img {
    max-height: 130px;
  }
  .about-text {
    margin-bottom: -10px;
    z-index: 2;
    position: relative;
  }
  .about-image {
    margin-top: -5px;
    z-index: 1;
  }
}