/* 02 День и вечер — деловая часть на свету, вечерняя на тёмном */

/* смена дня меняет высоту сцены; без этого браузер сдвигает всю страницу */
html { overflow-anchor: none; }

.v2 {
  --v2-night:
    radial-gradient(140% 100% at 74% 26%, rgba(38, 154, 143, .60) 0%, rgba(38, 154, 143, 0) 56%),
    radial-gradient(80% 58% at 104% 0%, rgba(80, 178, 137, .50) 0%, rgba(80, 178, 137, 0) 62%),
    radial-gradient(80% 70% at 2% 62%, rgba(108, 90, 216, .58) 0%, rgba(108, 90, 216, 0) 60%),
    radial-gradient(90% 66% at 52% 108%, rgba(63, 102, 199, .48) 0%, rgba(63, 102, 199, 0) 64%),
    radial-gradient(64% 52% at 0% 0%, rgba(48, 74, 158, .50) 0%, rgba(48, 74, 158, 0) 65%),
    linear-gradient(107deg, #252b60 0%, #1d2c58 46%, #1d4257 100%);
  --v2-tab:
    radial-gradient(120% 140% at 80% 10%, rgba(38, 154, 143, .50) 0%, rgba(38, 154, 143, 0) 58%),
    radial-gradient(90% 120% at 2% 80%, rgba(108, 90, 216, .45) 0%, rgba(108, 90, 216, 0) 62%),
    linear-gradient(112deg, #323b6e 0%, #2e4668 52%, #2c6260 100%);
  padding-top: clamp(44px, 5.4vw, 82px);
  padding-bottom: 20px;
}

.v2-head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3.55fr);
  gap: clamp(36px, 4.8vw, 92px);
  align-items: start;
}

.v2-title {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -.014em;
}

.v2-title .v2-accent--gold {
  color: #b1741c;
  background-image: linear-gradient(100deg, #7b3d0d 0%, #b1741c 52%, #d9a441 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.v2-head__side { min-width: 0; }

.v2-intro {
  margin: 3px 0 0;
  max-width: 38ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* — полоса цифр — */

.v2-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(28px, 3.2vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.v2-stats li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 1vw, 14px);
  padding: 17px 0 15px;
}

.v2-stats li + li { padding-left: clamp(16px, 2vw, 28px); }

.v2-stats li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--hairline);
}

.v2-stats b {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(21px, 1.9vw, 28px);
  line-height: 1;
  color: var(--ink-soft);
}

.v2-stats span {
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* — дни как карточки — */

.v2-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, .7vw, 10px);
  margin-top: clamp(28px, 3.2vw, 44px);
}

.v2-daytab {
  --daytab-weekday-size: clamp(9px, .73vw, 10.5px);
  --daytab-weekday-gap: clamp(5px, .55vw, 8px);
  --daytab-pad-bottom: clamp(18px, 1.7vw, 24px);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(124px, 9.9vw, 142px);
  padding: clamp(18px, 1.7vw, 24px) clamp(18px, 1.9vw, 28px);
  padding-bottom: calc(var(--daytab-pad-bottom) + var(--daytab-weekday-size) * 1.2 + var(--daytab-weekday-gap));
  text-align: left;
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, .16);
  color: var(--ink);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.v2-daytab:hover { background: rgba(255, 255, 255, .52); }

.v2-daytab[aria-selected="true"] {
  background: var(--v2-tab);
  border-color: rgba(244, 227, 198, .26);
  color: rgba(244, 227, 198, .94);
}

.v2-daytab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--gold);
}

.v2-daytab[aria-selected="true"]:hover {
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .12);
}

.v2-daytab:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.v2-daytab__date {
  display: flex;
  /* месяц стоит ниже дня недели, поэтому к числу прижимаем именно его */
  align-items: last baseline;
  gap: clamp(12px, 1.2vw, 18px);
  min-width: 0;
}

.v2-daytab__num {
  font-family: var(--heading);
  font-size: clamp(42px, 4vw, 58px);
  line-height: .8;
  letter-spacing: -.045em;
  color: rgba(23, 22, 19, .27);
  transition: color .3s ease;
}

.v2-daytab[aria-selected="true"] .v2-daytab__num { color: var(--gold); }

.v2-daytab__meta {
  display: flex;
  /* в разметке первым идёт месяц; реверс поднимает день недели над ним */
  flex-direction: column-reverse;
  gap: var(--daytab-weekday-gap);
  min-width: 0;
}

.v2-daytab__month {
  font-family: var(--heading);
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1;
  letter-spacing: -.005em;
}

.v2-daytab__weekday {
  /* визуальный сдвиг на полшага: поток и высоты не меняются */
  transform: translateY(4px);
  font-size: var(--daytab-weekday-size);
  line-height: 0.8;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color .3s ease;
}

.v2-daytab[aria-selected="true"] .v2-daytab__weekday { color: rgba(244, 227, 198, .74); }

.v2-daytab__count {
  position: absolute;
  top: clamp(18px, 1.7vw, 24px);
  right: clamp(18px, 1.9vw, 28px);
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: right;
  color: var(--ink-soft);
  transition: color .3s ease;
}

.v2-daytab[aria-selected="true"] .v2-daytab__count { color: rgba(244, 227, 198, .84); }

/* — сцена дня — */

.v2-stage {
  position: relative;
  margin-top: clamp(30px, 3.4vw, 48px);
  overflow-anchor: none;
}

.v2-panel[hidden] { display: none; }

.v2-stage.is-switching {
  overflow: hidden;
  transition: height .36s cubic-bezier(.22, .61, .36, 1);
}

.v2-stage.is-switching .v2-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.v2-panel.is-leaving {
  opacity: 0;
  transition: opacity .2s ease;
}

.v2-panel.is-entering {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .34s ease, transform .34s cubic-bezier(.22, .61, .36, 1);
}

.v2-panel.is-entering.is-in {
  opacity: 1;
  transform: none;
}

.v2-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
}

.v2-split--single { grid-template-columns: minmax(0, 1fr); }

.v2-business { min-width: 0; }

.v2-parthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline-strong);
}

.v2-parthead h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.v2-parthead span {
  font-size: 10.5px;
  letter-spacing: .09em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* — деловые события — */

.v2-ev {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(106px, 9vw, 136px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 26px);
  padding: clamp(20px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--hairline);
}

.v2-ev::before {
  content: "";
  position: absolute;
  inset: 4px calc(clamp(14px, 1.4vw, 20px) * -1);
  z-index: -1;
  background: rgba(255, 255, 255, .52);
  box-shadow: 0 1px 2px rgba(23, 22, 19, .045);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.v2-ev:hover::before { opacity: 1; }

.v2-ev__aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.v2-ev__kind {
  margin: 0;
  font-size: 8.5px;
  line-height: 1.3;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.v2-ev__time {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.2;
  letter-spacing: -.005em;
  color: var(--teal);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color .25s ease;
}

.v2-ev:hover .v2-ev__time { color: var(--teal-deep); }

.v2-ev__main { min-width: 0; }

.v2-ev__title {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(20px, 1.85vw, 27px);
  line-height: 1.14;
  letter-spacing: -.008em;
  text-wrap: balance;
  transition: color .25s ease;
}

.v2-ev:hover .v2-ev__title { color: var(--teal-deep); }

.v2-ev__sub {
  display: block;
  margin-top: 7px;
  max-width: 50ch;
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(13.5px, 1vw, 14.5px);
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.v2-ev__lead {
  margin: 9px 0 0;
  max-width: 56ch;
  font-size: clamp(13.5px, 1vw, 14.5px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.v2-ev__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.v2-ev__topics li {
  padding: 4px 9px 5px;
  border: 1px solid rgba(23, 22, 19, .15);
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--ink-soft);
}

.v2-ev--quiet { padding-block: clamp(22px, 2.2vw, 28px); }

.v2-ev--quiet:hover::before { opacity: 0; }

.v2-ev--quiet:hover .v2-ev__title { color: var(--ink); }

.v2-ev--quiet:hover .v2-ev__time { color: var(--ink-soft); }

.v2-ev--quiet .v2-ev__title { color: var(--ink); }

.v2-ev--quiet .v2-ev__lead {
  display: block;
  margin-top: 9px;
  max-width: 68ch;
}

.v2-ev--quiet .v2-ev__sub { display: none; }

.v2-ev--quiet .v2-ev__kind { color: var(--ink-soft); }

.v2-ev--quiet .v2-ev__time { color: var(--ink-soft); }

/* — раскрытие на details — */

.v2-ev__details { margin-top: 13px; }

.v2-ev__details summary { list-style: none; }
.v2-ev__details summary::-webkit-details-marker { display: none; }

.v2-ev__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  cursor: pointer;
  transition: color .2s ease;
}

.v2-ev__more:hover { color: var(--teal-deep); }

.v2-ev__more:focus-visible {
  outline: 1px solid var(--teal);
  outline-offset: 4px;
}

.v2-ev__more svg {
  width: 9px;
  height: 9px;
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}

.v2-ev__details[open] .v2-ev__more svg { transform: rotate(45deg); }

.v2-ev__more-open { display: none; }
.v2-ev__details[open] .v2-ev__more-open { display: inline; }
.v2-ev__details[open] .v2-ev__more-closed { display: none; }

.v2-ev__panel {
  margin-top: 13px;
  padding: 2px 0 2px 15px;
  border-left: 2px solid var(--teal);
  animation: v2-detail .32s ease both;
}

@keyframes v2-detail {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.v2-ev__thesis {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(13.5px, 1.02vw, 15px);
  line-height: 1.62;
  color: var(--ink);
  text-wrap: pretty;
}

.v2-ev__note {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* — вечерняя панель — */

.v2-night {
  position: relative;
  overflow: hidden;
  background: var(--v2-night);
  color: var(--cream);
}

.v2-night::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

.v2-evening {
  padding: clamp(22px, 2.6vw, 36px);
  border-top: 1px solid rgba(244, 227, 198, .34);
}

.v2-evening__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(244, 227, 198, .22);
}

.v2-evening__head h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--cream);
}

.v2-evening__head span {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v2-evening .v2-ev {
  grid-template-columns: clamp(82px, 6.6vw, 102px) minmax(0, 1fr);
  padding: clamp(18px, 2vw, 24px) 0;
  border-bottom: 1px solid rgba(244, 227, 198, .16);
}

.v2-evening .v2-ev:last-child { border-bottom: 0; padding-bottom: 4px; }

.v2-evening .v2-ev:hover::before { opacity: 0; }

.v2-evening .v2-ev__kind { color: rgba(244, 227, 198, .62); }

.v2-evening .v2-ev__time { color: var(--gold); }

.v2-evening .v2-ev:hover .v2-ev__time { color: #ffe3b4; }

.v2-evening .v2-ev__title { color: var(--cream); }

.v2-evening .v2-ev:hover .v2-ev__title { color: var(--gold); }

.v2-evening .v2-ev__sub { color: rgba(244, 227, 198, .78); }

.v2-evening .v2-ev__lead { color: rgba(244, 227, 198, .8); }

.v2-evening .v2-ev__topics li {
  border-color: rgba(255, 206, 128, .34);
  color: rgba(244, 227, 198, .9);
}

.v2-evening .v2-ev__more { color: var(--gold); }

.v2-evening .v2-ev__more:hover { color: #ffe3b4; }

.v2-evening .v2-ev__more:focus-visible { outline-color: var(--gold); }

.v2-evening .v2-ev__panel { border-left-color: var(--gold); }

.v2-evening .v2-ev__thesis { color: rgba(244, 227, 198, .92); }

.v2-evening .v2-ev__note { color: rgba(244, 227, 198, .76); }

/* — адаптив — */

@media (max-width: 1120px) {
  .v2-split { gap: clamp(24px, 3vw, 40px); }

  .v2-ev {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 16px;
  }

  .v2-evening .v2-ev {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .v2-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .v2-head__side { max-width: 52ch; }

  .v2-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .v2 { padding-top: 34px; }

  .v2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .v2-stats li { padding: 14px 0 12px; }

  .v2-stats li + li { padding-left: 14px; }

  .v2-stats li:nth-child(odd) { padding-left: 0; }

  .v2-stats li:nth-child(3) { border-top: 1px solid var(--hairline); }

  .v2-stats li:nth-child(4) { border-top: 1px solid var(--hairline); }

  .v2-stats li:nth-child(3)::before { display: none; }

  .v2-daytab {
    --daytab-weekday-size: 8.5px;
    --daytab-weekday-gap: 5px;
    --daytab-pad-bottom: 14px;
    min-height: 112px;
    padding-top: 13px;
    padding-left: 14px;
    padding-right: 14px;
    gap: 16px;
  }

  .v2-daytab__date { gap: 8px; }

  .v2-daytab__num { font-size: clamp(34px, 9vw, 40px); }

  .v2-daytab__month { font-size: clamp(14px, 4vw, 17px); }

  .v2-daytab__weekday { letter-spacing: .12em; }

  .v2-daytab__count {
    top: 13px;
    right: 14px;
    font-size: 7.5px;
    letter-spacing: .06em;
  }

  .v2-ev {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 18px;
  }

  .v2-ev::before { inset: 5px -14px; }

  .v2-ev__aside {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 0;
  }

  .v2-ev__time { font-size: 17px; }

  .v2-ev__main { margin-top: 10px; }

  .v2-ev__title { font-size: 21px; }

  .v2-evening {
    margin-inline: calc(var(--pad) * -1);
    padding: 26px var(--pad) 30px;
    border-top: 1px solid rgba(244, 227, 198, .3);
  }

  .v2-evening .v2-ev {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .v2-evening .v2-ev__aside {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }

  .v2-evening .v2-ev__main { margin-top: 10px; }

  .v2-split { gap: 30px; }
}

@media (max-width: 380px) {
  .v2-daytab {
    --daytab-weekday-size: 8px;
    --daytab-pad-bottom: 13px;
    min-height: 104px;
    padding-top: 12px;
    padding-left: 11px;
    padding-right: 11px;
  }

  .v2-daytab__date { gap: 6px; }

  .v2-daytab__num { font-size: 32px; }

  .v2-daytab__month { font-size: 13px; }

  .v2-daytab__weekday { letter-spacing: .1em; }

  .v2-daytab__count {
    top: 12px;
    right: 11px;
    font-size: 7.5px;
    letter-spacing: .04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-stage.is-switching { transition: none; }
  .v2-panel.is-entering,
  .v2-panel.is-leaving { transition: none; }
  .v2-ev__panel { animation: none; }
  .v2-ev__more svg { transition: none; }
  .v2-daytab { transition: none; }
}
