/* ===== ConTrend homepage: clean desktop + separate mobile layout ===== */
/* Only homepage styles. Shared nav/menu/footer are not modified here. */

:root {
  --home-shell: 1120px;
  --home-text: #0f172a;
  --home-muted: #64748b;
  --home-line: rgba(148, 163, 184, 0.24);
  --home-blue: #4f46e5;
  --home-blue-dark: #4338ca;
  --home-green: #16a34a;
  --home-radius-xl: 24px;
  --home-radius-lg: 16px;
  --home-shadow: 0 12px 32px rgba(15, 23, 42, 0.045);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.06), transparent 26%),
    radial-gradient(circle at 90% 0%, rgba(124, 58, 237, 0.07), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f6f8fc 55%, #ffffff 100%) !important;
  color: var(--home-text);
}

.page.home-page {
  width: min(var(--home-shell), calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: 22px 0 26px !important;
}

.home-kicker {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--home-blue-dark);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--home-blue);
}

/* ===== Desktop hero ===== */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: stretch;
  margin: 0 0 12px;
  padding: 28px 30px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-xl);
  background:
    radial-gradient(circle at 6% 0%, rgba(34, 211, 238, 0.06), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.07), transparent 34%),
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--home-shadow);
}

.home-hero__content {
  display: grid;
  align-content: center;
  max-width: 690px;
}

.home-hero h1 {
  max-width: 690px;
  margin: 0 0 12px;
  color: var(--home-text);
  font-size: clamp(34px, 3.7vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.home-hero p {
  max-width: 670px;
  margin: 0;
  color: #475569;
  font-size: 15.8px;
  line-height: 1.53;
  font-weight: 700;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 20px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.home-btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.16);
}

.home-btn--secondary {
  color: var(--home-text);
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.76);
}

/* ===== Desktop mini-dashboard ===== */

.home-demo {
  position: relative;
  padding: 16px;
  border-radius: 21px;
  color: var(--home-text);
  background:
    radial-gradient(circle at 94% 0%, rgba(79, 70, 229, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.90));
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.075),
    inset 0 1px 0 rgba(255,255,255,0.95);
  overflow: hidden;
}

.home-demo::before,
.home-demo::after {
  display: none !important;
  content: none !important;
}

.home-demo__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-demo__top span {
  display: block;
  margin-bottom: 5px;
  color: var(--home-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-demo__top strong {
  display: block;
  color: var(--home-text);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.home-demo__top b {
  position: relative;
  flex: 0 0 auto;
  padding: 7px 10px 7px 22px;
  border-radius: 999px;
  color: #15803d;
  background: rgba(34, 197, 94, 0.11);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.home-demo__top b::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--home-green);
  transform: translateY(-50%);
}

.home-demo__screen {
  display: grid;
  gap: 8px;
}

.home-demo__row,
.home-demo__result {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.024);
}

.home-demo__row {
  animation: demoSoftFocus 10s ease-in-out infinite;
}

.home-demo__row--release {
  animation-delay: 0s;
}

.home-demo__row--reviews {
  animation-delay: 2.4s;
}

.home-demo__row--rating {
  animation-delay: 4.8s;
}

.home-demo__result {
  border-color: rgba(79, 70, 229, 0.26);
  background: rgba(79, 70, 229, 0.07);
  animation: demoResultFocus 10s ease-in-out infinite;
  animation-delay: 7.2s;
}

@keyframes demoSoftFocus {
  0%, 20%, 100% {
    border-color: rgba(148, 163, 184, 0.20);
    background: rgba(255,255,255,0.82);
  }

  6%, 14% {
    border-color: rgba(79, 70, 229, 0.34);
    background: rgba(79, 70, 229, 0.055);
  }
}

@keyframes demoResultFocus {
  0%, 20%, 100% {
    border-color: rgba(79, 70, 229, 0.26);
    background: rgba(79, 70, 229, 0.07);
  }

  6%, 14% {
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(34, 197, 94, 0.075);
  }
}

.home-demo small,
.home-demo__result small {
  display: block;
  margin-bottom: 5px;
  color: var(--home-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-demo strong,
.home-demo__result strong {
  display: block;
  color: var(--home-text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.home-demo span {
  display: block;
  margin-top: 4px;
  color: var(--home-muted);
  font-size: 11.5px;
  line-height: 1.28;
  font-weight: 750;
}

/* ===== Mobile-only compact signal ===== */

.home-mobile-signal {
  display: none;
}

/* ===== Numbers ===== */

.home-numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}

.home-numbers article {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 17px;
  background:
    radial-gradient(circle at 95% 0%, rgba(79, 70, 229, 0.050), transparent 34%),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.028),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.home-numbers strong {
  display: block;
  margin-bottom: 7px;
  color: var(--home-blue);
  font-size: 31px;
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.home-numbers span {
  display: block;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

/* ===== Sections ===== */

.home-value,
.home-entry-section {
  margin: 12px 0;
  padding: 22px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-xl);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.033);
}

.home-section-head {
  margin-bottom: 15px;
}

.home-section-head h2 {
  max-width: 760px;
  margin: 0;
  color: var(--home-text);
  font-size: clamp(24px, 2.35vw, 31px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.home-value .home-section-head h2 {
  max-width: none !important;
  white-space: nowrap !important;
}

.home-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-value-grid article,
.home-entry {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--home-radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 7px 20px rgba(15, 23, 42, 0.026),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.home-value-grid strong,
.home-entry strong {
  display: block;
  margin: 0 0 8px;
  color: var(--home-text);
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.home-value-grid span,
.home-entry span {
  display: block;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-entry {
  position: relative;
  display: block;
  padding-right: 58px !important;
  color: var(--home-text);
  text-decoration: none;
}

.home-entry::after {
  content: "→";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--home-blue);
  background: rgba(79, 70, 229, 0.09);
  font-size: 14px;
  font-weight: 900;
  transform: translateY(-50%);
}

.home-entry:hover,
.home-entry:focus-visible {
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow:
    0 7px 20px rgba(15, 23, 42, 0.026),
    inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

.home-entry:hover::after,
.home-entry:focus-visible::after {
  color: var(--home-blue) !important;
  background: rgba(79, 70, 229, 0.09) !important;
  transform: translateY(-50%) !important;
}

.ct-site-footer-root {
  margin-top: 18px !important;
}

/* ===== Tablet ===== */

@media (max-width: 1040px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-numbers,
  .home-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-value-grid {
    grid-template-columns: 1fr;
  }

  .home-value .home-section-head h2 {
    white-space: normal !important;
  }
}

/* ===== Mobile: separate simplified page ===== */

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .page.home-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 12px 18px !important;
    box-sizing: border-box !important;
  }

  .home-hero {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 18px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  .home-hero__content {
    display: block !important;
    max-width: none !important;
  }

  .home-kicker {
    max-width: 100% !important;
    margin-bottom: 12px !important;
    padding: 7px 10px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.105em !important;
    white-space: normal !important;
  }

  .home-hero h1 {
    max-width: none !important;
    margin: 0 0 12px !important;
    font-size: 30px !important;
    line-height: 1.07 !important;
    letter-spacing: -0.045em !important;
  }

  .home-hero p {
    max-width: none !important;
    font-size: 14px !important;
    line-height: 1.48 !important;
    font-weight: 700 !important;
  }

  .home-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .home-btn {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  .home-demo {
    display: none !important;
  }

  .home-mobile-signal {
    display: block !important;
    margin: 0 0 10px !important;
    padding: 14px 15px !important;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 18px;
    background:
      radial-gradient(circle at 100% 0%, rgba(79, 70, 229, 0.08), transparent 36%),
      rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.028);
    box-sizing: border-box !important;
  }

  .home-mobile-signal strong {
    display: block;
    margin: 0 0 6px;
    color: var(--home-text);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 950;
  }

  .home-mobile-signal span {
    display: block;
    color: var(--home-muted);
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 750;
  }

  .home-numbers {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 0 10px !important;
  }

  .home-numbers article {
    min-height: 86px !important;
    padding: 13px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .home-numbers strong {
    margin-bottom: 6px !important;
    font-size: 27px !important;
    line-height: 1 !important;
  }

  .home-numbers span {
    font-size: 11.5px !important;
    line-height: 1.28 !important;
  }

  .home-value,
  .home-entry-section {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 18px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  .home-section-head {
    margin-bottom: 14px !important;
  }

  .home-section-head h2,
  .home-value .home-section-head h2 {
    max-width: none !important;
    white-space: normal !important;
    font-size: 25px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.04em !important;
  }

  .home-value-grid,
  .home-entry-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .home-value-grid article,
  .home-entry {
    min-height: auto !important;
    padding: 15px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .home-value-grid strong,
  .home-entry strong {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .home-value-grid span,
  .home-entry span {
    font-size: 12.5px !important;
    line-height: 1.38 !important;
  }

  .home-entry {
    padding-right: 46px !important;
  }

  .home-entry::after {
    right: 14px !important;
    width: 24px !important;
    height: 24px !important;
  }
}

@media (max-width: 380px) {
  .home-hero h1 {
    font-size: 28px !important;
  }

  .home-section-head h2,
  .home-value .home-section-head h2 {
    font-size: 23px !important;
  }

  .home-numbers article {
    min-height: 84px !important;
    padding: 12px !important;
  }

  .home-numbers strong {
    font-size: 26px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-demo__row,
  .home-demo__result {
    animation: none !important;
  }
}

/* ===== Mobile finish: compact labels and lighter vertical rhythm ===== */

.mobile-label {
  display: none;
}

@media (max-width: 760px) {
  .desktop-label {
    display: none !important;
  }

  .mobile-label {
    display: inline !important;
  }

  .home-hero {
    padding: 16px !important;
  }

  .home-hero h1 {
    font-size: 28px !important;
    line-height: 1.08 !important;
  }

  .home-hero p {
    font-size: 13.5px !important;
    line-height: 1.46 !important;
  }

  .home-mobile-signal {
    padding: 13px 14px !important;
  }

  .home-numbers article {
    min-height: 74px !important;
    padding: 12px !important;
  }

  .home-numbers strong {
    font-size: 26px !important;
    margin-bottom: 4px !important;
  }

  .home-numbers span {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .home-value,
  .home-entry-section {
    padding: 16px !important;
  }

  .home-section-head h2,
  .home-value .home-section-head h2 {
    font-size: 24px !important;
    line-height: 1.12 !important;
  }

  .home-value-grid article,
  .home-entry {
    padding: 14px !important;
  }
}

/* ===== MOBILE RECOVERY: remove noisy arrows and stabilize cards ===== */

.mobile-label {
  display: none;
}

@media (max-width: 760px) {
  .desktop-label {
    display: none !important;
  }

  .mobile-label {
    display: inline !important;
  }

  .home-entry {
    padding-right: 14px !important;
  }

  .home-entry::after {
    display: none !important;
    content: none !important;
  }

  .home-entry:hover::after,
  .home-entry:focus-visible::after {
    display: none !important;
    content: none !important;
  }

  .home-value-grid article,
  .home-entry {
    min-height: auto !important;
    padding: 14px !important;
  }

  .home-numbers article {
    min-height: 72px !important;
  }
}

/* ===== CLICKABLE CARDS CTA: make service links obvious ===== */

.home-entry {
  cursor: pointer !important;
}

.home-entry::after {
  content: "Открыть раздел" !important;
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  height: auto !important;
  margin-top: 12px !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  color: #4338ca !important;
  background: rgba(79, 70, 229, 0.09) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  transform: none !important;
}

.home-entry:hover::after,
.home-entry:focus-visible::after {
  content: "Открыть раздел" !important;
  position: static !important;
  display: inline-flex !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #6d28d9) !important;
  transform: none !important;
}

.home-entry:hover,
.home-entry:focus-visible {
  border-color: rgba(79, 70, 229, 0.28) !important;
  box-shadow:
    0 10px 26px rgba(79, 70, 229, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

@media (max-width: 760px) {
  .home-entry {
    padding-right: 14px !important;
  }

  .home-entry::after,
  .home-entry:hover::after,
  .home-entry:focus-visible::after {
    content: "Открыть раздел" !important;
    position: static !important;
    display: inline-flex !important;
    margin-top: 11px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    transform: none !important;
  }
}

/* ===== DESKTOP SERVICE CARDS: align CTA buttons to same baseline ===== */

.home-entry-grid {
  align-items: stretch !important;
}

.home-entry {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 190px !important;
}

.home-entry span {
  margin-bottom: 0 !important;
}

.home-entry::after {
  margin-top: auto !important;
  align-self: flex-start !important;
}

@media (max-width: 760px) {
  .home-entry {
    min-height: auto !important;
  }

  .home-entry::after {
    margin-top: 11px !important;
  }
}

/* ===== HOME TELEGRAM CTA: bot + analytics channel ===== */

.home-telegram {
  margin: 16px auto 28px;
  padding: 28px;
  max-width: 1280px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(99, 102, 241, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-telegram__lead {
  max-width: 850px;
  margin: 0 0 22px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
}

.home-telegram__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-telegram__card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.home-telegram__label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #4338ca;
  background: rgba(79, 70, 229, 0.09);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-telegram__card strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 950;
}

.home-telegram__card p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.home-telegram__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  padding: 11px 15px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.18);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-telegram__button:hover,
.home-telegram__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.24);
}

.home-telegram__note {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 18px;
  color: #4338ca;
  background: rgba(79, 70, 229, 0.08);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

@media (max-width: 760px) {
  .home-telegram {
    margin: 14px auto 22px;
    padding: 16px !important;
    border-radius: 24px;
  }

  .home-telegram__lead {
    margin-bottom: 16px;
    font-size: 13.5px;
    line-height: 1.46;
  }

  .home-telegram__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-telegram__card {
    min-height: auto;
    padding: 14px;
    border-radius: 18px;
  }

  .home-telegram__label {
    margin-bottom: 10px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .home-telegram__card strong {
    font-size: 20px;
  }

  .home-telegram__card p {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.45;
  }

  .home-telegram__button {
    width: 100%;
    padding: 11px 14px;
    font-size: 13px;
  }

  .home-telegram__note {
    margin-top: 12px;
    padding: 12px 13px;
    font-size: 13px;
  }
}

