html {
  scroll-behavior: auto;
}
body {
  margin: 0;
}
* {
  box-sizing: border-box;
}
.fixed.z-30 img {
  animation: todorFloat 5.2s ease-in-out infinite;
}
.fixed.z-30 {
  animation: todorFloatBtn 5.2s ease-in-out infinite;
}
@keyframes todorFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}
@keyframes todorFloatBtn {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
header,
.site-header {
  transition: all 0.28s ease;
}
.scrolled-header {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.1);
  border-color: rgba(255, 255, 255, 0.72) !important;
}
.faq-answer {
  display: none;
}
.faq-item.is-open .faq-answer {
  display: block;
}
.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
}
[data-equip-section] {
  min-height: 120vh;
}
.equipment-pin {
  position: sticky;
  top: 0;
}
.equipment-text,
.equipment-showcase {
  transition:
    opacity 0.25s ease,
    transform 0.35s ease-out;
}
.equipment-pre .equipment-text {
  opacity: 0 !important;
  transform: translateY(30px);
}
.equipment-pre .equipment-showcase {
  opacity: 0 !important;
  transform: scale(0.84);
}
.equipment-on .equipment-text {
  opacity: 1 !important;
  transform: none;
}
.equipment-on .equipment-showcase {
  opacity: 1 !important;
  transform: scale(1);
}
.hero-phone {
  animation: phoneFloat 6.4s ease-in-out infinite;
}
.hero-mascot {
  animation: mascotHero 5.8s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1.2deg);
  }
  50% {
    transform: translateY(-14px) rotate(1.1deg);
  }
}
@keyframes mascotHero {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-12px) rotate(-2deg);
  }
}
@media (max-width: 768px) {
  .fixed.z-30 {
    display: none;
  }
  .md\:hidden {
    display: grid;
  }
}

/* Patch 2026-05-09: loader, carousel, tariffs, FAQ exact behavior */
#todor-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #02050b;
  overflow: hidden;
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}
#todor-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#todor-preloader:before,
#todor-preloader:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(31, 92, 255, 0.22);
  box-shadow: 0 0 70px rgba(21, 82, 255, 0.1) inset;
}
#todor-preloader:before {
  width: min(640px, 72vw);
  height: min(640px, 72vw);
  animation: loaderPulse 2.2s ease-in-out infinite;
}
#todor-preloader:after {
  width: min(420px, 48vw);
  height: min(420px, 48vw);
  animation: loaderPulse 2.2s ease-in-out infinite reverse;
}
.todor-preloader__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transform: translateY(-6px);
}
.todor-preloader__logo {
  width: 350px;
  max-width: 38vw;
  filter: drop-shadow(0 0 26px rgba(0, 87, 255, 0.68));
}
.todor-preloader__bar {
  width: 250px;
  max-width: 60vw;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(55, 168, 255, 0.86);
  padding: 2px;
  background: rgba(0, 8, 25, 0.88);
  box-shadow:
    0 0 18px rgba(0, 136, 255, 0.62),
    0 0 3px rgba(255, 255, 255, 0.75) inset;
  overflow: hidden;
}
.todor-preloader__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1b5cff, #00c8ff, #4ff2ff);
  box-shadow: 0 0 16px rgba(24, 190, 255, 0.9);
  animation: todorLoading 1.15s cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
}
.todor-preloader__text {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.42em;
  color: #1d66ff;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0, 83, 255, 0.8);
}
@keyframes todorLoading {
  0% {
    width: 0;
  }
  18% {
    width: 20%;
  }
  55% {
    width: 64%;
  }
  100% {
    width: 100%;
  }
}
@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.52;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.hero-slide-fade {
  animation: heroSlideFade 0.38s ease both;
}
@keyframes heroSlideFade {
  from {
    opacity: 0.72;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-active-dot {
  width: 24px !important;
  background: #fff !important;
  opacity: 1 !important;
}
.hero-dot {
  cursor: pointer;
  transition: all 0.25s ease;
}
.hero-arrow {
  cursor: pointer;
}

.plan-card-static {
  position: relative;
  cursor: pointer;
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease,
    background 0.24s ease;
}
.plan-card-static:hover {
  transform: translateY(-3px);
}
.plan-card-static.is-selected {
  border-color: #ff7a00 !important;
  box-shadow:
    0 30px 90px rgba(255, 122, 0, 0.16),
    0 18px 70px rgba(15, 23, 42, 0.08) !important;
}
.plan-card-static.is-selected:after {
  content: "Обрано";
  position: absolute;
  right: 28px;
  top: 28px;
  border-radius: 999px;
  background: #dcfce7;
  color: #059669;
  padding: 8px 18px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}
.plan-card-static .plan-main-action {
  transition: all 0.2s ease;
}
.plan-card-static.is-selected .plan-main-action {
  background: #020617 !important;
  color: #fff !important;
  box-shadow: none !important;
}
.plan-card-static.is-selected .plan-main-action:before {
  display: none !important;
}

#faq {
  max-width: none !important;
  width: 100% !important;
  padding-top: 92px !important;
  padding-bottom: 92px !important;
  background: #eaf6ff !important;
}
#faq > div {
  width: min(100% - 48px, 1040px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#faq h2 {
  font-size: 34px !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  color: #061837 !important;
}
#faq .faq-item {
  border-radius: 18px !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  background: white !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden !important;
}
.faq-item button {
  min-height: 62px !important;
  padding: 0 22px !important;
  color: #061837 !important;
}
.faq-answer {
  display: none;
  padding: 0 22px 24px 22px !important;
  color: #64748b !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}
.faq-item.is-open .faq-answer {
  display: block !important;
}
.faq-item.is-open .faq-plus {
  transform: rotate(45deg) !important;
}
@media (max-width: 768px) {
  #faq {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
  #faq > div {
    width: min(100% - 28px, 1040px) !important;
  }
  .faq-item button {
    font-size: 15px !important;
    min-height: 56px !important;
  }
  .faq-answer {
    font-size: 14px !important;
  }
}

/* =========================================================
   Header dropdowns (manually editable section)
   ========================================================= */
.header-dropdown-wrap {
  position: relative;
}

.header-dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 140;
  display: none;
  min-width: 255px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  padding: 8px;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.header-dropdown-wrap.is-open > .header-dropdown-panel {
  display: block;
}

.header-dropdown-wrap.is-open > button {
  border-color: rgba(249, 115, 22, 0.35) !important;
  background: rgba(255, 247, 237, 0.86) !important;
  color: rgb(15, 23, 42) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

.header-dropdown-wrap.is-open > button svg:last-child {
  transform: rotate(180deg);
}

.header-dropdown-panel--nav {
  min-width: 255px;
  left: 0;
}

.header-dropdown-panel--location {
  width: 100%;
  max-height: min(520px, calc(100vh - 120px));
  overflow-y: auto;
}

.header-dropdown-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  padding: 13px 14px;
  color: #334155;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
  cursor: pointer;
}

.header-dropdown-link:hover,
.header-dropdown-link.is-active {
  background: #fff7ed;
  color: #f97316;
}

.header-dropdown-link__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-dropdown-pin {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #ff6b00;
}

.header-dropdown-arrow {
  width: 16px;
  height: 16px;
  color: #ff6b00;
}

@media (max-width: 1279px) {
  .header-dropdown-panel--nav {
    display: none !important;
  }
}

/* =========================================================
   Patch 1.0.2: hover dropdowns, tariff badge fix, form status
   ========================================================= */

/* Header dropdowns open by hover/focus. JS keeps .is-open for touch/click. */
.header-dropdown-wrap:hover > .header-dropdown-panel,
.header-dropdown-wrap:focus-within > .header-dropdown-panel,
.header-dropdown-wrap.is-open > .header-dropdown-panel {
  display: block !important;
}

.header-dropdown-wrap:hover > button,
.header-dropdown-wrap:focus-within > button,
.header-dropdown-wrap.is-open > button {
  border-color: rgba(249, 115, 22, 0.35) !important;
  background: rgba(255, 247, 237, 0.86) !important;
  color: rgb(15, 23, 42) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

.header-dropdown-wrap:hover > button svg:last-child,
.header-dropdown-wrap:focus-within > button svg:last-child,
.header-dropdown-wrap.is-open > button svg:last-child {
  transform: rotate(180deg);
}

/* Dropdown items: default like Business menu, orange + arrow only on hover/focus. */
.header-dropdown-panel--nav .header-dropdown-link,
.header-dropdown-panel--nav .header-dropdown-link.is-active {
  background: transparent !important;
  color: #334155 !important;
}

.header-dropdown-panel--nav .header-dropdown-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.header-dropdown-panel--nav .header-dropdown-link:hover,
.header-dropdown-panel--nav .header-dropdown-link:focus-visible {
  background: #fff7ed !important;
  color: #f97316 !important;
}

.header-dropdown-panel--nav .header-dropdown-link:hover .header-dropdown-arrow,
.header-dropdown-panel--nav .header-dropdown-link:focus-visible .header-dropdown-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Old static badge inside the React markup is hidden. Dynamic badge is drawn by CSS. */
.plan-card-static > .selected-badge-static {
  display: none !important;
}

.plan-card-static.is-selected::after {
  content: "Обрано";
  position: absolute;
  right: 28px;
  top: 28px;
  z-index: 3;
  border-radius: 999px;
  background: #dcfce7;
  color: #059669;
  padding: 8px 18px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

.lead-form-status {
  display: none;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-align: left;
}

.lead-form-status.is-visible {
  display: block;
}

.lead-form-status.is-ok {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(110, 231, 183, 0.4);
  color: #ecfdf5;
}

.lead-form-status.is-error {
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(252, 165, 165, 0.45);
  color: #fff1f2;
}


/* =========================================================
   Patch 1.0.3: city dropdown click-only + tariff badge cleanup
   ========================================================= */

/* Location menu opens only by JS click, not by hover/focus. */
.header-dropdown-wrap:has(.header-dropdown-panel--location):hover > .header-dropdown-panel,
.header-dropdown-wrap:has(.header-dropdown-panel--location):focus-within > .header-dropdown-panel {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) scale(0.98) !important;
  pointer-events: none !important;
}

.header-dropdown-wrap.is-open:has(.header-dropdown-panel--location) > .header-dropdown-panel {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

/* Older browser fallback when :has is not supported: JS adds this class. */
.header-dropdown-wrap.location-dropdown:hover > .header-dropdown-panel,
.header-dropdown-wrap.location-dropdown:focus-within > .header-dropdown-panel {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) scale(0.98) !important;
  pointer-events: none !important;
}

.header-dropdown-wrap.location-dropdown.is-open > .header-dropdown-panel {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

/* Hide every original static "Обрано" badge inside tariff cards; only dynamic CSS badge is shown. */
.plan-card-static .selected-badge-static {
  display: none !important;
}

/* Tariff cards: a little closer to the current dev look. */
.plan-card-static.is-selected {
  border-color: #ff7a00 !important;
  box-shadow:
    0 0 0 1px rgba(255,122,0,0.08),
    0 30px 90px rgba(255, 122, 0, 0.16),
    0 18px 70px rgba(15, 23, 42, 0.08) !important;
}

.plan-card-static.is-selected::after {
  right: 28px !important;
  top: 28px !important;
  z-index: 6 !important;
}

/* =========================================================
   Patch 1.0.4: JSON tariffs and selected button state
   ========================================================= */
.tariffs-json-grid.tariffs-two-columns {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.tariff-json-card .plan-main-action {
  background: linear-gradient(90deg, #6366f1, #7c3aed, #8b1cf6) !important;
}

.tariff-json-card.is-selected .plan-main-action {
  background: #020617 !important;
}

.lead-selected-city,
.lead-selected-tariff {
  line-height: 1.25;
}

/* =========================================================
   Patch 1.0.5: mobile menu, mobile/desktop-view header,
   phone input and equipment spacing
   ========================================================= */

/* Mobile drawer */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(8px);
}

.mobile-menu-backdrop.is-open {
  display: block;
}

.mobile-menu-panel {
  position: fixed;
  top: 92px;
  left: 12px;
  right: 12px;
  z-index: 181;
  display: none;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  padding: 12px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.mobile-menu-panel.is-open {
  display: block;
}

.mobile-menu-section + .mobile-menu-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.mobile-menu-title {
  padding: 8px 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-menu-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  padding: 14px 14px;
  color: #334155;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible,
.mobile-menu-link.is-active {
  background: #fff7ed;
  color: #f97316;
  outline: none;
}

.mobile-menu-close {
  display: grid;
  width: 100%;
  place-items: center;
  border: 0;
  border-radius: 18px;
  background: #020617;
  padding: 15px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* Make the real header usable on phones and in "desktop site" mode. */
@media (max-width: 899px) {
  header {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-top: 10px !important;
  }

  header > div.relative {
    gap: 8px !important;
    padding: 10px 12px !important;
    border-radius: 28px !important;
  }

  header .group {
    gap: 9px !important;
  }

  header .group > div:first-child {
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
  }

  header .group > div:last-child {
    font-size: 28px !important;
  }

  header a[href="#lead"] {
    min-width: 0 !important;
    padding: 14px 18px !important;
    border-radius: 22px !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  header a[href="#lead"] svg {
    flex: 0 0 auto;
  }

  header button[aria-label="Відкрити меню"] {
    display: grid !important;
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px !important;
    border-radius: 20px !important;
  }

  header nav,
  header .location-dropdown,
  header a[href="/login.html"] {
    display: none !important;
  }
}

/* Desktop-site view on mobile browsers often reports ~980px width.
   Show the full menu earlier and compress it, so it is not unnecessarily folded. */
@media (min-width: 900px) and (max-width: 1279px) {
  header > div.relative {
    padding-left: 14px !important;
    padding-right: 14px !important;
    gap: 10px !important;
  }

  header nav {
    display: flex !important;
    gap: 2px !important;
    font-size: 12px !important;
  }

  header nav button,
  header nav a {
    padding: 9px 9px !important;
    white-space: nowrap !important;
  }

  header .location-dropdown {
    display: block !important;
  }

  header .location-dropdown > button {
    min-width: 190px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  header button[aria-label="Відкрити меню"] {
    display: none !important;
  }

  header .group > div:last-child {
    font-size: 24px !important;
  }

  header a[href="#lead"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 12px !important;
  }

  .header-dropdown-panel--nav {
    display: none;
  }

  .header-dropdown-wrap:hover > .header-dropdown-panel--nav,
  .header-dropdown-wrap:focus-within > .header-dropdown-panel--nav,
  .header-dropdown-wrap.is-open > .header-dropdown-panel--nav {
    display: block !important;
  }
}

/* Older/smaller Android WebViews: avoid giant hero text overflow. */
@media (max-width: 520px) {
  section h1 {
    font-size: clamp(42px, 11.8vw, 62px) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.055em !important;
  }

  section:first-of-type,
  main > section:first-child {
    overflow: hidden !important;
  }
}

/* Phone field UX */
#lead-form input[name="phone"] {
  ime-mode: disabled;
}

/* Reduce huge empty scroll area around router/ONU block. */
[data-equip-section] {
  /*min-height: 135vh !important;*/
}

[data-equip-section] .equipment-pin {
  min-height: 100vh;
}

@media (max-width: 900px) {
  [data-equip-section] {
    min-height: auto !important;
  }

  [data-equip-section] .equipment-pin {
    position: relative !important;
    min-height: auto !important;
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }

  [data-equip-section] .relative.mx-auto.grid {
    display: block !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .equipment-showcase,
  [data-equip-section] .relative.h-\[72vh\] {
    height: 360px !important;
    min-height: 360px !important;
    margin-top: 26px !important;
  }

  .equipment-showcase img[src*="router"],
  .equipment-showcase img[src*="onu"] {
    max-width: 100% !important;
  }
}

@media (max-width: 520px) {
  [data-equip-section] .equipment-pin {
    padding-top: 48px !important;
    padding-bottom: 52px !important;
  }

  .equipment-showcase,
  [data-equip-section] .relative.h-\[72vh\] {
    height: 300px !important;
    min-height: 300px !important;
  }
}


/* Patch 1.0.6: instant browser scroll, JSON pages and admin */
html, body { scroll-behavior: auto !important; }
.news-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:24px; }
.news-card { display:flex; flex-direction:column; overflow:hidden; border:1px solid rgba(148,163,184,.35); border-radius:24px; background:#fff; box-shadow:0 18px 50px rgba(15,23,42,.08); }
.news-card img { width:100%; height:190px; object-fit:cover; background:#e2e8f0; }
.news-card__body { padding:20px; display:grid; gap:10px; }
.news-card time { color:#64748b; font-size:14px; font-weight:700; }
.news-card h3 { font-size:22px; line-height:1.15; font-weight:900; color:#0f172a; }
.news-card p { color:#475569; }
.news-card a { margin-top:8px; font-weight:900; color:#2563eb; }
.news-page { max-width:1120px; margin:0 auto; padding:120px 24px 64px; }
.news-article { max-width:860px; margin:0 auto; padding:120px 24px 64px; }
.news-article img { width:100%; max-height:420px; object-fit:cover; border-radius:28px; margin:24px 0; }
.news-article h1 { font-size:clamp(34px,5vw,58px); line-height:.98; font-weight:950; color:#0f172a; }
.news-article .content { color:#334155; font-size:18px; line-height:1.75; white-space:pre-wrap; }
.admin-page { max-width:1180px; margin:0 auto; padding:120px 20px 70px; }
.admin-panel { display:grid; gap:18px; border:1px solid #dbe3ef; border-radius:28px; padding:24px; background:#fff; box-shadow:0 22px 70px rgba(15,23,42,.10); }
.admin-panel input,.admin-panel textarea { width:100%; border:1px solid #cbd5e1; border-radius:14px; padding:12px 14px; color:#0f172a; }
.admin-panel textarea { min-height:100px; }
.admin-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.admin-actions { display:flex; flex-wrap:wrap; gap:12px; }
.admin-actions button,.admin-actions a { border-radius:14px; padding:12px 16px; font-weight:900; background:#2563eb; color:white; }
.admin-list { display:grid; gap:12px; }
.admin-item { border:1px solid #e2e8f0; border-radius:18px; padding:14px; background:#f8fafc; }
.admin-item button { margin-right:8px; color:#2563eb; font-weight:800; }

/* Patch 1.0.6a: remove scroll-heavy equipment choreography and force native fast scroll */
html, body {
  scroll-behavior: auto !important;
  overscroll-behavior-y: auto !important;
}

[data-equip-section] {
  min-height: auto !important;
}

[data-equip-section] .equipment-pin {
  position: relative !important;
  top: auto !important;
  min-height: auto !important;
}

.equipment-text,
.equipment-showcase {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

.equipment-pre .equipment-text,
.equipment-pre .equipment-showcase,
.equipment-on .equipment-text,
.equipment-on .equipment-showcase {
  opacity: 1 !important;
  transform: none !important;
}

.equipment-showcase img[src*="router"],
.equipment-showcase img[src*="onu"] {
  will-change: auto !important;
}

@media (max-width: 900px) {
  [data-equip-section] .equipment-pin {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
}

/* Patch 1.0.6b: lightweight mascot assets and faster mobile scroll */
.hero-mascot,
img[src*="mascot.webp"],
.todor-preloader__logo {
  content-visibility: visible;
  contain: layout paint;
}

@media (max-width: 768px) {
  .hero-mascot,
  .smart-todor-mascot,
  img[src*="mascot.webp"] {
    animation: none !important;
  }

  section:not(.hero) img[src*="mascot.webp"] {
    display: none !important;
  }
}

/* Patch 1.0.7: ultra-fast UI
   Goal: native fast scroll, no scroll-linked effects, no blur/sticky/parallax-heavy rendering. */
html,
body {
  scroll-behavior: auto !important;
  overscroll-behavior-y: auto !important;
}

body {
  text-rendering: auto !important;
}

/* Backdrop blur is expensive on mobile and Safari. Replace it with solid/translucent fills. */
.backdrop-blur,
.backdrop-blur-sm,
.backdrop-blur-md,
.backdrop-blur-lg,
.backdrop-blur-xl,
.backdrop-blur-2xl,
.backdrop-blur-3xl,
[class*="backdrop-blur"],
[class*="backdrop-filter"],
.scrolled-header {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

header > div:last-child,
.scrolled-header {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

/* Disable scroll/reveal choreography and costly transitions on large page blocks. */
.equipment-pre,
.equipment-on,
.equipment-text,
.equipment-showcase,
[data-equip-section],
[data-equip-section] *,
.reveal,
.reveal-on,
.hero-slide-fade {
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
}

[data-equip-section] .sticky,
section .sticky {
  position: static !important;
  top: auto !important;
  min-height: auto !important;
}

/* Keep hover feedback, but avoid moving whole cards/sections. */
section,
main,
.plan-card-static,
.news-card,
.admin-panel,
[class*="hover:-translate"],
[class*="hover:translate"],
[class*="group-hover:-translate"],
[class*="group-hover:translate"] {
  will-change: auto !important;
}

.plan-card-static:hover,
.news-card:hover,
[class*="hover:-translate"]:hover,
[class*="hover:translate"]:hover,
[class*="group-hover:-translate"]:hover,
[class*="group-hover:translate"]:hover {
  transform: none !important;
}

/* Trim oversized shadows. */
[class*="shadow-[0_22px"],
[class*="shadow-[0_28px"],
[class*="shadow-[0_52px"],
[class*="drop-shadow-[0_52px"],
[class*="drop-shadow-[0_34px"],
.news-card,
.admin-panel {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
  filter: none !important;
}

/* Disable decorative mascot motion and non-essential fixed helpers on small screens. */
@media (max-width: 900px) {
  .mascot,
  [class*="mascot"],
  img[src*="mascot"],
  img[src*="todor-loader"] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }

  .floating-helper,
  [data-floating-helper] {
    display: none !important;
  }

  * {
    scroll-behavior: auto !important;
  }
}

/* Respect reduced-motion users and make it the default performance baseline. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Patch 1.0.7e: diagnostic ultra-native scroll
   If this version scrolls fast, culprit is one of fixed overlays/global animations/complex backgrounds. */
html, body {
  scroll-behavior: auto !important;
  overflow-x: hidden !important;
  background: #f4f7fb !important;
}

/* Remove complex full-page radial backgrounds during scroll diagnostics. */
.min-h-screen,
body > div,
#root > div {
  background: #f4f7fb !important;
}

/* Absolutely no animations/transitions while scrolling test. */
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
  will-change: auto !important;
}

/* Fixed layers often force repaint on mobile scroll. Test without them. */
header,
.site-header,
.fixed,
[class~="fixed"],
.floating-helper,
[data-floating-helper],
.md\:hidden.fixed,
.mobile-menu-backdrop,
.mobile-menu-panel {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Hide decorative floating assistant and mobile bottom CTA only for diagnostics. */
.floating-helper,
[data-floating-helper],
.fixed.z-30,
.md\:hidden.fixed,
img[src*="mascot"].absolute,
[class*="mascot"].absolute {
  display: none !important;
}

/* No filters on large images/cards. */
img, picture, video, canvas, svg, section, article, div {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* Patch 1.0.7k: diagnostic step */
/* Return background + fixed layers + mobile CTA + floating helper + main CSS animations/transitions. */
.min-h-screen {
  background: radial-gradient(circle at 8% 0%, rgba(255,122,0,0.16), transparent 30%),
              radial-gradient(circle at 78% 4%, rgba(113,103,246,0.18), transparent 34%),
              radial-gradient(circle at 50% 100%, rgba(14,165,233,0.12), transparent 38%),
              linear-gradient(180deg,#fbfcff 0%,#edf2f8 100%) !important;
}
header,.site-header{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:auto!important;transform:none!important;box-shadow:none!important;transition:all .28s ease!important;}
.mobile-menu-backdrop{position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;}
.mobile-menu-panel{position:fixed!important;top:92px!important;left:12px!important;right:12px!important;bottom:auto!important;transition:opacity .22s ease,transform .22s ease!important;}
/*.md\:hidden.fixed,.fixed.bottom-4,[class*="bottom-4"].fixed{display:grid!important;position:fixed!important;left:1rem!important;right:1rem!important;bottom:1rem!important;top:auto!important;z-index:50!important;transition:transform .2s ease,opacity .2s ease!important;}*/
@media (min-width:768px){.md\:hidden.fixed,.fixed.bottom-4,[class*="bottom-4"].fixed{display:none!important;}}
.fixed.z-30,button.fixed.z-30{display:block!important;position:fixed!important;right:18px!important;bottom:18px!important;left:auto!important;top:auto!important;z-index:30!important;width:clamp(118px,12vw,156px)!important;animation:todorFloatBtn 5.2s ease-in-out infinite!important;transition:width .3s ease!important;}
.fixed.z-30 img,button.fixed.z-30 img{animation:todorFloat 5.2s ease-in-out infinite!important;}
@media (max-width:768px){.fixed.z-30,button.fixed.z-30{display:none!important;animation:none!important;}}
.hero-phone{animation:phoneFloat 6.4s ease-in-out infinite!important;}
.hero-mascot{animation:mascotHero 5.8s ease-in-out infinite!important;}
.hero-slide-fade{/*! animation:heroSlideFade .38s ease both!important; */}
.todor-preloader__fill{animation:loaderBar 1.2s ease-in-out infinite!important;}
#todor-preloader:before,#todor-preloader:after{animation:loaderPulse 2.2s ease-in-out infinite!important;}
.equipment-text,.equipment-showcase,.reveal,.reveal-on{transition:opacity .25s ease,transform .35s ease-out!important;}
button,a,.group,.plan-card-static,.news-card{transition:all .2s ease!important;}


/* MANUAL HOTFIX for 1.0.7k: fixed header */
body {
  padding-top: 0 !important;
}

.min-h-screen {
  padding-top: 96px !important;
}

header.fixed,
header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  z-index: 9999 !important;
  transform: none !important;
}

header > div.relative {
  z-index: 10000 !important;
}

html {
  scroll-behavior: auto !important;
}

/* Очень важно: зарезервировать место под картинки, чтобы высота страницы не прыгала */
img {
    height: auto;
    max-width: 100%;
}

/* HOTFIX: correct anchor scrolling with fixed header */
section {
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
}

#plans,
#faq,
#lead,
#contacts {
  scroll-margin-top: 120px !important;
}

/* =========================================
   PRELOADER OVER HEADER HOTFIX
========================================= */

/*
body.is-loading {
  overflow: hidden;
}

body.is-loading header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

body.is-ready header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity .25s ease,
    transform .25s ease;
}
*/

body.is-loading header {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.is-ready header {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* preloader поверх всего */
#preloader,
.preloader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  background: #f5f7fb;
}

/* Modern Todor preloader */
.todor-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(37, 99, 235, .12), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.todor-loader__card {
  width: min(320px, calc(100vw - 48px));
  padding: 34px 28px 30px;
  border-radius: 32px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(148,163,184,.32);
  box-shadow: 0 24px 80px rgba(15,23,42,.12);
  text-align: center;
}

.todor-loader__logo img {
  height: 44px;
  width: auto;
  margin: 0 auto 18px;
}

.todor-loader__signal {
  position: relative;
  width: 84px;
  height: 48px;
  margin: 0 auto 16px;
}

.todor-loader__signal span {
  position: absolute;
  left: 50%;
  bottom: 0;
  border: 3px solid #2563eb;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
  opacity: .18;
  animation: todorSignal 1.4s ease-in-out infinite;
}

.todor-loader__signal span:nth-child(1) {
  width: 28px;
  height: 16px;
  animation-delay: 0s;
}

.todor-loader__signal span:nth-child(2) {
  width: 52px;
  height: 30px;
  animation-delay: .15s;
}

.todor-loader__signal span:nth-child(3) {
  width: 76px;
  height: 44px;
  animation-delay: .3s;
}

.todor-loader__title {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.todor-loader__text {
  margin-top: 6px;
  color: #64748b;
  font-weight: 700;
}

.todor-loader__bar {
  height: 6px;
  margin-top: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.todor-loader__bar i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #f97316);
  animation: todorLoaderBar 1.1s ease-in-out infinite;
}

body.is-ready .todor-loader {
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

@keyframes todorSignal {
  0%, 100% {
    opacity: .18;
    transform: translateX(-50%) scale(.94);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes todorLoaderBar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}
