/*
  Стили главной страницы (index.html).
  Общие токены и оформление body находятся в base.css.
*/

.page-shell{
  max-width: 1320px;
}

.landing-wrap{
  background: linear-gradient(180deg, rgba(245,238,227,.88), rgba(241,234,223,.94));
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 1.75rem;
  box-shadow: var(--osrs-shadow);
  overflow: hidden;
}

.hero-cover{
  position: relative;
  height: 230px;
  background:
    linear-gradient(180deg, rgba(20,16,12,.12), rgba(20,16,12,.25)),
    url("osrs-cover.jpg") center center / cover no-repeat;
  border-bottom: 1px solid var(--osrs-border);
}

@media (min-width: 768px){
  .hero-cover{ height: 300px; }
}

@media (min-width: 1200px){
  .hero-cover{ height: 330px; }
}

.hero-cover::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 16px;
  background: radial-gradient(15px 10px at 12px 0, transparent 10px, #f4eee3 11px) repeat-x;
  background-size: 24px 16px;
  opacity: .98;
}

.project-head-row{
  position: relative;
  z-index: 3;
  margin-top: -10px;
}

@media (min-width: 768px){
  .project-head-row{
    margin-top: -14px;
  }
}

.avatar-wrap{
  margin-top: -42px;
  z-index: 2;
  position: relative;
}

.avatar-img{
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f4eee3;
  box-shadow: 0 8px 18px rgba(20,16,12,.18);
  background: #ddd1bf;
}

@media (min-width: 768px){
  .avatar-wrap{ margin-top: -56px; }
  .avatar-img{
    width: 110px;
    height: 110px;
  }
}

.project-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--osrs-text);
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 3.2rem);
}

.project-meta{
  color: var(--osrs-muted);
  font-size: .95rem;
}

.project-subline{
  font-weight: 600;
  color: #3a342d;
  font-size: clamp(1rem, 1.5vw, 1.55rem);
}

.status-pill{
  background: rgba(31,27,23,.05);
  border: 1px solid rgba(31,27,23,.08);
  color: var(--osrs-text);
  border-radius: 999px;
  padding: .45rem .85rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  overflow: visible;
}

/* Статусная точка "Онлайн" с заметным радарным пульсом */
.status-dot{
  position: relative;
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: var(--osrs-accent-2);
  flex: 0 0 auto;
  z-index: 1;
  box-shadow:
    0 0 0 2px rgba(222,154,68,.22),
    0 0 10px rgba(222,154,68,.45);
}

.status-dot::before,
.status-dot::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  background: rgba(222,154,68,.42);
  animation: statusRadar 1.9s ease-out infinite;
}

.status-dot::after{
  background: rgba(222,154,68,.32);
  animation-delay: .95s;
}

@keyframes statusRadar{
  0%{
    transform: translate(-50%, -50%) scale(1);
    opacity: .8;
  }
  60%{
    opacity: .2;
  }
  100%{
    transform: translate(-50%, -50%) scale(3.8);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce){
  .status-dot::before,
  .status-dot::after{
    animation: none;
    opacity: 0;
  }
}

.content-card{
  background: linear-gradient(180deg, rgba(255,255,255,.33), rgba(255,255,255,.15));
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 1.5rem;
  box-shadow: var(--osrs-soft-shadow);
}

.section-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(1.7rem, 2.4vw, 2.9rem);
  margin: 0;
}

.section-title .accent{
  color: var(--osrs-accent);
}

.lead-osrs{
  color: var(--osrs-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.lead-osrs strong{
  color: var(--osrs-text);
  font-weight: 700;
}

/* Список рубрик: ul без маркеров. margin-top намеренно не трогаем,
   его задают утилиты .mt-2 / .mt-md-3 в разметке. */
.tag-list{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .75rem;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.tag-pill{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: auto;
  min-height: 40px;
  padding: .48rem .82rem;
  background: rgba(255,255,255,.42);
  border: 1px solid var(--osrs-border);
  border-radius: 999px;
  color: #3a342d;
  font-weight: 600;
  font-size: .96rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.tag-dot{
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--osrs-accent-2);
  flex: 0 0 auto;
}

.section-caption{
  color: var(--osrs-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .85rem;
  font-size: .95rem;
}

/* Подборки (8 карточек) */
.collection-card-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.collection-thumb-wrap{
  position: relative;
  aspect-ratio: 1.22 / 1;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #d9d0c1;
  box-shadow: 0 8px 20px rgba(24, 18, 12, .08);
  border: 1px solid rgba(255,255,255,.28);
}

.collection-thumb{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.collection-card-link:hover .collection-thumb{
  transform: scale(1.03);
}

.collection-title{
  margin-top: .65rem;
  margin-bottom: 0;
  color: #35302a;
  font-weight: 500;
  line-height: 1.18;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  transition: color .2s ease;
}

.collection-card-link:hover .collection-title{
  color: var(--osrs-accent);
}

.collection-card-link:focus-visible{
  outline: 3px solid rgba(196,122,42,.45);
  outline-offset: 4px;
  border-radius: 1.35rem;
}

.btn-osrs{
  border-radius: .9rem;
  min-height: 52px;
  padding: .75rem 1rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 16px rgba(17,13,10,.15);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  justify-content: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn-osrs-icon-wrap{
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.btn-osrs-icon{
  width: 1.3125rem;
  height: 1.3125rem;
  display: block;
  object-fit: contain;
}

.social-links .btn-osrs{
  justify-content: flex-start;
  text-align: left;
}

.social-links .label{
  line-height: 1;
  white-space: nowrap;
}

.btn-osrs:hover{
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 18px rgba(17,13,10,.18);
}

.btn-osrs:focus-visible{
  outline: 3px solid rgba(196,122,42,.35);
  outline-offset: 2px;
}

.btn-osrs-dark{
  background: linear-gradient(180deg, var(--osrs-dark) 0%, var(--osrs-dark-2) 100%);
  color: #f7f1e7;
}

.btn-osrs-dark:hover{
  color: #fff;
  background: linear-gradient(180deg, #211c17 0%, #14110e 100%);
}

.btn-osrs-accent{
  background: linear-gradient(180deg, #d88c37 0%, #bf7427 100%);
  color: #fff9f0;
}

.btn-osrs-accent:hover{
  color: #fff;
  background: linear-gradient(180deg, #e19744 0%, #c97c2e 100%);
}

/* Каналы, которых пока нет. Кнопки помечены aria-disabled, а не disabled:
   так они остаются в таб-навигации, объявляются скринридером и показывают title.
   Поэтому здесь больше не нужны pointer-events: none и перебивание
   бутстраповской .btn:disabled через opacity !important. */
.btn-osrs-disabled,
.btn-osrs-disabled:hover,
.btn-osrs-disabled:focus{
  background: linear-gradient(180deg, #2b2722 0%, #1f1b17 100%);
  color: rgba(247, 241, 231, .72);
  border-color: rgba(255,255,255,.04);
  cursor: default;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.btn-osrs-disabled span{
  color: rgba(247, 241, 231, .58);
}

.btn-osrs-soon{
  margin-left: auto;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(247, 241, 231, .62);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Начиная с xl семь соцкнопок выстраиваются в одну строку и делят её поровну:
   колонки получают flex: 1 1 0 вместо auto-ширины по контенту.
   Размер иконок намеренно не трогаем - он зафиксирован решением T-014. */
@media (min-width: 1200px){
  .social-links{
    --bs-gutter-x: .75rem;
  }

  .social-links > [class*="col-"]{
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  /* При равной ширине содержимое центрируем: выравнивание по левому краю
     (решение T-005) остаётся на узких экранах, где кнопки идут в колонку
     и иконки должны стоять на одной вертикали. */
  .social-links .btn-osrs{
    justify-content: center;
    padding-left: .6rem;
    padding-right: .6rem;
    gap: .5rem;
    position: relative;
  }

  .social-links .label{
    font-size: .95rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Пометка "скоро" уходит в угол: в общем потоке она делала неактивные
     кнопки заметно шире остальных и ломала равные доли. */
  .social-links .btn-osrs-soon{
    position: absolute;
    top: .3rem;
    right: .4rem;
    margin: 0;
    padding: .08rem .32rem;
    font-size: .62rem;
    letter-spacing: .02em;
  }
}

/* 1200-1400 - самый тесный диапазон: контейнер ещё не упёрся в свои 1320px,
   а строка уже делится на семь. Поджимаем подпись и отступы. */
@media (min-width: 1200px) and (max-width: 1399.98px){
  .social-links{
    --bs-gutter-x: .5rem;
  }

  .social-links .btn-osrs{
    padding-left: .45rem;
    padding-right: .45rem;
    gap: .4rem;
  }

  .social-links .label{
    font-size: .88rem;
  }
}

.btn-osrs-disabled .label{
  opacity: .9;
  letter-spacing: .01em;
}

.btn-osrs-disabled .btn-osrs-icon-wrap{
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.btn-osrs-disabled .btn-osrs-icon{
  opacity: .7;
}

.contact-line{
  color: var(--osrs-muted);
  font-size: 1rem;
}

.contact-line strong{
  color: var(--osrs-text);
}

.contact-line a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(196,122,42,.35);
}

.contact-line a:hover{
  color: var(--osrs-accent);
  border-bottom-color: rgba(196,122,42,.65);
}

.thin-divider{
  border-top: 1px solid rgba(37,34,31,.07);
}

.site-footer{
  color: var(--osrs-muted);
  font-size: .92rem;
}

.site-footer-links{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem 1rem;
  margin-bottom: .75rem;
}

.site-footer-links a{
  color: var(--osrs-text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(196,122,42,.35);
}

.site-footer-links a:hover{
  color: var(--osrs-accent);
  border-bottom-color: rgba(196,122,42,.65);
}

.site-footer-copy{
  text-align: right;
  line-height: 1.2;
}

.site-footer-brand{
  color: var(--osrs-text);
  font-weight: 600;
}

@media (max-width: 575.98px){
  .status-mobile-left{
    justify-content: flex-start !important;
  }

  .tag-list{
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .tag-pill{
    width: 100%;
    min-height: 44px;
    padding: .58rem .85rem;
    white-space: normal;
  }

  .site-footer-links,
  .site-footer-copy{
    text-align: center;
    justify-content: center;
  }
}
