/* ===== main-page.css — styles for the new main page sections ===== */
/* Legacy rule preserved */
.container-margin{margin-top:0px !important}

/* ===== CSS Variables (scoped to #new-timeline) ===== */
#new-numbers,
#new-timeline {
  --bg:#FFFFFF; --bg-alt:#FCF7F3;
  --ink:#1C1613; --ink-soft:#6E6259;
  --brand:#FF5A1F; --brand-deep:#C7390E; --brand-pale:#FFE7D9;
  --accent:#FFB020; --plum:#57433A; --plum-deep:#42322A;
  --line:rgba(28,22,19,0.09);
  --shadow-sm:0 6px 20px rgba(255,90,31,.28);
  --shadow-md:0 12px 34px rgba(28,22,19,.08);
  --radius:20px;
}

/* ===== Reset default.css interference inside #new-timeline ===== */
#new-timeline,
#new-timeline *,
#new-timeline *::before,
#new-timeline *::after,
#new-numbers,
#new-numbers *,
#new-numbers *::before,
#new-numbers *::after {
  box-sizing: border-box;
}

#new-timeline,
#new-numbers {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  /* break out of any parent container for full-width background */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

#new-timeline h2,
#new-timeline h4,
#new-numbers h2,
#new-numbers h4 {
  font-family: 'Unbounded', sans-serif;
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
}

#new-timeline button,
#new-numbers button {
  font-family: inherit;
}

#new-timeline a,
#new-numbers a {
  text-decoration: none;
  color: inherit;
}

/* ===== section system ===== */
#new-timeline .section,
#new-numbers .section {
  padding: 96px 0;
  position: relative;
  z-index: 2;
  background: var(--bg);
}

#new-timeline .section.alt,
#new-numbers .section.alt {
  background: var(--bg-alt);
}

#new-timeline .wrap,
#new-numbers .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

#new-timeline .head,
#new-numbers .head {
  max-width: 640px;
  margin-bottom: 48px;
}

#new-timeline .head.center,
#new-numbers .head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#new-timeline .head h2,
#new-numbers .head h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 12px;
}

#new-timeline .head p,
#new-numbers .head p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 500;
}

/* ===== reveal animation ===== */
/* Elements visible by default; animation only activates after JS sets .js-reveal-ready */
#new-timeline.js-reveal-ready [data-reveal],
#new-numbers.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}

#new-timeline.js-reveal-ready [data-reveal].in,
#new-numbers.js-reveal-ready [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ===== eyebrow pill ===== */
#new-timeline .eyebrow,
#new-numbers .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-pale);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

#new-numbers .eyebrow.big {
  font-size: 14px;
  padding: 10px 22px;
  margin-bottom: 0;
}
/* ===== numbers: bento + одометр ===== */
#new-numbers .bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 14px;
}
#new-numbers .bento-card {
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
    flex-direction: column;
    justify-content: center;
}
#new-numbers .bento-card.big {
  grid-row: span 2;
  background: linear-gradient(155deg, #42322A 0%, #57433A 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 250px;
}

#new-numbers .bento-card.big::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,90,31,.55) 0%, rgba(255,90,31,0) 70%);
  right: -90px;
  bottom: -100px;
  pointer-events: none;
}
#new-numbers .bento-card.big .eyebrow {
  background: rgba(255,90,31,.22);
  color: #FFB58F;
  margin: 0;
  align-self: flex-start;
  position: relative;
  z-index: 2;
}
#new-numbers .bento-card.big .n {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px, 4.2vw, 42px);
  font-weight: 800;
  color: var(--brand);
  position: relative;
  z-index: 2;
  display: flex;
  gap: .25em;
  line-height: 1.1;
}
#new-numbers .bento-card.big .l {
  font-size: 13.5px;
  font-weight: 600;
  opacity: .8;
  margin-top: 5px;
  position: relative;
  z-index: 2;
  max-width: 240px;
  line-height: 1.45;
}
#new-numbers .bento-card.orange {
  background: var(--brand);
  color: #fff;
}
#new-numbers .bento-card.pale {
  background: var(--brand-pale);
  color: var(--ink);
}
#new-numbers .bento-card.plum {
  background: var(--plum);
  color: #fff;
  grid-column: span 2;
}
#new-numbers .bento-card .n2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(25px, 3.1vw, 31px);
  font-weight: 800;
  line-height: 1.15;
}
#new-numbers .bento-card .l2 {
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 4px;
  opacity: .85;
  line-height: 1.4;
}
#new-numbers .odo-digits {
  display: inline-flex;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  color: inherit;
  font-size: inherit;
}
#new-numbers .odo-digit {
  display: inline-block;
  overflow: hidden;
  height: 1.1em;
  position: relative;
}
#new-numbers .odo-digit .strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
}
#new-numbers .odo-digit .strip span {
  height: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}
#new-numbers .odo-suffix {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  color: inherit;
  font-size: inherit;
}


/* ===== timeline header accent ===== */
#new-timeline .tl-head {
  max-width: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}
#new-timeline .tl-head .eyebrow {
  margin: 6px 0 0;
  white-space: nowrap;
  flex-shrink: 0;
}
#new-timeline .head h2.title-lg {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  margin-bottom: 0;
}

/* ===== timeline scrubber ===== */
#new-timeline .tl-scrubber {
  position: relative;
  max-width: 780px;
  margin: 0 auto 34px;
  padding: 0 10px;
  height: 56px;
}
#new-timeline .tl-line {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
}
#new-timeline .tl-fill {
  position: absolute;
  left: 10px;
  top: 50%;
  height: 2px;
  background: var(--brand);
  width: 0;
  transform: translateY(-50%);
  transition: width .4s ease;
}
#new-timeline .tl-dots {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  z-index: 2;
}
#new-timeline .tl-year-pt {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 5px;
  font-family: 'Unbounded';
  font-weight: 700;
  font-size: 10px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .25s;
}
#new-timeline .tl-year-pt.top {
  transform: translateY(-15px);
}
#new-timeline .tl-year-pt.bottom {
  transform: translateY(15px);
}
#new-timeline .tl-year-pt:hover {
  color: var(--brand);
}
#new-timeline .tl-year-pt.active {
  color: var(--brand-deep);
}

/* ===== timeline card scroll ===== */
#new-timeline .timeline-scroll {
  position: relative;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 14px 10px 22px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
#new-timeline .timeline-scroll::-webkit-scrollbar {
  height: 6px;
}
#new-timeline .timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,90,31,.25);
  border-radius: 10px;
}

/* ===== timeline cards ===== */
#new-timeline .tl-card {
  flex: 0 0 262px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s, transform .25s ease;
}
#new-timeline .tl-card:hover {
  border-color: rgba(255,90,31,.4);
}
#new-timeline .tl-card.active {
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(255,90,31,.16);
}
#new-timeline .tl-card .year {
  font-family: 'Unbounded';
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
#new-timeline .tl-card .year .dt {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
#new-timeline .tl-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
#new-timeline .tl-card p {
  font-size: 13.2px;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 500;
  margin: 0;
  padding: 0;
  border: none;
}

/* ===== timeline hint ===== */
#new-timeline .timeline-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 6px;
}

/* ===== responsive ===== */
@media (max-width:768px) {
  #new-timeline .timeline-scroll {
    padding-left: calc(50% - 131px);
    padding-right: calc(50% - 131px);
    scroll-snap-type: x mandatory;
  }
  #new-timeline .tl-card {
    scroll-snap-align: center;
    scroll-snap-stop: normal;
  }
}
@media (max-width:700px) {
  #new-timeline .tl-year-pt {
    font-size: 8.2px;
    padding: 4px 2px;
  }
}
@media (max-width:560px) {
  #new-timeline .wrap,
  #new-numbers .wrap {
    padding: 0 16px;
  }
  #new-numbers .bento {
    grid-template-columns: 1fr;
  }
  
  #new-numbers .bento-card {
      padding: 18px;
  }
  
  
#new-numbers .bento-card.big{
      min-height: 0;
  }
  
  #new-numbers .bento-card.big .eyebrow{
      font-size: 10px;
          padding: 4px 8px;
      align-self: flex-end;
  }
  
  #new-numbers .bento-card.big .n{
      margin-top: -110px;
  }
  
  #new-timeline .tl-head .eyebrow {
    font-size: 10.5px;
    padding: 6px 11px;
  }
  #new-timeline .tl-head h2 {
    font-size: clamp(26px, 7vw, 34px);
  }
}
