/* ===== Стили для внутренних страниц ===== */

/* ===== Хлебные крошки ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--muted);
  transition: .2s;
}
.breadcrumbs a:hover { color: var(--accent); }

.breadcrumbs span:last-child {
  color: var(--ink);
  font-weight: 600;
}

/* ===== Заголовок страницы ===== */
.page-hero {
  padding: 60px 0 80px;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(255,212,0,.10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero__title {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 900px;
}

.page-hero__text {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.page-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Активная ссылка в навигации */
.nav__link--active {
  color: var(--accent) !important;
}

/* ===== Преимущества / Что входит ===== */
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: .3s;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: .3s;
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.feature:hover::before { opacity: 1; }

.feature__icon {
  font-size: 44px;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(255,212,0,.25));
}

.feature__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.feature__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Timeline (этапы) ===== */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 900px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(255,212,0,0) 0%,
    rgba(255,212,0,.4) 10%,
    rgba(255,212,0,.4) 90%,
    rgba(255,212,0,0) 100%);
}

.timeline__item {
  position: relative;
  padding: 24px 0 24px 40px;
}

.timeline__num {
  position: absolute;
  left: -40px;
  top: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 20px rgba(255,212,0,.2);
  z-index: 2;
}

.timeline__content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: .3s;
}

.timeline__item:hover .timeline__content {
  border-color: rgba(255,212,0,.4);
  transform: translateX(6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}

.timeline__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.timeline__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.timeline__time {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,212,0,.1);
  border: 1px solid rgba(255,212,0,.3);
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Что вы получите ===== */
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.deliverable {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: .3s;
}

.deliverable:hover {
  border-color: rgba(255,212,0,.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.3);
}

.deliverable__icon {
  font-size: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(255,212,0,.2));
}

.deliverable__title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.deliverable__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Тарифы на проектирование ===== */
.price--flat {
  background: var(--card);
}

.pricing-note {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  padding: 20px 24px;
  background: rgba(255,212,0,.06);
  border: 1px solid rgba(255,212,0,.2);
  border-radius: 14px;
}

.pricing-note b {
  color: var(--accent);
}

/* ===== Секция-заголовок другой страницы ===== */
.section--pagetop {
  padding-top: 0;
}

/* ===== Адаптив ===== */
@media (max-width: 992px) {
  .page-hero__title { font-size: 42px; }
  .page-hero__text { font-size: 16px; }
  .deliverables { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .page-hero { padding: 40px 0 60px; }
  .page-hero__title { font-size: 32px; }
  .page-hero__text { font-size: 15px; margin-bottom: 28px; }

  .timeline { padding-left: 30px; }
  .timeline::before { left: 14px; }
  .timeline__num {
    left: -30px;
    width: 32px; height: 32px;
    font-size: 12px;
  }
  .timeline__item { padding-left: 24px; }
  .timeline__content { padding: 20px 22px; }
  .timeline__title { font-size: 17px; }
  .timeline__text { font-size: 14px; }

  .feature { padding: 26px 22px; }
  .feature__title { font-size: 18px; }
  .feature__icon { font-size: 36px; margin-bottom: 14px; }

  .deliverable { padding: 20px 22px; }
  .deliverable__icon { font-size: 30px; }
}
/* ===== Страница проекта ===== */

/* Лоадер в карусели */
.carousel__loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  width: 100%;
}

/* Карусель: карточки-ссылки */
.carousel__item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Hero проекта */
.project-hero {
  position: relative;
}

.project-hero__badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--accent-deep);
  color: var(--accent-deep);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 20px;
}

.project-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin-bottom: 36px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.project-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-hero__meta-item span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.project-hero__meta-item b {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

/* Раскладка: текст + боковая панель */
.project-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.project-fulltext {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-layout__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.project-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.project-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.project-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Параметры */
.project-card__list--params li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.project-card__list--params li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.project-card__list--params li::before { display: none; }

.project-card__list--params li span {
  color: var(--muted);
  font-size: 13px;
}

.project-card__list--params li b {
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  text-align: right;
}

.project-card__list--params li b.accent {
  color: var(--accent-deep);
  font-size: 16px;
}

/* Отзыв клиента */
.project-review {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 40px 48px;
  background: var(--card);
  border: 1px solid rgba(217,164,4,.35);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(23,20,16,.12);
}

.project-review__quote {
  position: absolute;
  top: 10px;
  left: 24px;
  font-size: 80px;
  color: var(--accent);
  opacity: .2;
  font-family: Georgia, serif;
  line-height: 1;
}

.project-review__text {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.project-review__author {
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 15px;
  text-align: right;
}

/* Адаптив */
@media (max-width: 992px) {
  .project-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .project-layout__aside {
    position: static;
  }
}

@media (max-width: 768px) {
  .project-hero__meta {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }
  .project-hero__meta-item b { font-size: 18px; }

  .project-review {
    padding: 30px 26px;
  }
  .project-review__text { font-size: 16px; }
  .project-review__quote { font-size: 60px; }
}
/* =========================================================
   КОНТЕНТ-БЛОКИ СТРАНИЦЫ ОБЪЕКТА
   ========================================================= */

.content-blocks {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 820px;
}

.cb {
  position: relative;
}

/* ----- Заголовок ----- */
.cb--heading { margin-bottom: 4px; }

.cb-heading__title {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.cb-heading__subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

/* ----- Текст ----- */
.cb--text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.cb--text p { margin-bottom: 14px; }
.cb--text p:last-child { margin-bottom: 0; }

.cb--text h2,
.cb--text h3 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 24px 0 12px;
}
.cb--text h2 { font-size: 24px; }
.cb--text h3 { font-size: 20px; }

.cb--text strong { color: var(--ink); font-weight: 700; }
.cb--text em { color: var(--ink); }

.cb--text a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cb--text a:hover { color: var(--accent-dk); }

.cb--text ul,
.cb--text ol {
  margin: 12px 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cb--text ul { list-style: disc; }
.cb--text ol { list-style: decimal; }
.cb--text li { line-height: 1.6; }

.cb--text blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  border-left: 3px solid var(--accent-deep);
  background: #FBF6E4;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* ----- Изображение ----- */
.cb--image {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}

.cb--image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 560px;
  object-fit: cover;
}

.cb--image figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
  background: #FAF8F2;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ----- Галерея ----- */
.cb--gallery {
  display: grid;
  gap: 12px;
}

.cb--gallery-1 { grid-template-columns: 1fr; }
.cb--gallery-2 { grid-template-columns: repeat(2, 1fr); }
.cb--gallery-3 { grid-template-columns: repeat(3, 1fr); }
.cb--gallery-many {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.cb-gallery__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 4 / 3;
  transition: .3s;
}
.cb-gallery__item:hover {
  border-color: rgba(255,212,0,.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}

.cb-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cb-gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 10px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  font-weight: 600;
}

/* ----- Характеристики ----- */
.cb--specs {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
}

.cb-specs__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 32px;
}

.cb-specs__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cb-specs__row:last-child { border-bottom: none; padding-bottom: 0; }

.cb-specs__row dt {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.cb-specs__row dd {
  font-size: 17px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* ----- Цитата ----- */
.cb--quote {
  position: relative;
  padding: 32px 36px 32px 60px;
  background: var(--card);
  border: 1px solid rgba(217,164,4,.35);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(23,20,16,.12);
}

.cb-quote__mark {
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 84px;
  line-height: 1;
  color: var(--accent);
  opacity: .25;
  font-family: Georgia, serif;
  font-weight: 700;
}

.cb-quote__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cb-quote__author {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  text-align: right;
  font-style: normal;
}

/* ----- Выноска (callout) ----- */
.cb--callout {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  border-left: 4px solid;
  align-items: flex-start;
}

.cb-callout__icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.2;
}

.cb-callout__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Информация */
.cb-callout--info {
  background: #EBF3FE;
  border-left-color: #7dc8ff;
}
.cb-callout--info .cb-callout__text { color: #2B5EA7; }

/* Предупреждение */
.cb-callout--warning {
  background: #FDF1E3;
  border-left-color: #ffb26b;
}
.cb-callout--warning .cb-callout__text { color: #8A5A1D; }

/* Успех */
.cb-callout--success {
  background: #E9F9F0;
  border-left-color: #6ee7a7;
}
.cb-callout--success .cb-callout__text { color: #1E7A4B; }

/* ----- CTA ----- */
.cb--cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* ----- Адаптив ----- */
@media (max-width: 700px) {
  .content-blocks { gap: 24px; }

  .cb-heading__title { font-size: 24px; }
  .cb-heading__subtitle { font-size: 15px; }

  .cb--text { font-size: 15px; }
  .cb--text h2 { font-size: 20px; }
  .cb--text h3 { font-size: 17px; }

  .cb--specs { padding: 20px; }
  .cb-specs__list { grid-template-columns: 1fr; gap: 12px; }

  .cb--quote {
    padding: 24px 22px 24px 44px;
  }
  .cb-quote__mark { font-size: 60px; left: 14px; top: 4px; }
  .cb-quote__text { font-size: 16px; }

  .cb--callout { padding: 14px 16px; gap: 12px; }
  .cb-callout__icon { font-size: 18px; }
  .cb-callout__text { font-size: 14px; }

  .cb--gallery-2,
  .cb--gallery-3 { grid-template-columns: repeat(2, 1fr); }
  .cb--gallery-many { grid-template-columns: 1fr; }

  .cb--cta .btn { width: 100%; }
}
/* =========================================================
   СОСТАВ ПРОЕКТА (внутри design.html)
   ========================================================= */

/* Карточки состава */
.comp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: .3s;
  position: relative;
  overflow: hidden;
}
.comp-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: .3s;
}
.comp-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.comp-card:hover::before { opacity: 1; }

.comp-card__icon {
  font-size: 40px;
  margin-bottom: 18px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(255,212,0,.2));
}
.comp-card__title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.comp-card__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Аккордеон */
.comp-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.comp-acc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: .3s;
}
.comp-acc[open] {
  border-color: rgba(255,212,0,.4);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.comp-acc__head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  transition: .25s;
  user-select: none;
}
.comp-acc__head::-webkit-details-marker { display: none; }
.comp-acc__head:hover {
  background: rgba(255,212,0,.04);
}
.comp-acc[open] .comp-acc__head {
  border-bottom: 1px solid var(--border);
}

.comp-acc__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  flex-shrink: 0;
  width: 32px;
}

.comp-acc__title {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.comp-acc__arrow {
  font-size: 16px;
  color: var(--muted);
  transition: transform .3s;
  flex-shrink: 0;
}
.comp-acc[open] .comp-acc__arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.comp-acc__body {
  padding: 24px 28px 28px;
  animation: accFade .3s ease;
}
@keyframes accFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.comp-acc__lead {
  font-size: 15px;
  color: #c8c8c8;
  line-height: 1.7;
  margin-bottom: 22px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.comp-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: #d0d0d0;
  line-height: 1.6;
}
.comp-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}
.comp-list li b {
  color: #fff;
  font-weight: 700;
}

.comp-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,212,0,.06);
  border: 1px solid rgba(255,212,0,.25);
  border-radius: 12px;
  flex-wrap: wrap;
}
.comp-price__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comp-price__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.comp-price__note {
  font-size: 13px;
  color: var(--muted);
}

/* Адаптив */
@media (max-width: 900px) {
  .comp-acc__head {
    padding: 18px 20px;
    gap: 14px;
  }
  .comp-acc__num { width: 24px; font-size: 12px; }
  .comp-acc__title { font-size: 16px; }
  .comp-acc__body { padding: 20px 20px 24px; }

  .comp-list li { font-size: 14px; }

  .comp-price { padding: 14px 16px; }
  .comp-price__value { font-size: 18px; }
}
/* =========================================================
   ЛОНГРИД: ПРОЕКТИРОВАНИЕ (СТИЛЬ ДОКУМЕНТАЦИИ)
   ========================================================= */

.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 20px;
}

/* --- Сайдбар (Оглавление) --- */
.docs-sidebar {
  position: sticky;
  top: 100px;
}

.docs-nav {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.docs-nav__title {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.docs-nav__link {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: .2s;
}
.docs-nav__link:last-child { border-bottom: none; }
.docs-nav__link:hover {
  color: var(--accent-deep);
  padding-left: 6px;
}

/* --- Контент --- */
.docs-content {
  max-width: 800px;
}

.doc-section {
  margin-bottom: 60px;
  scroll-margin-top: 100px; /* Чтобы при клике по меню заголовок не уходил под шапку */
}

.doc-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

.doc-text {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

.doc-list {
  margin: 20px 0 24px 24px;
  list-style: disc;
}
.doc-list li {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* --- Заглушки для картинок --- */
.doc-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FAF8F2;
  border: 2px dashed rgba(217,164,4,.35);
  border-radius: 16px;
  padding: 40px 20px;
  margin: 24px 0;
  text-align: center;
  color: var(--muted);
  transition: .3s;
}
.doc-image-placeholder:hover {
  background: #F6F2E7;
  border-color: var(--accent-deep);
}
.doc-image-placeholder span {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}
.doc-image-placeholder small {
  font-size: 13px;
  opacity: 1;
  display: block;
  width: 100%;
}
.doc-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
  margin: 24px 0;
}

/* --- Таблицы --- */
.doc-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

.doc-table th {
  background: #F7F5EF;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.doc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.doc-table tbody tr:last-child td { border-bottom: none; }
.doc-table tbody tr:hover { background: rgba(255,212,0,0.03); }

/* --- Адаптив --- */
@media (max-width: 992px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .docs-sidebar {
    position: static;
  }
  .docs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
  }
  .docs-nav__title {
    width: 100%;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .docs-nav__link {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
  }
  .docs-nav__link:hover { padding-left: 12px; }
  .doc-title { font-size: 22px; }
}
/* =========================================================
   ОТКЛЮЧАЕМ РАМКИ И ПОДСВЕТКУ ДЛЯ ФАЙЛОВ НА СТРАНИЦЕ ПРОЕКТИРОВАНИЯ
   ========================================================= */

/* 1. Убираем рамку, фон и внутренние отступы у контейнеров с файлами */
.doc-image-placeholder,
.doc-image {
  border: none !important;        /* Убираем пунктирную рамку */
  background: transparent !important; /* Убираем серый фон */
  box-shadow: none !important;    /* Убираем тени, если были */
  padding: 0 !important;          /* Убираем лишние отступы внутри */
  margin: 30px 0 !important;      /* Оставляем аккуратный отступ сверху и снизу */
}

/* 2. Отключаем эффект при наведении (подсветку) */
.doc-image-placeholder:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* =========================================================
   СТРАНИЦА «УПРАВЛЕНИЕ СО СМАРТФОНА»: ЭКОСИСТЕМЫ В IPHONE
   4 сервиса друг под другом: iPhone с экраном приложения
   + описание, стороны чередуются.
   Экраны — адаптации реальных UI: Apple Home, Яндекс Home,
   sprut.hub, тёмный дашборд статусов (удалённый доступ)
   ========================================================= */

/* --- Дополнения к .eco-rows (базовые стили — в style.css) --- */

/* Свечение за телефоном позиционируем относительно колонки */
.eco-row__media { position: relative; }

/* Мягкое жёлтое свечение за телефоном (как в hero) */
.eco-row__media::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 212, 0, .10), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

/* Телефон в рядах не «плавает» (плавание — только на главной) */
.eco-row__media .iphone {
  position: relative;
  z-index: 1;
  animation: none;
}

/* Текстовая колонка не растягивается на всю ширину */
.eco-row__text { max-width: 480px; }

/* Оригинальные логотипы вместо эмодзи (Apple, Google и т.п.) */
.eco-row__icon--img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 212, 0, .25));
}

/* --- Базовый «экран приложения» внутри iPhone --- */
.scr {
  position: relative;
  z-index: 20;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 0 18px;
  overflow: hidden;
}

/* Контент экрана не сжимается при нехватке высоты (иначе строки «течёт») */
.scr > * { flex-shrink: 0; }

.scr--remote { padding-bottom: 10px; }

/* Плавная смена текста (JS-анимации) */
.scr-fade { transition: opacity .3s ease; }

/* Фоны-приложения (слой обоев под контентом) */
.iphone__wallpaper--yandex {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(139, 92, 246, .28), transparent 55%),
    linear-gradient(180deg, #181226 0%, #100c1a 55%, #0b0812 100%);
  filter: none;
  transform: none;
}

.iphone__wallpaper--sprut {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(34, 211, 238, .12), transparent 50%),
    linear-gradient(180deg, #10161b 0%, #0a0f13 60%, #070b0e 100%);
  filter: none;
  transform: none;
}

.iphone__wallpaper--remote {
  background:
    radial-gradient(ellipse at 80% 15%, rgba(96, 120, 255, .14), transparent 55%),
    linear-gradient(180deg, #101014 0%, #0a0a0d 60%, #060608 100%);
  filter: none;
  transform: none;
}

/* =========================================================
   ЭКРАН 1: APPLE HOME (по референсу Home/Cameras/Scenes/Main)
   ========================================================= */

/* Обои «утро»: голубое небо сверху, янтарное свечение снизу */
.iphone__wallpaper--home {
  background:
    radial-gradient(ellipse at 25% 0%, rgba(255, 255, 255, .38), transparent 52%),
    linear-gradient(180deg, #9fb6c6 0%, #b7c5cd 32%, #d8c9b4 58%, #e9bd82 80%, #d9974f 100%);
  filter: none;
  transform: none;
}

/* Статус-бар на светлом небе — тёмный */
.scr--home .iphone__status { color: #2b2b2e; text-shadow: none; }

/* Кнопки + и ⋮ — единая матовая пилюля справа сверху */
.ah-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 18px 2px;
}

.ah-actions__pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .32);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
}

.ah-actions__pill i {
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  font-style: normal;
}

.ah-actions__pill i + i { border-left: 1px solid rgba(255, 255, 255, .32); }

/* Заголовок Home + статус справа (2 строки с молнией) */
.ah-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 0 22px 6px;
}

.ah-title > b {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.ah-title__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  padding-top: 3px;
}

.ah-title__meta b {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.ah-title__meta span {
  font-size: 9.5px;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

/* Чипы категорий: цветная круглая иконка + 2 строки, матовое стекло */
.ah-chips {
  display: flex;
  gap: 8px;
  padding: 0 18px 7px;
  overflow: hidden;
}

.ah-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 5px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .32);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .34);
  flex-shrink: 0;
}

.ah-chip__ico {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.ah-chip__ico svg { display: block; }

.ah-chip__ico--blue   { background: #5ac8fa; }
.ah-chip__ico--yellow { background: #ffcc00; }
.ah-chip__ico--teal   { background: #64d2b8; }
.ah-chip__ico--grey   { background: #9d9da3; }

.ah-chip__info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ah-chip__info b {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .20);
}

.ah-chip__info span {
  font-size: 9.5px;
  color: rgba(255, 255, 255, .90);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .20);
}

/* Подзаголовки секций: Камеры › / Сцены › / Освещение › */
.ah-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .30);
}

.ah-label span { font-size: 16px; opacity: .6; font-weight: 400; }

/* Сетка камер: большая слева, две малые справа */
.ah-cams {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 52px 52px;
  gap: 6px;
  padding: 0 18px 6px;
}

.ah-cam {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.ah-cam:first-child { grid-row: 1 / 3; }

/* Двор: газон, деревья, забор, клумба */
.ah-cam--yard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46px 62px at 15% 102%, #7b4e93 0 26%, transparent 60%),
    radial-gradient(90px 48px at 62% 86%, #82d06e 0 40%, transparent 70%),
    radial-gradient(46px 34px at 78% 15%, #3f7c3b 0 45%, transparent 70%),
    radial-gradient(38px 28px at 57% 6%, #4d8c47 0 45%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(140, 92, 58, .95) 0 3px, rgba(168, 118, 78, .95) 3px 7px, transparent 7px 13px),
    linear-gradient(180deg, #c2d9ea 0 44%, transparent 44%),
    linear-gradient(180deg, transparent 38%, #5ea653 38% 100%);
}

/* Подъездная дорога с разметкой */
.ah-cam--drive::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 34%, #a7adb3 34% 64%, transparent 64%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .10) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #aecbe0 0 40%, #6f9a5f 40% 58%, #90969c 58% 100%);
}

/* Крыльцо: стена, окно, цветущий куст */
.ah-cam--porch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(22px 22px at 80% 58%, #d98bb2 0 30%, transparent 60%),
    radial-gradient(18px 18px at 66% 72%, #c97ba2 0 30%, transparent 60%),
    radial-gradient(34px 30px at 78% 66%, #4c8a46 0 45%, transparent 75%),
    linear-gradient(90deg, #e9e5dd 0 36%, #2c2c31 36% 54%, #ded7cb 54% 100%),
    linear-gradient(180deg, #a3bccb 0 26%, #93a894 26% 100%);
}

.ah-cam i {
  position: absolute;
  top: 6px;
  left: 7px;
  z-index: 2;
  font-style: normal;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Сцены: тёмные матовые пилюли */
.ah-scenes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px 6px;
}

.ah-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  border-radius: 999px;
  background: rgba(32, 30, 28, .52);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .10);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  transition: .4s;
  white-space: nowrap;
  overflow: hidden;
}

.ah-scene > svg { flex-shrink: 0; }

.ah-scene.is-active {
  background: rgba(255, 255, 255, .28);
  border-color: rgba(255, 255, 255, .45);
}

/* Плитки света 2 колонки */
.ah-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 18px 62px;
}

.ah-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 20px;
  background: #fdfcfa;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
  transition: .4s;
  min-height: 42px;
}

.ah-tile__ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6e6ea;
  color: #9a9aa0;
  flex-shrink: 0;
  transition: .4s;
}

.ah-tile__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  overflow: hidden;
}

.ah-tile__info b {
  font-size: 12.5px;
  font-weight: 600;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ah-tile__info span { font-size: 11px; color: #8e8e93; }

/* Включено — жёлтая иконка, как в Apple Home */
.ah-tile.is-on .ah-tile__ico { background: #ffd60a; color: #fff; }

/* Таббар — матовая светлая панель, как в референсе */
.ah-tabbar {
  position: absolute;
  bottom: 18px;
  left: 14px;
  right: 14px;
  z-index: 25;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 24px;
  background: rgba(248, 246, 243, .78);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.ah-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 4px 6px;
  border-radius: 19px;
  color: #77777c;
  font-size: 9px;
  font-weight: 600;
}

.ah-tab--active {
  background: rgba(255, 255, 255, .95);
  color: #1c1c1e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

/* =========================================================
   ЭКРАН 2: ЯНДЕКС HOME (по референсу «Мой дом», тёмная тема)
   ========================================================= */

/* Шапка: Мой дом ⌄ + справа ⚙ и ＋ */
.yx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 18px 10px;
}

.yx-head__title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.yx-head__actions { display: flex; gap: 8px; }

.yx-head__btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 13px;
}

/* Баннеры-скидки (горизонтальный ряд) */
.yx-banners {
  display: flex;
  gap: 8px;
  padding: 0 18px 10px;
}

.yx-banner {
  flex: 1 1 0;
  min-width: 0;
  height: 54px;
  border-radius: 16px;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  position: relative;
}

.yx-banner b {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.yx-banner--call {
  background:
    radial-gradient(50px 40px at 80% 15%, rgba(255, 255, 255, .25), transparent),
    linear-gradient(150deg, #38bdf8, #2563eb);
}

.yx-banner--cinema {
  background:
    radial-gradient(50px 40px at 20% 20%, rgba(255, 140, 60, .5), transparent),
    linear-gradient(150deg, #3b2a4d, #1b1524);
}

.yx-banner--plus {
  background:
    radial-gradient(50px 40px at 75% 20%, rgba(255, 255, 255, .28), transparent),
    linear-gradient(150deg, #fbbf24, #ea580c);
}

/* Вкладки: Избранное Все Спальня Сценарии */
.yx-tabs {
  display: flex;
  gap: 14px;
  padding: 0 20px 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .45);
}

.yx-tab { transition: .35s; cursor: default; }

.yx-tab.is-active { color: #fff; }

/* Карточки комнат: Гостиная / Детская */
.yx-rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px 12px;
}

.yx-room {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px) saturate(150%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yx-room b {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.yx-room span { font-size: 11.5px; color: rgba(255, 255, 255, .80); }

/* Плитки устройств 2×2 + плитка-добавление */
.yx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px;
}

.yx-tile {
  min-height: 72px;
  border-radius: 18px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: .35s;
}

.yx-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yx-tile__ico { font-size: 19px; }

.yx-tile__body { display: flex; flex-direction: column; line-height: 1.25; }

.yx-tile__body small { font-size: 10px; color: rgba(255, 255, 255, .55); }

.yx-tile__body b {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Тоггл на плитке */
.yx-toggle {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  transition: .35s;
  flex-shrink: 0;
}

.yx-toggle i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .35s;
}

.yx-toggle.is-on { background: #34c759; }

.yx-toggle.is-on i { transform: translateX(14px); }

/* Плитка «добавить устройство» */
.yx-add {
  display: grid;
  place-items: center;
  border: 1.5px dashed rgba(255, 255, 255, .22);
  border-radius: 18px;
  color: rgba(255, 255, 255, .6);
  font-size: 24px;
  min-height: 72px;
}

/* Плавающая кнопка Алисы (фиолетовый круг с треугольником) */
.yx-alice {
  margin: auto auto 10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, #c084fc, #7c3aed 70%);
  box-shadow: 0 8px 24px rgba(124, 58, 237, .55);
  display: grid;
  place-items: center;
  position: relative;
  font-size: 0;
}

.yx-alice::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}

.yx-alice::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(168, 130, 250, .70);
  animation: scrRing 2.2s ease-out infinite;
}

@keyframes scrRing {
  0%   { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Вращение вентилятора (Охлаждение) */
@keyframes yxSpin {
  to { transform: rotate(360deg); }
}

.yx-tile__ico--spin { display: inline-block; animation: yxSpin 3.2s linear infinite; }

/* =========================================================
   ЭКРАН 3: SPRUT.HUB (по референсу «Мой дом»)
   ========================================================= */

/* Шапка: ⬡ Мой дом ⌄ + справа иконки */
.sh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 18px 10px;
}

.sh-head__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.sh-head__title i { font-style: normal; color: #22d3ee; font-size: 14px; }

.sh-head__actions { display: flex; gap: 7px; }

.sh-head__btn {
  height: 28px;
  min-width: 28px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .85);
  font-size: 11.5px;
  font-weight: 700;
}

.sh-head__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 7px rgba(74, 222, 128, .9);
}

/* Список комнат (перебор активной — JS) */
.sh-rooms {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px 12px;
}

.sh-room {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .04);
  border-left: 3px solid transparent;
  transition: .35s;
}

.sh-room.is-active {
  background: rgba(34, 211, 238, .10);
  border-left-color: #22d3ee;
}

.sh-room__ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: rgba(255, 255, 255, .08);
  flex-shrink: 0;
}

.sh-room b {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-room span { font-size: 11px; color: rgba(255, 255, 255, .45); }

/* Плитка камеры */
.sh-cam {
  position: relative;
  margin: 0 18px 10px;
  border-radius: 16px;
  overflow: hidden;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, .09);
  background:
    radial-gradient(90px 46px at 68% 42%, rgba(52, 120, 60, .85) 0 35%, transparent 60%),
    radial-gradient(120px 40px at 30% 78%, rgba(74, 124, 58, .8) 0 40%, transparent 65%),
    linear-gradient(180deg, #7fa8c8 0 42%, #557f43 42% 72%, #6b5a3d 72%);
}

.sh-cam::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px);
}

.sh-cam__rec {
  position: absolute;
  top: 7px;
  right: 9px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #ff5b5b;
}

.sh-cam__rec i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b5b;
  animation: scrBlink 1.3s ease-in-out infinite;
}

.sh-cam__name {
  position: absolute;
  bottom: 7px;
  left: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

/* Виджет погоды */
.sh-weather {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 18px 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .06);
}

.sh-weather__ico { font-size: 26px; }

.sh-weather__info { display: flex; flex-direction: column; line-height: 1.3; }

.sh-weather__info small { font-size: 9.5px; color: rgba(255, 255, 255, .55); }

.sh-weather__info b {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.sh-weather__side {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, .75);
}

/* Быстрые приложения */
.sh-apps {
  display: flex;
  gap: 8px;
  padding: 0 18px 12px;
}

.sh-app {
  flex: 1;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 17px;
  border: 1px solid rgba(255, 255, 255, .10);
}

.sh-app--red    { background: linear-gradient(150deg, #e50914, #831010); }
.sh-app--green  { background: linear-gradient(150deg, #1db954, #0e6b30); }
.sh-app--grey   { background: linear-gradient(150deg, #3a3a3f, #1c1c20); }
.sh-app--blue   { background: linear-gradient(150deg, #38bdf8, #1d4ed8); }

/* Статус хаба снизу */
.sh-note {
  margin: auto 18px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, .55);
}

.sh-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 7px rgba(74, 222, 128, .9);
  animation: scrBlink 1.8s ease-in-out infinite;
}

/* Мигание точек (REC, статусы) */
@keyframes scrBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

/* =========================================================
   ЭКРАН 4: ТЁМНЫЙ ДАШБОРД СТАТУСОВ «КУХНЯ» (удалённый доступ)
   ========================================================= */

/* Верхний ряд иконок-вкладок комнат */
.rm-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px 6px;
  overflow: hidden;
}

.rm-tab {
  font-size: 15px;
  opacity: .45;
  position: relative;
  padding-bottom: 5px;
  flex-shrink: 0;
  transition: .35s;
}

.rm-tab.is-active { opacity: 1; }

.rm-tab.is-active::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px;
  background: #f5f5f7;
}

.rm-tabs__more {
  margin-left: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: 2px;
}

/* Заголовок: иконка в круге + «Кухня» */
.rm-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 6px;
}

.rm-title__ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: #2f7de1;
  flex-shrink: 0;
}

.rm-title b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

/* Строка ОБЗОР + климат справа */
.rm-ov {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 6px;
}

.rm-ov__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  color: rgba(255, 255, 255, .85);
}

.rm-ov__label i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .85);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 8px;
}

.rm-ov__clima {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
}

/* Плитки датчиков 2 колонки */
.rm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 18px 8px;
}

.rm-tile {
  border-radius: 16px;
  padding: 9px 11px;
  background: #17171b;
  border: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: .35s;
}

.rm-tile.is-active {
  background: #1d1d23;
  box-shadow: 0 0 0 1.5px rgba(255, 212, 0, .55);
}

.rm-tile__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-tile__ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

.rm-tile__ico--orange { background: #f97316; }
.rm-tile__ico--teal   { background: #14b8a6; }
.rm-tile__ico--violet { background: #8b5cf6; }
.rm-tile__ico--red    { background: #ef4444; }

.rm-tile__head b {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.rm-tile__sub { font-size: 9.5px; color: rgba(255, 255, 255, .55); }

/* Степпер − 30,0° + */
.rm-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-stepper button {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: none;
  background: #2a2a30;
  color: #fff;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.rm-stepper span {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #2a2a30;
  border-radius: 8px;
  padding: 4px 0;
}

/* Кнопки штор: вверх стоп вниз */
.rm-shutters {
  display: flex;
  gap: 6px;
}

.rm-shutters button {
  flex: 1;
  height: 24px;
  border-radius: 8px;
  border: none;
  background: #2a2a30;
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

/* Медиаплеер */
.rm-media {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 6px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #17171b;
  border: 1px solid rgba(255, 255, 255, .05);
}

.rm-media__ico { font-size: 15px; }

.rm-media b {
  flex: 1;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-media__play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}

/* Освещение: заголовок + режимы */
.rm-light {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 6px;
}

.rm-light__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  color: rgba(255, 255, 255, .85);
}

.rm-light__state { font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, .55); }

.rm-modes {
  display: flex;
  gap: 6px;
  padding: 0 18px 9px;
}

.rm-mode {
  flex: 1;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: #17171b;
  color: rgba(255, 255, 255, .75);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: .35s;
}

.rm-mode.is-active {
  background: #232329;
  border-color: rgba(255, 212, 0, .65);
  color: #ffd400;
  box-shadow: 0 0 12px rgba(255, 212, 0, .18);
}

/* Нижние две широкие плитки: Споты / Лента */
.rm-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px 22px;
}

.rm-wide {
  border-radius: 16px;
  padding: 9px 11px;
  background: #17171b;
  border: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: .35s;
}

.rm-wide.is-active {
  background: #1d1d23;
  box-shadow: 0 0 0 1.5px rgba(255, 212, 0, .55);
}

.rm-wide__ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: #2a2a30;
  flex-shrink: 0;
}

.rm-wide--on { background: #f5c518; }

.rm-wide--on .rm-wide__ico { background: rgba(0, 0, 0, .18); }

.rm-wide__info { display: flex; flex-direction: column; line-height: 1.25; }

.rm-wide__info b { font-size: 11.5px; font-weight: 700; color: #fff; }

.rm-wide--on .rm-wide__info b { color: #1c1c1e; }

.rm-wide__info span { font-size: 10px; color: rgba(255, 255, 255, .55); }

.rm-wide--on .rm-wide__info span { color: rgba(0, 0, 0, .55); }

/* --- Мобильная версия: центрируем текст, уменьшаем свечение --- */
@media (max-width: 900px) {
  .eco-row__text { max-width: 560px; margin: 0 auto; text-align: center; }
  .eco-row__list { text-align: left; }
  .eco-row__media::before { width: 320px; height: 320px; }
}

/* --- Уменьшаем движение по системной настройке --- */
@media (prefers-reduced-motion: reduce) {
  .yx-alice::after,
  .yx-tile__ico--spin,
  .sh-cam__rec i,
  .sh-note i { animation: none !important; }
}

/* ===== «О нас»: логотип перелетает из шапки, увеличивается и закрепляется ===== */
.logo-intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}
.logo-intro img {
  position: absolute;
  left: 0;
  top: 0;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.65));
  transition: transform 1.25s cubic-bezier(.22,.9,.26,1);
  will-change: transform, left, top;
}
/* второй этап: плавное приземление в слот под меню */
.logo-intro.is-pinned img {
  transition: transform .9s ease;
}
/* Слот приземления: раскрывается в потоке страницы, текст опускается ниже */
.logo-landing {
  height: 0;
  overflow: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height .9s ease, opacity .55s ease .4s;
}
.logo-landing.is-open { height: 270px; opacity: 1; }
.logo-landing img { height: 200px; width: auto; display: block; }
@media (max-width: 768px) {
  .logo-landing.is-open { height: 190px; }
  .logo-landing img { height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-intro { display: none; }
}
