/* theme.css — Telegram-like dark UI
   bg: #1E1E1E
   accent: #1c93e3
*/

/* ===============================
   Variables
================================ */
:root{
  --bg: #1E1E1E;
  --surface: #1E1E1E;

  --text: #ffffff;
  --muted: rgba(255,255,255,.65);

  --accent: #1c93e3;
  --accent-hover: #1686cf;
  --accent-active: #136aa3;

  --radius: 12px;
  --focus: 0 0 0 .25rem rgba(28,147,227,.25);
}

/* ===============================
   Base
================================ */
html, body{
  height: 100%;
}

body{
  background: var(--bg) !important;
  color: var(--text) !important;

  /* Telegram system font */
  font-family: -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===============================
   Text
================================ */
.text-secondary,
.text-muted,
small{
  color: var(--muted) !important;
}

a{
  color: var(--accent);
  text-decoration: none;
}
a:hover{
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ===============================
   Surfaces
================================ */
.card,
.list-group-item,
.alert,
.modal-content{
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
}

/* ===============================
   Inputs
================================ */
.form-control,
.form-select{
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
}

.form-control::placeholder{
  color: rgba(255,255,255,.4) !important;
}

.form-control:focus,
.form-select:focus{
  box-shadow: var(--focus) !important;
}

/* ===============================
   TELEGRAM BUTTONS
================================ */

/* Base */
.btn{
  border: 0 !important;
  border-radius: 10px !important;

  /* telegram feel */
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;

  text-transform: uppercase !important; /* CAPS */
  line-height: 1.2 !important;

  box-shadow: none !important;
}

/* Accent buttons */
.btn-primary,
.btn-success{
  background: var(--accent) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover{
  background: var(--accent-hover) !important;
}

.btn-primary:active,
.btn-success:active{
  background: var(--accent-active) !important;
}

/* Outline buttons */
.btn-outline-secondary,
.btn-outline-primary{
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid rgba(28,147,227,.55) !important;
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover{
  background: rgba(28,147,227,.12) !important;
}

/* Disabled */
.btn:disabled{
  opacity: .5 !important;
}

/* Focus */
.btn:focus,
.btn:focus-visible{
  box-shadow: var(--focus) !important;
}

/* ===============================
   Alerts
================================ */
.alert-danger{
  background: rgba(220,53,69,.18) !important;
  color: #fff !important;
}
.alert-success{
  background: rgba(25,135,84,.18) !important;
  color: #fff !important;
}

/* ===============================
   Misc
================================ */
.spinner-border{
  color: var(--accent) !important;
}

hr{
  border-color: rgba(255,255,255,.12) !important;
}




















.city-select__logo{
  object-fit: cover;
  flex-shrink: 0;
}

.city-select__text{
  line-height: 1.1;
}

/* первая строка ~2/3 высоты лого */
.city-select__title{
  font-size: 1.5rem;
  line-height: 1.1;
}

/* вторая строка ~1/3, заметно меньше */
.city-select__subtitle{
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: .7;
}



/* ===============================
   Redirect loader (spinner + logo)
================================ */

.redirect__loader{
  position: relative;
  width: 128px;   /* общий размер */
  height: 128px;
  margin-inline: auto;
}

/* Большой круговой спиннер */
.redirect__spinner{
  width: 128px !important;
  height: 128px !important;
  border-width: 3px !important;
  color: var(--accent) !important;
}

/* Лого по центру */
.redirect__logo{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;

  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;

  background: var(--surface);
}




/* ===============================
   City select top block
   Image (left) + words (right)
================================ */

.city-select__stack{
  position: relative;
  padding-top: 92px; /* высота верхней зоны */
}

/* Верхняя зона */
.city-select__top{
  position: absolute;
  inset: 0 0 auto 0; /* top:0; left:0; right:0 */
  height: 92px;

  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% / 50% */
  z-index: 2;
}

/* Левая и правая половины */
.city-select__top-left,
.city-select__top-right{
  height: 100%;
}

/* Левая половина — картинка */
.city-select__top-left{
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.city-select__hero{
  height: 100%;
  width: auto;

  max-width: 100%;
  max-height: 100%;

  display: block;
  object-fit: contain; /* важно: без cover */

  border-top-left-radius: var(--radius);
}

/* Правая половина — слова */
.city-select__top-right{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}

/* Сетка слов: 2 колонки × 3 строки */
.city-select__words{
  width: 100%;
  height: 100%;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 6px 14px;

  align-items: center;
}

/* Одно слово */
.city-select__word{
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;

  text-transform: uppercase;
  white-space: nowrap;
}

/* Карточка под верхней зоной */
.city-select__card{
  position: relative;
  z-index: 1;
}


/* ===============================
   Promo blocks
================================ */

.promo{
  display: grid;
  gap: 12px;
}

/* общая высота секций */
.promo__section{
  height: 92px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Картинки: 100% высоты, ширина auto, центр */
.promo__img{
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

/* 1) split: image + text (2 колонки) */
.promo__section--split{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.promo__left,
.promo__right{
  height: 100%;
  display: flex;
  align-items: center;
}

.promo__left{
  justify-content: center;
  overflow: hidden;
}

.promo__right{
  padding: 10px 12px;
}

/* текст справа */
.promo__text{
  line-height: 1.05;
}

.promo__headline{
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.promo__subline{
  color: rgba(255,255,255,.75);
  font-weight: 700;
  font-size: 11px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* 2) три картинки в ряд (3 колонки) */
.promo__section--three{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.promo__cell{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}



/* ===============================
   Thin red ticker (fixed align)
================================ */

.ticker{
  max-width: 520px;
  height: 20px;                 /* фикс высота */
  margin: 0 auto;
  background: #dc35469c;
  border-radius: 2px;
  overflow: hidden;

  display: flex;                /* вертикальный центр */
  align-items: center;
}

.ticker__track{
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  line-height: 0;               /* убираем “паразитные” высоты */
}

.ticker__text{
  display: inline-block;
  padding: 0 12px;              /* горизонтальные поля, высоту не раздуваем */
  line-height: 25px;            /* ровно по высоте контейнера */
  height: 25px;

  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;

  will-change: transform;
  animation: ticker-move 10s linear infinite;
}

@keyframes ticker-move{
  from{ transform: translateX(100%); }
  to{ transform: translateX(-100%); }
}


/* ===============================
   Product OFF state (blur + ribbon)
================================ */

.product-card{
  position: relative;
  overflow: hidden; /* чтобы бейдж не вылезал */
}

.product-card--off{
  pointer-events: none; /* запрет кликов по карточке */
}

/* Разрешаем клик только на disabled button (не обязательно, но логично) */
.product-card--off .product-card__btn{
  pointer-events: auto;
}

/* Блюр всей карточки (кроме бейджа) */
.product-card--off .product-card__image,
.product-card--off .product-card__body{
  filter: blur(2px);
  opacity: .55;
}

/* Диагональный бейдж */
.product-card__ribbon{
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__ribbon-text{
  background: #dc3545;          /* красный */
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;

  padding: 5px 9px;
  border-radius: 0.5rem;

  transform: rotate(-18deg);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
