/* Виджет новостей */

.news-widget {
  position: fixed;
  right: 24px;
  /* Не перекрываем кнопку «Далее» в первом экране. */
  bottom: 88px;
  z-index: 1100;
  width: 360px;
  max-width: calc(100% - 32px);
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(120%);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  font-family: inherit;
}

/* Появление */
.news-widget.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Крестик закрытия */
.news-widget__close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 32px;
  height: 32px;

  border: none;
  background: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  line-height: 1;
  color: #DDB96F !important;

  cursor: pointer;

  transition:
    transform 0.35s cubic-bezier(.22, .61, .36, 1),
    color 0.35s ease;
}

/* Едва заметный эффект при наведении */
.news-widget__close:hover {
  transform: scale(1.015);     
  color: #c9a559 !important;    
}

/* Едва заметный клик */
.news-widget__close:active {
  transform: scale(0.985);
}

/* Шапка */
.news-widget__header {
  padding: 18px 20px 8px 20px;
}

.news-widget__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.45);
}

/* Обёртка картинки делаем карточку с тенью */
.news-widget__image-link {
  display: block;
  margin: 0 20px 6px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

/* Картинка внутри */
.news-widget__image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

/* Контент */
.news-widget__content {
  padding: 10px 20px 18px;
}

.news-widget__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.news-widget__text {
  position: relative;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.75);

  max-height: none; 
  overflow: visible;
}

/* fade-out снизу */
.news-widget__text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 26px; 

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 40%,
    rgba(255, 255, 255, 0.6) 65%,
    rgba(255, 255, 255, 0.85) 85%,
    rgba(255, 255, 255, 1) 100% 
  );
}


/* Кнопка "Подробнее" */
.news-widget__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 11px 20px;
  border-radius: 999px;
  border: none;

  background: #DDB96F;            
  color: #2a2418;                
  
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0,0,0,0.18);

  transition:
    background 0.25s ease,
    transform 0.18s ease,
    box-shadow 0.28s ease;
}

/* hover */
.news-widget__btn:hover {
  background: #c9a559;
  color: #2a2418;                  
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* active */
.news-widget__btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Общий стиль для всех соцсетей */
.news-widget__socials {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-widget__socials-label {
  font-size: 13px;             
  font-weight: 500;             
  color: rgba(0, 0, 0, 0.55);   
  line-height: 1;                
  white-space: nowrap;

  position: relative;
  top: 1px;                      
  margin-left: 2px;        
}

.news-widget__socials-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-widget__social {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

/* все иконки — 16x16 и заливка золотом */
.news-widget__social svg {
  width: 16px;
  height: 16px;
  display: block;
}

.news-widget__social svg path {
  fill: #C1A56A;
}

.news-widget__social[aria-label="MAX"] svg {
  width: 14px;
  height: 14px;
}

/* WHATSAPP */
.news-widget__social[aria-label="WhatsApp"] svg path {
  fill: #C1A56A;       
  stroke: #C1A56A;  
  stroke-width: 80;     /* жирность трубки */
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* круг вокруг трубки */
.news-widget__social[aria-label="WhatsApp"] svg path:last-of-type {
  fill: none;         
  stroke: #C1A56A;
  stroke-width: 100;   
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Кнопка-свёртка */
.news-widget-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1090;

  width: 55px;
  height: 55px;
  padding: 0;

  border-radius: 999px;
  background: #DDB96F;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);

  color:rgba(0,0,0,.75);
  cursor: pointer;

  display: none; /* как было */
  align-items: center;
  justify-content: center;

  transition: opacity .25s ease, transform .25s ease;
  opacity: 1;
  transform: translateY(0);
}

.news-widget-toggle__icon {
  width: 44px;
  height: 44px;
  display: block;
}

.news-widget-toggle{
  --ty: 0px;     /* движение по Y */
  --sc: 1;       /* масштаб */

  transform: translateY(var(--ty)) scale(var(--sc));
  opacity: 1;

  transition:
    opacity .25s ease,
    transform .25s ease,
    box-shadow .2s ease,
    filter .2s ease;

  will-change: transform, opacity;
}

/* hover */
.news-widget-toggle:hover{
  --ty: -3px;
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
  filter: brightness(1.03);
}

/* active */
.news-widget-toggle:active{
  --ty: -1px;
  --sc: .98;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* скрытие */
.news-widget-toggle.is-hidden{
  opacity: 0;
  --ty: 10px;
  pointer-events: none;
}

/* оверлеи ~999-1100, кнопку ниже */
.news-widget-toggle{
  z-index: 900 !important;
}
