/* Дни факультетов СПбГУП — /enroll/help/training/faculties/
   Все правила внутри .fd. Шрифты Merriweather и SF Pro Display подключены шаблоном сайта. */
:root {
  color-scheme: light;
}
/* .band__h {
  margin: 0px !important;
  font: 700 28px/1.3 var(--serif) !important;
  color: rgb(255, 255, 255) !important;
  text-wrap: balance !important;
  text-align: left !important;
} */
.fd {
  --blue: #1383c6;
  --link: #0b76b6;
  --deep: #0a5f93;
  --tint: #eef6fb;
  --red: #8b0e04;
  --red-dark: #6e0b03;
  --ink: #282e32;
  --text: #3a4248;
  --muted: #5f6870;
  --line: #e2e7eb;
  --soft: #f5f7f9;
  --night: #0a1a2c;
  --night-2: #10284a;
  --c-theatre: #8b0e04;
  --c-film: #1383c6;
  --c-sound: #0a3f66;
  --c-dance: #5fb0e0;
  --c-all: #0a5f93;
  --t-theatre: #8b0e04;
  --t-film: #0b76b6;
  --t-sound: #0a3f66;
  --t-dance: #1f6f9f;
  --t-all: #0a5f93;
  --l-theatre: #f7eceb;
  --l-film: #e8f3fb;
  --l-sound: #e4ebf2;
  --l-dance: #eef7fd;
  --l-all: #f5f7f9;
  --serif: Merriweather, Georgia, serif;
  --sans: SFProDisplay, "SF Pro Display", Roboto, Arial, sans-serif;
  --max: 1200px;
  --sy: 88px;
  font: 16px/1.55 var(--sans);
  color: var(--text);
  background: rgb(255, 255, 255);
}
.fd *,
.fd ::before,
.fd ::after {
  box-sizing: border-box;
}
.fd :where(h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset) {
  margin: 0px;
  padding: 0px;
  border: 0px;
}
.fd img {
  display: block;
  max-width: 100%;
}
.fd :where(a) {
  text-decoration: none;
  color: var(--link);
}
.fd :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.fd-wrap {
  max-width: var(--max);
  margin: 0px auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.fd-sec {
  padding-block: var(--sy);
}
.fd-h1 {
  font: 900 54px/1.1 var(--serif);
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: -0.01em;
  margin-bottom: 0 !important;
}
.fd-h2 {
  font: 700 32px/1.25 var(--serif);
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 0 !important;
  text-align: left !important;
}
.fd-h3 {
  font: 700 18px/1.35 var(--serif);
  color: var(--ink);
  margin-bottom: 0 !important;
  text-align: left !important;
}
.fd-lead {
  font-size: 18px;
  line-height: 1.55;
  max-width: 620px;
}
.fd-eyebrow {
  font: 700 13px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
}
.fd-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  /* margin-bottom: 36px; */
}
.fd-head .fd-lead {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
}
.fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 30px;
  font: 700 15px/1.2 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 0px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s,
    transform 0.2s;
}
.fd-btn--red {
  background: var(--red);
  color: rgb(255, 255, 255);
}
.fd-btn--red:hover {
  background: var(--red-dark);
}
.fd-btn--line {
  background: transparent;
  color: var(--link);
  border-color: var(--blue);
}
.fd-btn--line:hover {
  background: var(--blue);
  color: rgb(255, 255, 255);
}
.fd-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.fd-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
}
.fd-timer {
  display: flex;
  align-items: stretch;
  font-variant-numeric: tabular-nums;
}
.fd-timer__u {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0px 22px;
  border-left: 1px solid rgb(207, 224, 236);
}
.fd-timer__u:first-child {
  padding-left: 0px;
  border-left: 0px;
}
.fd-timer__n {
  font: 300 46px/1 Roboto, var(--sans);
  color: var(--deep);
  letter-spacing: -0.01em;
}
.fd-timer__l {
  margin-top: 6px;
  font: 500 12px/1.2 var(--sans);
  color: var(--muted);
}
.fd-timer__sep {
  display: none;
}
.fd-timer-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 14px;
}
.fd-timer-cap::after {
  content: "";
  flex: 1 1 0%;
  height: 1px;
  background: rgb(207, 224, 236);
}
.fd-timer-today {
  font: 700 26px/1.25 var(--serif);
  color: var(--red);
}
.h1v__timer {
  padding: 22px 26px 24px;
  background: var(--tint);
  border-left: 3px solid var(--blue);
}
.who {
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 1fr));
  gap: 24px;
}
.who__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: rgb(255, 255, 255);
  border-top: 4px solid var(--blue);
  box-shadow: rgba(10, 60, 100, 0.5) 0px 20px 40px -34px;
}
.who__card .fd-h3 {
  font-size: 22px;
}
.who__steps {
  display: grid;
  gap: 12px;
  counter-reset: st 0;
}
.who__steps li {
  display: grid;
  grid-template-columns: 30px minmax(0px, 1fr);
  gap: 12px;
  font-size: 15px;
  counter-increment: st 1;
}
.who__steps li::before {
  content: counter(st);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--deep);
  font: 700 14px/30px var(--serif);
  text-align: center;
}
.who__list {
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.who__list li {
  display: flex;
  gap: 12px;
}
.who__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}
.who__card .fd-btn {
  margin-top: auto;
  align-self: flex-start;
}
.visit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  margin-top: 14px;
  background: rgb(255, 255, 255);
  border: 1px solid var(--line);
}
.visit li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.visit li:first-child {
  border-left: 0px;
}
.visit b {
  font: 700 17px/1.3 var(--serif);
  color: var(--ink);
}
.visit span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.visit__cap {
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
  margin-top: 40px;
}
.reg__side .fd-timer {
  --tsize: 44px;
}
.two {
  display: grid;
  grid-template-columns: minmax(0px, 1.2fr) minmax(0px, 1fr);
  gap: 56px;
  align-items: start;
}
.faq {
  margin-top: 28px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0px;
  font: 700 17px/1.4 var(--serif);
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font: 400 28px/1 var(--sans);
  color: var(--blue);
  flex: 0 0 auto;
}
.faq details p {
  padding: 0px 40px 20px 0px;
  font-size: 16px;
}
.way {
  background: rgb(255, 255, 255);
  border: 1px solid var(--line);
}
.way__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.way__body span {
  color: var(--muted);
}
.day.is-past {
  opacity: 0.7;
}
.sticky {
  display: none;
}
@media (max-width: 1023px) {
  .fd {
    --sy: 64px;
  }
  .fd-h1 {
    font-size: 42px;
  }
  .reg__in,
  .two {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .who {
    grid-template-columns: 1fr;
  }
  .visit {
    grid-template-columns: 1fr;
  }
  .visit li {
    border-left: 0px;
    border-top: 1px solid var(--line);
  }
  .visit li:first-child {
    border-top: 0px;
  }
}
@media (max-width: 767px) {
  .fd {
    --sy: 52px;
    font-size: 15px;
    padding-bottom: 78px;
  }
  .fd-wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .fd-h1 {
    font-size: 32px;
  }
  .fd-h2 {
    font-size: 24px;
  }
  .fd-lead {
    font-size: 16px;
  }
  .fd-btn {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    font-size: 14px;
  }
  .fd-head {
    margin-bottom: 24px;
  }
  .h1v__timer {
    padding: 18px 18px 20px;
  }
  .fd-timer__u {
    padding: 0px 14px;
  }
  .fd-timer__n {
    font-size: 34px;
  }
  .fd-timer__l {
    font-size: 11px;
  }
  .faq summary {
    font-size: 15px;
  }
  .faq details p {
    padding-right: 0px;
    font-size: 15px;
  }
  .sticky {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    position: fixed;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 900;
    padding: 10px max(12px, env(safe-area-inset-right, 0px))
      calc(10px + env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 0px));
    background: rgb(255, 255, 255);
    border-top: 1px solid var(--line);
    box-shadow: rgba(0, 0, 0, 0.25) 0px -8px 20px -12px;
  }
  .sticky .fd-btn {
    min-height: 48px;
    font-size: 14px;
    padding: 10px 14px;
  }
  .sticky .fd-btn--line {
    width: auto;
  }
  .sticky {
    transform: translateY(110%);
    transition: transform 0.25s;
  }
  .sticky.is-on {
    transform: none;
  }
  .who__card {
    padding: 24px 18px;
  }
}
@media (max-width: 767px) {
  .p1__items,
  .dirs,
  .who,
  .visit,
  .days {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: 4px;
    scrollbar-width: none;
    display: flex !important;
  }
  .p1__items::-webkit-scrollbar,
  .dirs::-webkit-scrollbar,
  .who::-webkit-scrollbar,
  .visit::-webkit-scrollbar,
  .days::-webkit-scrollbar {
    display: none;
  }
  .p1__items > *,
  .dirs > *,
  .who > *,
  .visit > *,
  .days > * {
    scroll-snap-align: start;
  }
  .h1v__timer {
    padding: 12px 14px 14px;
  }
  .h1v__timer .fd-timer-cap {
    margin-bottom: 8px;
  }
  .h1v .fd-timer__n {
    font-size: 28px;
  }
  .h1v .fd-timer__u {
    padding: 0px 12px;
  }
  .who > * {
    flex: 0 0 88%;
  }
  .who__card {
    gap: 12px;
  }
  .who__card .fd-h3 {
    font-size: 19px;
    line-height: 1.2 !important;
  }
  .way .fd-h3 {
    line-height: 1.2 !important;
  }
  .who__steps li,
  .who__list li {
    font-size: 14px;
  }
  .visit__cap {
    margin-top: 24px;
  }
  .visit {
    border: 0px;
    background: transparent;
  }
  .visit li,
  .visit li:first-child {
    flex: 0 0 70%;
    background: rgb(255, 255, 255);
    padding: 14px 16px;
    border: 1px solid var(--line) !important;
  }
  .way__body {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fd *,
  .fd ::before,
  .fd ::after {
    animation: auto ease 0s 1 normal none running none !important;
    transition: none !important;
  }
}
.hub-hero {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
  gap: 56px;
  align-items: start;
  padding-block: 40px 64px;
}
.hub-hero__text {
  padding-top: 8px;
}
.hub-timer__k {
  font: 700 15px/1.35 var(--sans);
  color: var(--ink);
  margin: -4px 0px 12px;
}
.hub-timer__k b {
  color: var(--red);
}
.hub-hero__all {
  font: 700 14px/1.3 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid;
  padding-bottom: 2px;
}
.hub-hero__all:hover {
  color: var(--deep);
}
.hub-hero__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.hub-hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.next {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgb(255, 255, 255);
  box-shadow: rgba(10, 60, 100, 0.55) 0px 30px 60px -40px;
  border-top: 4px solid var(--blue);
}
.next__pic {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--tint);
}
.next__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.next__badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 5px 10px;
  background: var(--red);
  color: rgb(255, 255, 255);
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.next__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px 28px;
}
.next__date {
  font: 700 15px/1.3 var(--sans);
  color: var(--red);
}
.next__title {
  font: 700 26px/1.25 var(--serif);
  color: var(--ink);
  margin-bottom: 0 !important;
  text-align: left !important;
}
.next .fd-timer__n {
  font-size: 34px;
}
.next__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.next__btns .fd-btn {
  min-height: 50px;
  padding: 12px 22px;

}
.cal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 24px;
}
.cday {
  display: flex;
  flex-direction: column;
  background: rgb(255, 255, 255);
  border: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.cday:hover {
  box-shadow: rgba(10, 60, 100, 0.5) 0px 24px 40px -30px;
}
.cday__pic {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tint);
  border-bottom: 4px solid var(--c, var(--blue));
}
.cday__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cday__body {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}
.cday__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cday__date {
  font: 900 30px/1 var(--serif);
  color: var(--ink);
}
.cday__date small {
  margin-left: 6px;
  font: 700 13px var(--sans);
  color: var(--muted);
}
.cday__st {
  padding: 3px 8px;
  font: 700 11px/1.4 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cday__st--open {
  background: var(--tint);
  color: var(--deep);
}
.cday__st--soon {
  background: var(--red);
  color: rgb(255, 255, 255);
}
.cday__st--past {
  background: rgb(236, 239, 241);
  color: var(--muted);
}
.fd .new_cday__title {
  font: 700 20px/1.3 var(--serif);
  color: var(--ink);
  margin: 0;
  text-align: left;
}

.cday__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cday__chips span {
  padding: 3px 8px;
  border: 1px solid rgb(201, 210, 216);
  font-size: 12px;
  color: var(--ink);
}
.cday__time {
  font-size: 14px;
  color: var(--muted);
}
.cday .fd-btn {
  margin-top: auto;
  align-self: flex-start;
  min-height: 46px;
  padding: 10px 20px;
  font-size: 13px;
}
.cday.is-past {
  opacity: 0.75;
}
.cday.is-past .cday__pic img {
  filter: grayscale(0.6);
}
.cday--next {
  border-style: dashed;
  border-color: rgb(185, 205, 219);
  background: transparent;
  justify-content: center;
}
.cday--next .cday__body {
  justify-content: center;
}
.wait {
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  gap: 0px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wait li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 24px 0px;
}
.wait li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.wait li::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--c, var(--blue));
}
.wait b {
  font: 700 18px/1.3 var(--serif);
  color: var(--ink);
}
.wait span {
  font-size: 15px;
  color: var(--text);
}
.sub {
  background: var(--tint);
}
.sub__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 52px;
}
.sub__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 260px;
}
.band {
  position: relative;
  height: clamp(340px, 32vw, 480px);
  overflow: hidden;
  background: var(--deep);
}
.band picture {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  width: 60%;
}
.band img {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 30%;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0px;
  background: linear-gradient(
    90deg,
    rgba(10, 95, 147, 0) 38%,
    rgba(10, 95, 147, 0.8) 52%,
    rgb(10, 95, 147) 60%
  );
}
.band__cap {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.band__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}
.band__k {
  margin: 0px;
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.band__h {
  margin: 0px !important;
  font: 700 28px/1.3 var(--serif) !important;
  color: rgb(255, 255, 255) !important;
  text-wrap: balance !important;
  text-align: left !important;
}
.band__t {
  margin: 0px;
  font: 400 16px/1.5 var(--sans);
  color: rgba(255, 255, 255, 0.88);
}
.band__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.band__btn {
  min-width: 160px;
  background: transparent;
  color: rgb(255, 255, 255);
  border-color: rgba(255, 255, 255, 0.85);
}
.band__btn:hover {
  background: rgb(255, 255, 255);
  color: var(--deep);
}
@media (max-width: 1023px) {
  .hub-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cal {
    grid-template-columns: 1fr 1fr;
  }
  .wait {
    grid-template-columns: 1fr 1fr;
  }
  .wait li:nth-child(3) {
    padding-left: 0px;
    border-left: 0px;
  }
  .sub__in {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 767px) {
  .fd .new_cday__title {
    font: 700 20px/1.3 var(--serif);
    color: var(--ink);
    line-height: 1.2 !important;
  }
  .hub-hero {
    padding-block: 20px 8px;
  }
  .hub-hero__text {
    gap: 14px;
  }
  .hub-hero .fd-eyebrow {
    display: none;
  }
  .next__body {
    padding: 18px 16px 20px;
  }
  .next__title {
    font-size: 22px;
  }
  .next .fd-timer__n {
    font-size: 28px;
  }
  .next .fd-timer__u {
    padding: 0px 12px;
  }
  .next__btns .fd-btn {
    width: 100%;
    text-align: center;
  }
  .hub-hero__text .fd-btn--line,
  .hub-hero__btns {
    display: none;
  }
  .cday .fd-btn {
    align-self: stretch;
    width: 100%;
  }
  .next__pic {
    aspect-ratio: 4 / 3;
  }
  .cday__pic {
    aspect-ratio: 4 / 3;
    min-height: 252px;
  }
  .cal,
  .wait,
  .gal,
  .who,
  .visit {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: 4px;
    scrollbar-width: none;
    display: flex !important;
  }
  .cal > * {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .wait {
    border: 0px;
  }
  .wait li,
  .wait li + li {
    flex: 0 0 70%;
    padding: 16px;
    border: 1px solid var(--line);
    background: rgb(255, 255, 255);
    scroll-snap-align: start;
  }
  .sub__in {
    padding-block: 36px;
  }
  .sub__btns .fd-btn {
    flex: 1 1 0%;
  }
  .band {
    height: auto;
  }
  .band picture {
    position: static;
    width: auto;
    display: block;
  }
  .band img {
    position: static;
    height: 240px;
  }
  .band::after {
    inset: 0px 0px auto;
    height: 240px;
    background: linear-gradient(
      rgba(10, 95, 147, 0) 50%,
      rgb(10, 95, 147) 100%
    );
  }
  .band__cap {
    height: auto;
    padding-top: 4px;
    padding-bottom: 32px;
  }
  .band__card {
    max-width: none;
  }
  .band__h {
    font-size: 21px !important;
  }
  .band__t {
    font-size: 15px;
  }
  .band__btn {
    flex: 1 1 0%;
    min-width: 0px;
  }
}
