/* DEN26 - HOMENET: тёмный инфраструктурный фон */
html,
body {
  min-height: 100%;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(37, 99, 235, 0.16) 0%,
      rgba(37, 99, 235, 0) 34%
    ),
    radial-gradient(
      circle at 88% 84%,
      rgba(14, 116, 144, 0.13) 0%,
      rgba(14, 116, 144, 0) 38%
    ),
    linear-gradient(145deg, #0b1120 0%, #111827 48%, #0f172a 100%);
  background-attachment: fixed;
}
/* DEN26 - HOMENET: сдержанная визуальная доработка карточек */

.service {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.service:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.70);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.group > h2 {
  letter-spacing: 0.025em;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .service {
    transition: none;
  }

  .service:hover {
    transform: none;
  }
}

/* DEN  -  HOMENET: должен сделать заголовки групп жёлтыми */
.group > h2 {
  color: #facc15 !important;
}

/* DEN26 - HOMENET: фон для root-контейнеров Homepage */
body,
#__next,
#__next > div {
  min-height: 100vh !important;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(37, 99, 235, 0.18) 0%,
      rgba(37, 99, 235, 0) 34%
    ),
    radial-gradient(
      circle at 88% 84%,
      rgba(14, 116, 144, 0.15) 0%,
      rgba(14, 116, 144, 0) 38%
    ),
    linear-gradient(145deg, #0b1120 0%, #111827 48%, #0f172a 100%) !important;
  background-attachment: fixed !important;
}


/* DEN26 - HOMENET: цветовые акценты заголовков групп */
.service-group-name {
  border-left: 3px solid #64748b;
  padding-left: 0.65rem;
  line-height: 1.25;
}

*:has(> .service-group-name:nth-child(1)) > .service-group-name {
  border-left-color: #38bdf8;
}

*:has(> .service-group-name:nth-child(2)) > .service-group-name {
  border-left-color: #f59e0b;
}

*:has(> .service-group-name:nth-child(3)) > .service-group-name {
  border-left-color: #a78bfa;
}

*:has(> .service-group-name:nth-child(4)) > .service-group-name {
  border-left-color: #34d399;
}

*:has(> .service-group-name:nth-child(5)) > .service-group-name {
  border-left-color: #2dd4bf;
}

*:has(> .service-group-name:nth-child(6)) > .service-group-name {
  border-left-color: #60a5fa;
}

/* Иконки групп в цвет заголовков */
.service-group-icon > div {
  background: linear-gradient(
    180deg,
    #fde68a 0%,
    #facc15 48%,
    #f59e0b 100%
  ) !important;
}

/* DEN26 - HOMENET: разные цвета иконок групп по порядку на dashboard.
   Порядок: 1 — голубой, 2 — янтарный, 3 — фиолетовый,
   4 — зелёный, 5 — бирюзовый, 6 — синий. */

/* 1. Управление — голубой */
.service-group-icon:nth-of-type(1) > div {
  background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%) !important;
}

/* 2. Мониторинг — янтарный */
.service-group-icon:nth-of-type(2) > div {
  background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%) !important;
}

/* 3. Инфраструктура — фиолетовый */
.service-group-icon:nth-of-type(3) > div {
  background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 100%) !important;
}

/* 4. Файлы и данные — зелёный */
.service-group-icon:nth-of-type(4) > div {
  background: linear-gradient(180deg, #6ee7b7 0%, #34d399 100%) !important;
}

/* 5. Дом и сервисы — бирюзовый */
.service-group-icon:nth-of-type(5) > div {
  background: linear-gradient(180deg, #5eead4 0%, #14b8a6 100%) !important;
}

/* 6. Рабочие сервисы — синий */
.service-group-icon:nth-of-type(6) > div {
  background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%) !important;
}

/* DEN26 - HOMENET: локальный прогноз погоды */
.den26-weather-card {
  max-width: 100%;
  margin: 1rem auto 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(96, 165, 250, 0.30);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.86));
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.den26-weather-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.den26-weather-location {
  color: #facc15;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.den26-weather-description,
.den26-weather-rain {
  color: #94a3b8;
  font-size: 0.78rem;
}

.den26-weather-now {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.den26-weather-now-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.den26-weather-now-temp {
  color: #facc15;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.den26-weather-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  padding-top: 0.9rem;
}

.den26-weather-day {
  min-width: 0;
  padding: 0.55rem 0.35rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.42);
  text-align: center;
}

.den26-weather-day-name {
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.den26-weather-day-icon {
  margin: 0.25rem 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.den26-weather-temperature {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .den26-weather-card {
    margin-inline: 0;
    padding: 0.85rem;
  }

  .den26-weather-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .den26-weather-day:last-child {
    grid-column: span 2;
  }
}

/* DEN26 - HOMENET: компактный прогноз под поиском */
.den26-weather-card {
  width: min(100%, 34rem);
  margin: 0.45rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
}

.den26-weather-header {
  gap: 0.6rem;
  padding-bottom: 0.4rem;
}

.den26-weather-location {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.den26-weather-description {
  font-size: 0.64rem;
  line-height: 1.25;
}

.den26-weather-now {
  gap: 0.2rem;
}

.den26-weather-now-icon {
  font-size: 1.1rem;
}

.den26-weather-now-temp {
  font-size: 1.35rem;
}

.den26-weather-days {
  gap: 0.25rem;
  padding-top: 0.45rem;
}

.den26-weather-day {
  padding: 0.3rem 0.15rem;
  border-radius: 0.45rem;
}

.den26-weather-day-name {
  font-size: 0.54rem;
  line-height: 1.15;
}

.den26-weather-day-icon {
  margin: 0.1rem 0;
  font-size: 0.88rem;
  line-height: 1;
}

.den26-weather-temperature {
  font-size: 0.66rem;
}

.den26-weather-rain {
  font-size: 0.5rem;
  line-height: 1.1;
}

/* DEN26 - HOMENET: заметный логотип домашней сети */
a[href="https://den26.ru"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

a[href="https://den26.ru"]::after {
  content: "HOMENET";
  color: #facc15;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
}

/* DEN26 - HOMENET: увеличенный прогноз под поиском */
.den26-weather-card {
  width: min(100%, 51rem);
  margin-top: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
}

.den26-weather-header {
  gap: 0.9rem;
  padding-bottom: 0.65rem;
}

.den26-weather-location {
  font-size: 0.95rem;
}

.den26-weather-description {
  font-size: 0.78rem;
}

.den26-weather-now-icon {
  font-size: 1.6rem;
}

.den26-weather-now-temp {
  font-size: 1.9rem;
}

.den26-weather-days {
  gap: 0.4rem;
  padding-top: 0.7rem;
}

.den26-weather-day {
  padding: 0.45rem 0.25rem;
  border-radius: 0.55rem;
}

.den26-weather-day-name {
  font-size: 0.68rem;
}

.den26-weather-day-icon {
  margin: 0.16rem 0;
  font-size: 1.2rem;
}

.den26-weather-temperature {
  font-size: 0.82rem;
}

.den26-weather-rain {
  font-size: 0.62rem;
}

/* DEN26 - HOMENET: крупный logo-блок в верхней панели */
a[href="https://den26.ru"] {
  gap: 0.75rem;
}

a[href="https://den26.ru"]::after {
  font-size: 1.35rem;
  letter-spacing: 0.14em;
}

a[href="https://den26.ru"] svg,
a[href="https://den26.ru"] img {
  width: 2.4rem !important;
  height: 2.4rem !important;
}

/* DEN26 - HOMENET: увеличенный прогноз под поиском */
.den26-weather-card {
  width: min(100%, 51rem);
  margin-top: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
}

.den26-weather-header {
  gap: 0.9rem;
  padding-bottom: 0.65rem;
}

.den26-weather-location {
  font-size: 0.95rem;
}

.den26-weather-description {
  font-size: 0.78rem;
}

.den26-weather-now-icon {
  font-size: 1.6rem;
}

.den26-weather-now-temp {
  font-size: 1.9rem;
}

.den26-weather-days {
  gap: 0.4rem;
  padding-top: 0.7rem;
}

.den26-weather-day {
  padding: 0.45rem 0.25rem;
  border-radius: 0.55rem;
}

.den26-weather-day-name {
  font-size: 0.68rem;
}

.den26-weather-day-icon {
  margin: 0.16rem 0;
  font-size: 1.2rem;
}

.den26-weather-temperature {
  font-size: 0.82rem;
}

.den26-weather-rain {
  font-size: 0.62rem;
}

/* DEN26 - HOMENET: крупный logo-блок в верхней панели */
a[href="https://den26.ru"] {
  gap: 0.75rem;
}

a[href="https://den26.ru"]::after {
  font-size: 1.35rem;
  letter-spacing: 0.14em;
}

a[href="https://den26.ru"] svg,
a[href="https://den26.ru"] img {
  width: 2.4rem !important;
  height: 2.4rem !important;
}

/* DEN26 - HOMENET: широкий прогноз строго под поисковой строкой */
.den26-weather-card {
  width: 100%;
  max-width: none;
  margin-top: 0.9rem;
  padding: 1.1rem 1.3rem;
}

.den26-weather-header {
  gap: 1.1rem;
  padding-bottom: 0.8rem;
}

.den26-weather-location {
  font-size: 1.2rem;
}

.den26-weather-description {
  font-size: 0.95rem;
}

.den26-weather-now-icon {
  font-size: 2.1rem;
}

.den26-weather-now-temp {
  font-size: 2.45rem;
}

.den26-weather-days {
  gap: 0.55rem;
  padding-top: 0.85rem;
}

.den26-weather-day {
  padding: 0.62rem 0.35rem;
  border-radius: 0.65rem;
}

.den26-weather-day-name {
  font-size: 0.82rem;
}

.den26-weather-day-icon {
  margin: 0.2rem 0;
  font-size: 1.55rem;
}

.den26-weather-temperature {
  font-size: 1rem;
}

.den26-weather-rain {
  font-size: 0.74rem;
}

/* DEN26 - HOMENET: крупный идентификатор домашней сети */
a[href="https://den26.ru"] {
  gap: 1.3rem;
}

a[href="https://den26.ru"]::after {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

a[href="https://den26.ru"] svg,
a[href="https://den26.ru"] img {
  width: 7.2rem !important;
  height: 7.2rem !important;
}

/* DEN26 - HOMENET: ресурсы в стиле погодного виджета */
.widget-container:has(.information-widget-resource) {
  width: min(100%, 51rem);
  max-width: 51rem;
  margin-top: 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(96, 165, 250, 0.30);
  border-radius: 0.85rem;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92),
    rgba(17, 24, 39, 0.86)
  );
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.widget-container:has(.information-widget-resource) > div {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.widget-container:has(.information-widget-resource)
  .information-widget-resource {
  min-width: 0 !important;
  margin-right: 0 !important;
  padding: 0.45rem 0.55rem !important;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.42);
}

.widget-container:has(.information-widget-resource) .resource-icon {
  width: 1.25rem !important;
  height: 1.25rem !important;
  color: #93c5fd !important;
}

.widget-container:has(.information-widget-resource)
  .information-widget-resource
  > div {
  min-width: 0 !important;
  margin-left: 0.6rem !important;
}

.widget-container:has(.information-widget-resource)
  .information-widget-resource
  .text-xs {
  font-size: 0.76rem !important;
  color: #e2e8f0 !important;
  font-variant-numeric: tabular-nums;
}

.widget-container:has(.information-widget-resource)
  .information-widget-resource
  .text-xs
  > div:first-child {
  color: #facc15 !important;
  font-size: 0.96rem;
  font-weight: 800;
}

.widget-container:has(.information-widget-resource)
  .information-widget-resource
  .text-xs
  > div:last-child {
  color: #94a3b8 !important;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.widget-container:has(.information-widget-resource)
  .resource-usage {
  height: 0.3rem !important;
  background: rgba(148, 163, 184, 0.18) !important;
}

.widget-container:has(.information-widget-resource)
  .resource-usage
  > div {
  height: 0.3rem !important;
  background: linear-gradient(90deg, #38bdf8, #facc15) !important;
}

@media (max-width: 640px) {
  .widget-container:has(.information-widget-resource) > div {
    grid-template-columns: 1fr;
  }
}

/* DEN26 - HOMENET: компактнее карточка прогноза */
.den26-weather-card {
  padding: 0.9rem 1.05rem;
}

.den26-weather-location {
  font-size: 1.05rem;
}

.den26-weather-description {
  font-size: 0.84rem;
}

.den26-weather-now-temp {
  font-size: 2.15rem;
}

.den26-weather-day-icon {
  font-size: 1.35rem;
}

.den26-weather-temperature {
  font-size: 0.9rem;
}

/* DEN26 - HOMENET: часы и дата в едином визуальном стиле */
.den26-time,
.den26-date {
  justify-content: center !important;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92),
    rgba(17, 24, 39, 0.86)
  );
}

.den26-time {
  min-width: 13rem;
  padding: 0.75rem 1rem 0.2rem;
  border: 1px solid rgba(96, 165, 250, 0.30);
  border-bottom: 0;
  border-radius: 0.85rem 0.85rem 0 0;
}

.den26-date {
  min-width: 13rem;
  padding: 0.12rem 1rem 0.65rem;
  border: 1px solid rgba(96, 165, 250, 0.30);
  border-top: 0;
  border-radius: 0 0 0.85rem 0.85rem;
}

.den26-time span {
  color: #facc15 !important;
  font-size: 2.1rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.den26-date span {
  color: #93c5fd !important;
  font-size: 0.76rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .den26-time,
  .den26-date {
    min-width: 11.5rem;
  }

  .den26-time span {
    font-size: 1.7rem !important;
  }
}

/* DEN26 - HOMENET: завершённая рамка верхней части часов */
.den26-time {
  border-bottom: 1px solid rgba(96, 165, 250, 0.30) !important;
}

/* DEN26 - HOMENET: более компактный идентификатор сети */
a[href="https://den26.ru"] {
  gap: 0.7rem;
}

a[href="https://den26.ru"]::after {
  font-size: 2rem;
  letter-spacing: 0.12em;
}

a[href="https://den26.ru"] svg,
a[href="https://den26.ru"] img {
  width: 3.6rem !important;
  height: 3.6rem !important;
}

/* DEN26 - HOMENET: время — самостоятельная карточка со скруглением снизу */
.den26-time {
  border-radius: 0.85rem !important;
  border-bottom: 1px solid rgba(96, 165, 250, 0.30) !important;
}

/* DEN26 - HOMENET: дата — самостоятельная карточка, как часы */
.den26-date {
  min-width: 13rem;
  padding: 0.55rem 1rem !important;
  border: 1px solid rgba(96, 165, 250, 0.30) !important;
  border-radius: 0.85rem !important;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92),
    rgba(17, 24, 39, 0.86)
  ) !important;
}

.den26-date span {
  color: #93c5fd !important;
  font-size: 1.5rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
