/* ==========================================================================
   DIRECTNAVIGATOR — TEASER GUARANTEES SECTION (MOCKUP ACCURATE)
   ========================================================================== */

#guarantees.tzr-section--dark {
  position: relative;
  background: #070a0d !important;
  color: #ffffff !important;
  padding: clamp(6rem, 8.5vw, 9rem) 0 !important; /* Увеличенная высота и премиальный простор блока */
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Subtle background glow and ambient depth */
#guarantees::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16) 0%, rgba(22, 163, 74, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(55px);
}

#guarantees .tz-container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - clamp(1.25rem, 2.5vw, 3rem) * 2), 104rem) !important;
  max-width: 104rem !important;
  margin-inline: auto !important;
}

/* Main 3-column layout matching the mockup */
.tz-gr-mockup-grid {
  display: grid;
  grid-template-columns: minmax(320px, 375px) minmax(320px, 1fr) minmax(400px, 500px);
  align-items: center;
  gap: clamp(2rem, 3.5vw, 4.5rem);
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: Eyebrow, Heading, Lead
   -------------------------------------------------------------------------- */
.tz-gr-mockup-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tz-gr-mockup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ade80;
}

.tz-gr-mockup-eyebrow__dash {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #22c55e;
  border-radius: 2px;
  flex-shrink: 0;
}

.tz-gr-mockup-title {
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(2.3rem, 3.2vw, 3.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  margin: 0 0 1.5rem 0 !important;
}

.tz-gr-mockup-title__accent {
  display: inline-block;
  color: #64ee3f !important;
  -webkit-text-fill-color: #64ee3f !important;
  white-space: nowrap;
}

#guarantees .tz-gr-mockup-lead {
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem) !important;
  line-height: 1.6 !important;
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  margin: 0 !important;
  max-width: 36ch;
}

/* --------------------------------------------------------------------------
   CENTER COLUMN: 3D Visual Centerpiece
   -------------------------------------------------------------------------- */
.tz-gr-mockup-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tz-gr-mockup-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tz-gr-mockup-visual-wrap::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.25) 0%, rgba(34, 197, 94, 0.08) 55%, transparent 75%);
  filter: blur(35px);
  pointer-events: none;
  z-index: 0;
}

.tz-gr-mockup-visual-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 45px rgba(74, 222, 128, 0.28));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  user-select: none;
  pointer-events: auto;
}

.tz-gr-mockup-visual-img:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 60px rgba(74, 222, 128, 0.42));
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: Connected Timeline & 4 White Cards
   -------------------------------------------------------------------------- */
.tz-gr-mockup-right {
  display: flex;
  align-items: center;
  position: relative;
}

.tz-gr-mockup-timeline-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Legacy line disabled to prevent overshoot; row connectors handle it dynamically */
.tz-gr-mockup-timeline-line {
  display: none !important;
}

.tz-gr-mockup-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Each card row contains the timeline node + branch + card */
.tz-gr-mockup-card-row {
  display: flex;
  align-items: center;
  position: relative;
}

/* Dynamic vertical connector between nodes without overshoot */
.tz-gr-mockup-card-row:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  height: calc(100% + 1.15rem);
  width: 2px;
  background: linear-gradient(180deg, #4ade80, #22c55e);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.45);
  z-index: 1;
}

/* Timeline node */
.tz-gr-mockup-node {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.tz-gr-mockup-node__ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #070a0d;
  border: 2px solid #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6), inset 0 0 6px rgba(74, 222, 128, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.tz-gr-mockup-node__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64ee3f;
  box-shadow: 0 0 6px #64ee3f;
  transition: transform 0.25s ease;
}

/* Horizontal branch from node ring directly into the card edge */
.tz-gr-mockup-branch {
  width: 22px;
  height: 2px;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* The White Card */
.tz-gr-mockup-card {
  flex: 1;
  min-width: 0;
  min-height: 84px;
  background: #ffffff !important;
  border-radius: 18px;
  padding: 1.1rem 1.45rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.tz-gr-mockup-card-row:hover .tz-gr-mockup-card {
  transform: translateX(4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(74, 222, 128, 0.35);
}

.tz-gr-mockup-card-row:hover .tz-gr-mockup-node__ring {
  border-color: #64ee3f;
  box-shadow: 0 0 14px rgba(100, 238, 63, 0.85), inset 0 0 8px rgba(100, 238, 63, 0.55);
}

.tz-gr-mockup-card-row:hover .tz-gr-mockup-node__dot {
  transform: scale(1.3);
}

.tz-gr-mockup-card-row:hover .tz-gr-mockup-branch {
  background: #64ee3f;
  box-shadow: 0 0 8px rgba(100, 238, 63, 0.7);
}

/* Card Icon Squircle */
.tz-gr-mockup-card__icon-box {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: #e8f9ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.tz-gr-mockup-card-row:hover .tz-gr-mockup-card__icon-box {
  transform: scale(1.05);
  background: #dcfce7;
}

.tz-gr-mockup-card__icon-box img,
.tz-gr-mockup-card__icon-box svg {
  width: 25px;
  height: 25px;
  display: block;
}

/* Card Text Content */
.tz-gr-mockup-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.tz-gr-mockup-card__title {
  font-family: "Manrope", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  color: #0c1015 !important;
  -webkit-text-fill-color: #0c1015 !important;
  margin: 0 !important;
  letter-spacing: -0.015em;
}

.tz-gr-mockup-card__desc {
  font-family: "Manrope", sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 450 !important;
  line-height: 1.4 !important;
  color: #4b5563 !important;
  -webkit-text-fill-color: #4b5563 !important;
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .tz-gr-mockup-grid {
    grid-template-columns: minmax(280px, 320px) 1fr minmax(360px, 450px);
    gap: 2rem;
  }
  .tz-gr-mockup-card {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .tz-gr-mockup-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }
  
  .tz-gr-mockup-left {
    grid-column: 1;
    grid-row: 1;
  }
  
  .tz-gr-mockup-center {
    grid-column: 2;
    grid-row: 1;
  }
  
  .tz-gr-mockup-right {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 680px;
    margin-inline: auto;
    width: 100%;
  }

  .tz-gr-mockup-visual-wrap {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  #guarantees.tzr-section--dark {
    padding: clamp(4.5rem, 6.5vw, 6rem) 0 !important;
    min-height: auto;
  }

  .tz-gr-mockup-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
  }

  .tz-gr-mockup-left {
    grid-column: 1;
    grid-row: 1;
  }

  #guarantees .tz-gr-mockup-lead {
    max-width: 100%;
  }

  .tz-gr-mockup-center {
    grid-column: 1;
    grid-row: 2;
  }

  .tz-gr-mockup-visual-wrap {
    max-width: 320px;
  }

  .tz-gr-mockup-right {
    grid-column: 1;
    grid-row: 3;
    max-width: 100%;
  }

  .tz-gr-mockup-card {
    padding: 0.95rem 1.15rem;
    min-height: auto;
  }

  .tz-gr-mockup-card__title {
    font-size: 0.98rem !important;
  }

  .tz-gr-mockup-card__desc {
    font-size: 0.8125rem !important;
  }
}

@media (max-width: 480px) {
  .tz-gr-mockup-card-row:not(:last-child)::before {
    left: 9px;
    height: calc(100% + 0.85rem);
  }

  .tz-gr-mockup-node {
    width: 20px;
    height: 20px;
  }

  .tz-gr-mockup-node__ring {
    width: 18px;
    height: 18px;
  }

  .tz-gr-mockup-node__dot {
    width: 4px;
    height: 4px;
  }

  .tz-gr-mockup-branch {
    width: 10px;
  }

  .tz-gr-mockup-cards-list {
    gap: 0.85rem;
  }

  .tz-gr-mockup-card {
    padding: 0.75rem 0.95rem;
    gap: 0.75rem;
    border-radius: 14px;
    min-height: auto;
  }

  .tz-gr-mockup-card__icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .tz-gr-mockup-card__icon-box img {
    width: 20px;
    height: 20px;
  }

  .tz-gr-mockup-card__title {
    font-size: 0.92rem !important;
    white-space: nowrap;
  }

  .tz-gr-mockup-card__desc {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }
}
