/* Переключатель города в шапке.
   Отдельный файл, чтобы правки не потерялись при пересборке style.css из SASS. */

/* в style.css стоит .city-wrapper:hover{opacity:.7} — оно гасило и сам
   выпадающий список; приглушаем только «таблетку» с названием города */
.city-wrapper:hover {
  opacity: 1; }

.city-wrapper .title {
  transition: opacity 0.25s ease; }

.city-wrapper .title:hover {
  opacity: 0.7; }

.city-wrapper {
  position: relative;
  z-index: 120; }

.city-wrapper .title {
  white-space: nowrap; }

.city-wrapper svg {
  transition: transform 0.25s ease; }

.city-wrapper.open svg {
  transform: rotate(180deg); }

.city-wrapper .city-list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #62ABB5;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(13, 42, 64, 0.35);
  max-height: 340px;
  overflow-y: auto;
  z-index: 121; }

.city-wrapper.open .city-list {
  display: block; }

/* на сайте у всех списков есть маркер-точка через :before — здесь он не нужен */
.city-wrapper .city-list li,
.city-wrapper .city-list li:before {
  padding-left: 0;
  margin: 0;
  content: none;
  display: block;
  background: none;
  border: 0; }

.city-wrapper .city-list li:before {
  display: none; }

.city-wrapper .city-list li a {
  display: block;
  padding: 9px 26px;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.2;
  color: #175D8C;
  background: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease; }

.city-wrapper .city-list li a:hover {
  background: #EAF4F6;
  text-decoration: none; }

.city-wrapper .city-list li.current a {
  font-weight: bold;
  background: #DCEDF0; }

@media (max-width: 991px) {
  .city-wrapper .title {
    padding: 14px 18px;
    font-size: 14px; }
  .city-wrapper .city-list li a {
    padding: 11px 18px; } }

@media (max-width: 575px) {
  .city-wrapper .title div {
    display: none; }
  .city-wrapper .title {
    padding: 12px 14px; }
  .city-wrapper span {
    margin: 0 8px 0 0; }
  .city-wrapper .city-list {
    left: auto;
    right: 0; } }

/* Переключатель языка РУ / ҚАЗ рядом с выбором города */
.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 18px;
  font-size: 16px;
  line-height: 1; }

.lang-switch a,
.lang-switch .current {
  padding: 8px 10px;
  border-radius: 20px;
  color: #175D8C;
  text-decoration: none;
  transition: background 0.15s ease, opacity 0.15s ease; }

.lang-switch a {
  opacity: 0.75; }

.lang-switch a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.33);
  text-decoration: none; }

.lang-switch .current {
  font-weight: bold;
  background: rgba(255, 255, 255, 0.33);
  border: 1px solid #62ABB5; }

@media (max-width: 991px) {
  .lang-switch {
    margin-left: 10px;
    font-size: 14px; }
  .lang-switch a,
  .lang-switch .current {
    padding: 7px 8px; } }
