/* =============================================================
   CarbonFin — komponent stillari (look main.css dan keladi)
   Bu yerda faqat SAQLANADIGAN funksiyalar: server-qidiruv
   dropdown'i + kontakt/auth forma + intl-tel-input.
   Hammasi CarbonFin :root o'zgaruvchilari orqali marun rangga
   bo'ysunadi.
   ============================================================= */

/* CarbonFin palitrasiga moslovchi qo'shimcha o'zgaruvchilar
   (ko'chirilgan shablon stillari --accent / --soft-2 ishlatadi) */
:root {
  --accent: var(--primary-bright, #9e1f29);
  --soft-2: var(--soft, #f5eceb);
}

/* ---- WP admin-bar bilan fixed topnav mos kelishi (bo'sh joy muammosi) ---- */
/* WP kirgan foydalanuvchiga html margin-top:32px qo'shadi, fixed .g7-topnav
   esa top:0 da qolib admin-bar ostida bo'sh joy hosil qiladi. Offset beramiz. */
body.admin-bar .g7-topnav {
  top: 32px;
}
body.admin-bar .site-header {
  top: 72px;
}
body.admin-bar .g7-panel {
  top: 72px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .g7-topnav {
    top: 46px;
  }
  body.admin-bar .site-header {
    top: 86px;
  }
  body.admin-bar .g7-panel {
    top: 86px;
  }
}

/* ---- Input fokus (forma) ---- */
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
}
textarea {
  font-family: inherit;
}

/* ---- intl-tel-input (telefon maydoni) ---- */
.iti {
  width: 100%;
}
.iti__flag {
  background-image: image-set('../intl-tel-input/img/flags.webp' 1x, '../intl-tel-input/img/flags@2x.webp' 2x);
}
.iti__search-input {
  margin: 0 !important;
  padding-left: 34px !important;
}

/* =============================================================
   SERVER-QIDIRUV DROPDOWN (search.js yaratadi: .search-results)
   ============================================================= */
.sr-only {
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
}
.search-results {
  width: min(440px, calc(100vw - 24px));
  color: var(--ink, #321015);
  background: #fff;
  border: 1px solid rgba(74, 15, 22, 0.09);
  border-radius: 14px;
  padding: 12px 12px 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 60px rgba(50, 16, 21, 0.20);
  z-index: 300;
}
/* Нос (стрелка вверх) */
.search-results::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 3px;
  border-left: 1px solid rgba(74, 15, 22, 0.09);
  border-top: 1px solid rgba(74, 15, 22, 0.09);
}
.search-results-head {
  color: var(--muted, #785e61);
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 10px;
  display: flex;
}
.search-results-head > span {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  font-size: 14px;
}
.search-results-head small {
  color: var(--muted, #785e61);
  font-size: 14px;
}

/* Карточка результата (светло-розовая) */
.search-results > a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #faf0ef;
  border: 1px solid rgba(158, 31, 41, 0.10);
  border-radius: 11px;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: background 0.15s, border-color 0.15s;
}
.search-results > a:hover,
.search-results > a.active {
  background: #f6e1df;
  border-color: rgba(158, 31, 41, 0.28);
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.search-result-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(158, 31, 41, 0.12);
  color: var(--primary-bright, #9e1f29);
  display: grid;
  place-items: center;
}
.search-result-icon .sc-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.search-result-icon svg {
  width: 20px;
  height: 20px;
}
.search-result-body {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.search-result-body b {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink, #321015);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-body small {
  color: var(--primary-bright, #9e1f29);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  font-weight: 700;
}
.search-result-body em {
  color: var(--muted, #785e61);
  font-size: 14px;
  font-style: normal;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result > i {
  font-size: 16px;
  font-style: normal;
  color: var(--primary-bright, #9e1f29);
  flex: 0 0 auto;
  transition: transform 0.15s;
}
.search-results > a:hover > i,
.search-results > a.active > i {
  transform: translateX(3px);
}
.search-results mark {
  background: transparent;
  color: var(--primary-bright, #9e1f29);
  padding: 0;
  font-weight: 700;
}
.search-empty {
  border-top: 1px solid var(--line, #4a0f1629);
  gap: 4px;
  padding: 14px 10px;
  display: grid;
}
.search-empty b {
  font-size: 16px;
}
.search-empty span {
  color: var(--muted, #785e61);
  font-size: 14px;
}
.search-empty > i {
  border: 2px solid var(--line, #4a0f1629);
  border-top-color: var(--primary, #6b0b12);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  animation: search-spin 0.7s linear infinite;
}
.search-error b {
  color: #a33b35;
}
@keyframes search-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Нижняя подсказка с кнопками-клавишами */
.search-help {
  color: var(--muted, #785e61);
  border-top: 1px solid rgba(74, 15, 22, 0.07);
  gap: 18px;
  padding: 10px 4px 2px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.search-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.search-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f3efee;
  border: 1px solid rgba(74, 15, 22, 0.12);
  box-shadow: 0 1px 0 rgba(74, 15, 22, 0.10);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink, #321015);
  line-height: 1;
}

@media (max-width: 1180px) {
  /* header-tools (desktop search) скрыт <=1180px — dropdown живёт внутри mobile-menu.
     Остаётся absolute под полем ввода (не оверлей поверх хедера) и выравнивается
     по всей ширине поля. */
  .mobile-menu .smart-search {
    width: 100%;
  }
  .search-results {
    width: auto;
    left: 0;
    right: 0;
    transform: none;
    max-height: calc(100vh - 120px);
    top: calc(100% + 8px);
  }
  .search-results::before {
    display: none;
  }
  .search-result-body b,
  .search-result-body em {
    white-space: normal;
  }
}

/* =============================================================
   KONTAKT / AUTH FORMA (.form -> form.js -> Bitrix24)
   ============================================================= */
.access-section {
  background: var(--paper, #fffdf9);
  grid-template-columns: 1fr 0.85fr;
  align-items: start;
  gap: 64px;
  display: grid;
  max-width: var(--max, 1360px);
  margin: auto;
  padding: 90px 30px;
}
.access-copy .section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-bright, #9e1f29);
  font-size: 16px;
  font-weight: 700;
}
.access-copy__title {
  letter-spacing: -0.03em;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 18px 0 0;
  color: var(--ink, #321015);
}
.access-copy__description {
  color: var(--muted, #785e61);
  font-size: 20px;
  line-height: 1.7;
  max-width: 590px;
  margin: 22px 0 0;
}

.contact-card {
  background: var(--soft-2, #f5eceb);
  border-top: 4px solid var(--primary, #6b0b12);
  box-shadow: 0 20px 60px rgba(107, 11, 18, 0.13);
  align-items: center;
  min-height: 470px;
  padding: 38px;
  border-radius: 14px;
  display: flex;
}
.contact-card form {
  width: 100%;
}
.form-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-bright, #9e1f29);
  font-size: 14px;
  font-weight: 700;
}
.contact-card h3 {
  margin: 12px 0 8px;
  font-size: 27px;
  color: var(--ink, #321015);
}
.contact-card form > p {
  color: var(--muted, #785e61);
  font-size: 16px;
  margin: 0 0 25px;
}
.contact-card label {
  margin: 0 0 17px;
  font-size: 14px;
  font-weight: 700;
  display: block;
  color: var(--ink, #321015);
}
.contact-card input:not([type="hidden"]),
.contact-card textarea {
  border: 1px solid rgba(107, 11, 18, 0.25);
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  display: block;
  color: var(--ink, #321015);
  background: #fff;
  border-radius: 6px;
  outline: none;
  padding: 14px;
  font-weight: 400;
}
.contact-card input:not([type="hidden"]):focus,
.contact-card textarea:focus {
  border-color: var(--primary, #6b0b12);
  box-shadow: 0 0 0 3px rgba(107, 11, 18, 0.12);
}
.contact-card textarea {
  min-height: 120px;
  resize: vertical;
  font: inherit;
}
.form-submit {
  background: var(--primary, #6b0b12);
  color: #fff;
  cursor: pointer;
  border: 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  padding: 15px 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  transition: background 0.2s, transform 0.2s;
}
.form-submit:hover,
.form-submit:focus-visible {
  background: var(--primary-bright, #9e1f29);
}
.form-submit[disabled] {
  opacity: 0.6;
  cursor: default;
}
.form__message {
  min-height: 18px;
  margin-top: 13px;
  color: var(--ink, #321015);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 900px) {
  .access-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px 24px;
  }
  .contact-card {
    padding: 26px;
    min-height: 0;
  }
}

/* =============================================================
   CARBONFIN 404
   ============================================================= */
.carbonfin-404-main {
  overflow: hidden;
}
.carbonfin-404 {
  min-height: calc(100svh - 116px);
  padding-top: clamp(72px, 9vw, 122px);
  padding-bottom: clamp(72px, 9vw, 112px);
  overflow: hidden;
}
.carbonfin-404 .hero-glow {
  top: -250px;
  right: -120px;
}
.carbonfin-404-inner {
  z-index: 2;
  width: 100%;
  max-width: var(--max, 1360px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  position: relative;
}
.carbonfin-404-copy {
  min-width: 0;
  max-width: 740px;
}
.carbonfin-404 h1 {
  margin-top: 20px;
}
.carbonfin-404 .hero-lead {
  max-width: 660px;
}
.carbonfin-404-button > span:last-child {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.carbonfin-404-button:hover > span:last-child {
  transform: translateX(4px);
}
.carbonfin-404-button:focus-visible {
  outline-color: #fff;
}
.carbonfin-404-visual {
  aspect-ratio: 1;
  width: min(440px, 100%);
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 2%, var(--rose, #e8a8ac) 0 4px, transparent 5px),
    radial-gradient(circle at 98% 50%, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at 18% 88%, rgba(255, 255, 255, 0.48) 0 4px, transparent 5px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025) 64%, transparent 65%);
  place-content: center;
  justify-items: center;
  padding: 72px;
  text-align: center;
  display: grid;
  position: relative;
  box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.025), 0 34px 90px rgba(25, 0, 4, 0.25);
}
.carbonfin-404-visual::before {
  content: "";
  border: 1px dashed rgba(232, 168, 172, 0.42);
  border-radius: 50%;
  position: absolute;
  inset: 12%;
}
.carbonfin-404-visual::after {
  content: "";
  width: 68%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 168, 172, 0.5), transparent);
  position: absolute;
  top: 50%;
  left: 16%;
  transform: rotate(-32deg);
  transform-origin: center;
}
.carbonfin-404-visual > * {
  z-index: 1;
  position: relative;
}
.carbonfin-404-visual-label {
  color: var(--rose, #e8a8ac);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
}
.carbonfin-404-visual strong {
  color: #fff;
  letter-spacing: -0.08em;
  margin: 12px 0 18px;
  font-size: clamp(82px, 10vw, 138px);
  font-weight: 380;
  line-height: 0.82;
}
.carbonfin-404-visual-note {
  color: rgba(255, 255, 255, 0.66);
  max-width: 220px;
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .carbonfin-404 {
    min-height: calc(100svh - 108px);
    padding-top: 72px;
  }
  .carbonfin-404-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .carbonfin-404-visual {
    width: min(380px, 76vw);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .carbonfin-404 {
    padding-top: 58px;
    padding-bottom: 72px;
  }
  .carbonfin-404-inner {
    gap: 54px;
  }
  .carbonfin-404 .hero-actions,
  .carbonfin-404-button {
    width: 100%;
  }
  .carbonfin-404-visual {
    width: min(310px, calc(100vw - 64px));
    padding: 50px;
  }
  .carbonfin-404-visual strong {
    font-size: clamp(76px, 25vw, 108px);
  }
}

@media (max-width: 390px) {
  .carbonfin-404-inner {
    gap: 46px;
  }
  .carbonfin-404-visual {
    width: min(270px, calc(100vw - 44px));
    padding: 42px;
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.025), 0 28px 70px rgba(25, 0, 4, 0.22);
  }
  .carbonfin-404-visual-note {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carbonfin-404-button,
  .carbonfin-404-button > span:last-child {
    transition: none;
  }
}

/* ---- Sitemap (templates/sitemap.php) ---- */
.sitemap-hero {
  min-height: 0;
}
.sitemap-section {
  padding-top: 90px;
  padding-bottom: 110px;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.sitemap-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.sitemap-group__number {
  color: var(--primary-bright);
  font-size: 16px;
}
.sitemap-group__title {
  margin: 40px 0 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.sitemap-group__title a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: inherit;
  transition: color 0.2s;
}
.sitemap-group__title a:hover {
  color: var(--primary-bright);
}
.sitemap-group__title .lucide-icon {
  flex: none;
  width: 22px;
  height: 22px;
}
.sitemap-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.sitemap-group:only-child .sitemap-list {
  column-count: 2;
  column-gap: 40px;
}
.sitemap-list li {
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.sitemap-list a {
  display: block;
  padding: 13px 0;
  color: var(--muted);
  font-size: 17px;
  transition: color 0.2s;
}
.sitemap-list a:hover {
  color: var(--primary-bright);
}
.sitemap-group a:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 4px;
}
@media (width<=860px) {
  .sitemap-section {
    padding-top: 60px;
    padding-bottom: 80px;
  }
  .sitemap-group:only-child .sitemap-list {
    column-count: 1;
  }
}
@media (width<=560px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
  .sitemap-group {
    padding: 24px 20px;
  }
  .sitemap-group__title {
    margin-top: 28px;
    font-size: 26px;
  }
}

/* ---- Search results page (search.php) ---- */
.search-page-hero {
  min-height: 0;
}
.search-page-section {
  padding-top: 90px;
  padding-bottom: 110px;
}
.search-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.search-page-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.search-page-card__meta {
  color: var(--primary-bright);
  font-size: 16px;
}
.search-page-card__title {
  margin: 34px 0 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.search-page-card__title a {
  color: inherit;
  transition: color 0.2s;
}
.search-page-card__title a:hover {
  color: var(--primary-bright);
}
.search-page-card__excerpt {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.search-page-card__excerpt p {
  margin: 0;
}
.search-page-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--primary-bright);
  font-size: 16px;
  font-weight: 600;
  transition: gap 0.2s;
}
.search-page-card__link:hover {
  gap: 12px;
}
.search-page-card__link .lucide-icon {
  width: 18px;
  height: 18px;
}
.search-page-card a:focus-visible,
.search-page-empty a:focus-visible,
.pagination a:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 4px;
}
.search-page-empty {
  max-width: 760px;
}
.search-page-empty .section-label {
  margin-bottom: 28px;
}
.search-page-empty h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.search-page-empty p {
  margin: 20px 0 34px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

/* ---- Pagination (components/pagination.php) ---- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination__item {
  list-style: none;
}
.pagination__link,
.pagination__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.pagination__link:hover,
.pagination__control:hover {
  border-color: var(--primary-bright);
  color: var(--primary-bright);
}
.pagination__link_current {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.pagination__link_current:hover {
  color: #fff;
}
.pagination__link_ellipsis {
  border-color: transparent;
}
.pagination__control .lucide-icon {
  width: 18px;
  height: 18px;
}
@media (width<=860px) {
  .search-page-section {
    padding-top: 60px;
    padding-bottom: 80px;
  }
}
@media (width<=560px) {
  .search-page-grid {
    grid-template-columns: 1fr;
  }
  .search-page-card {
    padding: 24px 20px;
  }
  .search-page-card__title {
    margin-top: 24px;
    font-size: 24px;
  }
}

/* =============================================================
   ТЗ 7G (13.11.2026): статус контура, подсказки схемы,
   список ссылок схемы на телефоне, демо-плашки, вход на платформе,
   согласие в форме, подвал с пятью контурами
   ============================================================= */

/* Статус контура на первом экране */
.contour-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  max-width: 100%;
  margin: 4px 0 0;
  padding: 8px 14px;
  border: 1px solid var(--rose, #e8a8ac);
  border-radius: 99px;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  background: #ffffff12;
}
.contour-status b {
  color: var(--rose, #e8a8ac);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
}
.contour-status span {
  color: #ffffffd9;
}
.contour-status--light {
  justify-self: start;
  margin: 0;
  color: var(--ink, #321015);
  background: #fff;
  border-color: var(--primary-bright, #9e1f29);
}
.contour-status--light b {
  color: var(--primary-bright, #9e1f29);
}
.contour-status--light span {
  color: var(--muted, #785e61);
}

/* Подсказка узла схемы экосистемы (hover и фокус с клавиатуры) */
.eco-tip {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 190px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #140305f2;
  border: 1px solid #ffffff3d;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s;
}
.ue-node:hover,
.ue-node:focus-visible,
.g7-node:hover,
.g7-node:focus-visible {
  z-index: 6;
}
.ue-node:hover > .eco-tip,
.ue-node:focus-visible > .eco-tip,
.g7-node:hover > .eco-tip,
.g7-node:focus-visible > .eco-tip {
  opacity: 1;
  visibility: visible;
}
/* Узлы у левого края — подсказка вправо, у правого — влево, нижние — над узлом */
.ue-platform > .eco-tip,
.ue-model > .eco-tip,
.g7-platform > .eco-tip,
.g7-model > .eco-tip {
  left: 0;
  transform: none;
}
.ue-fin > .eco-tip,
.ue-cbam > .eco-tip,
.g7-fin > .eco-tip,
.g7-cbam > .eco-tip {
  left: auto;
  right: 0;
  transform: none;
}
.ue-model > .eco-tip,
.ue-cbam > .eco-tip,
.g7-model > .eco-tip,
.g7-cbam > .eco-tip {
  top: auto;
  bottom: calc(100% + 8px);
}

/* Список тех же ссылок со статусами — под схемой на телефоне */
.eco-list {
  display: none;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.eco-list li + li {
  border-top: 1px solid #ffffff1f;
}
.eco-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 10px 2px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}
.eco-list a[aria-current="page"] b {
  color: var(--rose, #e8a8ac);
}
.eco-list b {
  grid-row: span 2;
  letter-spacing: 0.04em;
}
.eco-list span {
  overflow-wrap: anywhere;
}
.eco-list small {
  color: #ffffffad;
  font-size: 13px;
}
.g7-eco-list {
  margin: 0;
  padding: 6px 20px 16px;
}
@media (max-width: 768px) {
  .eco-list {
    display: block;
  }
}

/* Демо-цифры: заметная плашка прямо над цифрами */
.demo-figures {
  margin-top: 65px;
}
.demo-figures > .metric-grid,
.demo-figures > .quality-kpis {
  margin-top: 14px;
}
.demo-badge--strong {
  margin: 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 99px;
  background: #f6d365;
  color: #3a2600;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Блок «Доступ»: вход и регистрация на платформе, без полей пароля */
.access-links {
  align-content: start;
}
.access-links h3 {
  margin: 0;
  color: var(--ink, #321015);
  font-size: 24px;
}
.access-links > p {
  margin: 0;
  color: var(--muted, #785e61);
}
.access-links__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.access-links__buttons .button {
  flex: 1 1 220px;
  width: auto;
  text-align: center;
}
.access-links .button.secondary.access-links__secondary {
  color: var(--primary, #6b0b12);
  background: #fff;
  border-color: var(--primary, #6b0b12);
}
.access-links > small a {
  color: var(--primary-bright, #9e1f29);
  text-decoration: underline;
}

/* Одно согласие в форме заявки */
.contact-card label.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.45;
}
.contact-card label.form-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
}
.form-consent a {
  color: var(--primary-bright, #9e1f29);
  text-decoration: underline;
}
.contact-card .form__message {
  font-weight: 700;
}

/* Подвал: «Экосистема 7G» — пять контуров со статусами */
.ecosystem-list.ecosystem-list--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ecosystem-list--five a[aria-current="page"] {
  border-color: #e8a8ac80;
}
.ecosystem-list--five b {
  overflow-wrap: anywhere;
}
.contact-item--support span {
  overflow-wrap: anywhere;
}
@media (max-width: 1180px) {
  .ecosystem-list.ecosystem-list--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .ecosystem-list.ecosystem-list--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 390px) {
  .ecosystem-list.ecosystem-list--five {
    grid-template-columns: 1fr;
  }
}
/* Заголовок первого экрана (13.11.2026): меньше кегль и естественный перенос строк — без «слово на строку». Одинаково на всех сайтах 7G. */
main section:first-of-type h1 {
  max-width: 17em;
  font-size: clamp(28px, 1.6vw + 22px, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
