/* Мобильная визитка Evolution: стили изолированы от кабинета события. */

.presentation-page {
  --present-muted: rgb(255 255 255 / 72%);
}

.presentation-page .container {
  width: min(calc(100% - 2.5rem), var(--container-width));
}

.presentation-page .site-header {
  position: absolute;
  animation: none;
  background: transparent;
}

.presentation-page .present-header {
  --present-brand-width: clamp(7rem, 34vw, 12rem);
  --present-brand-height: calc(var(--present-brand-width) * 40 / 330.65);
  min-height: 4rem;
  gap: 1rem;
  justify-content: flex-start;
}

.presentation-page .brand {
  flex-shrink: 0;
}

.presentation-page .brand__logo {
  width: var(--present-brand-width);
}

.present-header__title {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.15rem 0.45rem;
  min-width: 0;
  max-width: none;
  margin: 0;
  color: #fff;
  /* Высота видимых букв Montserrat соответствует высоте SVG-логотипа. */
  font-size: calc(var(--present-brand-height) * 1.35);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.present-header__title span {
  display: inline;
  font-size: inherit;
  color: #91bdff;
  white-space: nowrap;
}

.present-hero {
  background: #0b0d11;
}

.present-hero__visual {
  --present-hero-top-shade: rgb(0 0 0 / 25%);
  --present-hero-shade: rgb(0 0 0 / 40%);
  --present-hero-bottom-shade: rgb(0 0 0 / 85%);
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  min-height: 100dvh;
  padding-block: calc(5rem + env(safe-area-inset-top)) 1.5rem;
  background:
    linear-gradient(180deg, var(--present-hero-top-shade), var(--present-hero-shade) 35%, var(--present-hero-bottom-shade)),
    #101725 url("../images/evo_26/presentation/evolution-hall-speaker-centered.png") 60% center / cover;
}

.present-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.present-hero__layout > * {
  max-width: 38rem;
}

.present-hero__text {
  display: grid;
  gap: inherit;
  padding: 1rem;
  border-radius: 0.875rem;
  background: rgb(0 0 0 / 28%);
}

.present-kicker {
  margin: 0 0 1.25rem;
  color: #91bdff;
  font-size: 0.7rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.present-hero .present-kicker {
  margin-bottom: 0.65rem;
  font-size: 0.6rem;
  letter-spacing: 0.07em;
}

.present-hero__lead {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.4;
  font-weight: 450;
}

.present-hero__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
}

.present-hero__details p {
  margin: 0;
}

.present-hero__details span {
  display: block;
  margin-top: 0.25rem;
  color: var(--present-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.present-about__media {
  min-width: 0;
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
}

.present-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 0.875rem;
  background: #000;
}

.present-video__caption {
  margin: 0 0 0.75rem;
  color: var(--present-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.present-video__error {
  margin: 0.75rem 0 0;
  color: var(--present-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.present-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.625rem;
}

.present-hero__invitation {
  margin: 0;
  color: var(--present-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.presentation-page .venue-button {
  min-height: 3rem;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.presentation-page .venue-button--primary:is(:hover, :focus-visible) {
  background: #246ed8;
}

.presentation-page .venue-button:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none;
}

.presentation-page button:focus-visible,
.present-video:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.present-section {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.present-section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.present-section-heading--wide {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: 3rem;
}

.present-section-heading--wide > p {
  max-width: 32ch;
  margin: 0;
  color: var(--present-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.present-about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.present-hero__copy p,
.present-about__copy > p {
  color: var(--present-muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.present-about__copy > p:first-child {
  margin-top: 0;
}

.present-hero__copy p {
  max-width: 38rem;
  margin: 0;
  color: rgb(255 255 255 / 90%);
  line-height: 1.6;
}

.present-about__copy > .present-section-heading {
  margin-bottom: 1.5rem;
}

.present-lead, .present-about__copy > .present-lead {
  color: #fff;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.6;
}

.present-text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-accent);
  color: #91bdff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.present-program {
  background: #10151e;
}

.present-program .present-section-heading {
  margin-bottom: 2rem;
}

.present-program__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--color-line);
}

.present-program__list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: 2.5rem;
}

.present-program__list li + li {
  border-top: 1px solid var(--color-line);
}

.present-program__list li:first-child {
  padding-top: 0;
}

.present-program__number {
  color: #91bdff;
  font-size: 1rem;
  line-height: 1.5;
}

.present-program__type {
  margin: 0 0 0.6rem;
  color: var(--present-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.present-program__list h3 {
  max-width: 28ch;
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.3;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.present-program__list li > p {
  margin: 0;
  color: var(--present-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.present-program__speaker {
  margin: 0.9rem 0 0;
  color: #91bdff;
  font-size: 0.75rem;
}

.present-program__note {
  max-width: 70ch;
  margin: 2rem 0 0;
  color: var(--present-muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

.present-venue__address {
  color: var(--present-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.present-venue__address p {
  margin: 0;
}

.present-venue__photos {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.present-venue__photos figure {
  margin: 0;
}

.present-venue__photos figure:nth-child(2) {
  padding-top: 4rem;
}

.present-venue__photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.present-venue__photos figcaption {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.25rem;
}

.present-venue__photos figcaption strong {
  font-size: 1.05rem;
  font-weight: 550;
}

.present-venue__photos figcaption span {
  color: var(--present-muted);
  font-size: 0.8rem;
}

.present-venue__photos figcaption small {
  color: var(--present-muted);
  font-size: 0.6rem;
  line-height: 1.7;
}

.present-venue__note {
  max-width: 60ch;
  margin: 2.5rem 0 0;
  color: var(--present-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.present-sponsors {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.present-sponsors__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 3rem;
  padding: 1rem 0 0;
  margin: 0;
  list-style: none;
}

.present-sponsors__logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  padding: 1rem;
  border-radius: 0.875rem;
  background: #fff;
}

.present-sponsors__logos a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.present-sponsors__logos img {
  display: block;
  width: 100%;
  max-width: 15rem;
  height: 3.5rem;
  object-fit: contain;
}

.present-application {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 9vw, 8rem);
}

.present-application .present-section-heading > p:not(.present-kicker) {
  max-width: 40ch;
  line-height: 1.75;
}

.present-application .present-section-heading > h2 + p {
  margin-top: 1.5rem;
}

.present-application .present-section-heading > p:not(.present-kicker, .present-lead) {
  color: var(--present-muted);
  font-size: 0.85rem;
}

.present-application .present-section-heading > .present-application__notice {
  padding-left: 1rem;
  border-left: 2px solid var(--color-accent);
  margin-top: 2rem;
}

.present-application__fields fieldset {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.present-application__fields label {
  margin-bottom: 0.7rem;
  font-size: 0.875rem;
  font-weight: 550;
}

.present-application__fields label span {
  color: #91bdff;
}

.present-application__fields input, .present-application__fields select {
  width: 100%;
  min-height: 3.5rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 0.875rem;
  background: #121821;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.present-application__fields input::placeholder {
  color: rgb(255 255 255 / 45%);
}

.present-application__fields select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 3rem;
  background-image: url("../images/evo_26/presentation/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  color-scheme: dark;
  cursor: pointer;
}

.present-application__fields select option {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
}

@supports (appearance: base-select) {
  .present-application__fields select,
  .present-application__fields select::picker(select) {
    appearance: base-select;
  }

  .present-application__fields select::picker-icon {
    display: none;
  }

  .present-application__fields select::picker(select) {
    box-sizing: border-box;
    width: anchor-size(width);
    min-width: 0;
    max-width: calc(100vw - 2.5rem);
    padding: 0.25rem;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 0.875rem;
    background: #121821;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
  }

  .present-application__fields select option {
    padding: 0.625rem 0.75rem;
    white-space: normal;
  }

  .present-application__fields select option:is(:checked, :hover, :focus) {
    background: rgb(47 130 255 / 20%);
  }
}

.present-application__fields input:focus, .present-application__fields select:focus {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: 0 0 1rem rgb(47 130 255 / 16%);
}

.present-application__fields #application-note {
  margin: 0 0 1.5rem;
  color: var(--present-muted);
  font-size: 0.7rem;
  line-height: 1.8;
}

.present-application__status {
  min-height: 1.6rem;
  color: #91bdff;
  font-size: 0.8rem;
  line-height: 1.6;
}

.present-application__fields .present-application__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.present-application__fields input[type="checkbox"] {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  min-height: 1.2rem;
  height: 1.2rem;
  padding: 0;
  margin: 0.15rem 0 0;
  accent-color: var(--color-accent);
}

.present-application__fields .present-application__consent span {
  color: var(--present-muted);
}

.present-application__fields .errorlist {
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
  color: #ffb4b4;
  font-size: 0.8rem;
  line-height: 1.6;
}

@media (max-width: 64rem) {
  .present-section-heading--wide {
    align-items: start;
  }

  .present-program__list li {
    grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .present-sponsors__logos {
    gap: 1.5rem;
  }
}

@media (max-width: 48rem) {
  .present-hero__visual {
    /* Спикер на 62.5% ширины фото 1672×941; ставим его на середину экрана. */
    background-position: center, calc(50vw - max(62.5vw, 111.05svh)) center;
    background-position: center, calc(50vw - max(62.5vw, 111.05dvh)) center;
  }

  .present-program .present-section-heading {
    margin-bottom: 1.5rem;
  }

  .present-about,
  .present-application {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .present-section-heading--wide {
    flex-direction: column;
    gap: 1.5rem;
  }

  .present-section-heading--wide > p br {
    display: none;
  }

  .present-program__list li {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    padding-block: 2rem;
  }

  .present-program__list li > p {
    grid-column: 2;
  }

  .present-venue__photos {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .present-venue__photos figure:nth-child(2) {
    padding-top: 0;
  }

  .present-sponsors__logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 48rem) and (orientation: portrait) {
  .present-hero__visual {
    /* Фото на 10% меньше; нижний край плавно переходит в фон текстовой зоны. */
    background-image:
      linear-gradient(180deg, var(--present-hero-top-shade), var(--present-hero-shade) 35%, #0b0d11 90%),
      url("../images/evo_26/presentation/evolution-hall-speaker-centered.png");
    background-color: #0b0d11;
    background-repeat: no-repeat;
    background-size: auto, auto 90svh;
    background-size: auto, auto 90dvh;
    background-position: center, calc(50vw - 99.945svh) top;
    background-position: center, calc(50vw - 99.945dvh) top;
  }
}

@media (min-width: 48.01rem) {
  .present-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .presentation-page .present-header {
    min-height: 6.25rem;
    gap: 2rem;
  }

  .present-hero__visual {
    --present-hero-top-shade: rgb(0 0 0 / 35%);
    --present-hero-shade: rgb(0 0 0 / 20%);
    --present-hero-bottom-shade: rgb(0 0 0 / 90%);
    padding-block: calc(9rem + env(safe-area-inset-top)) 5rem;
  }

  .present-hero__layout {
    gap: 1.5rem;
  }

  .present-hero__lead {
    font-size: 2.5rem;
  }

  .present-hero__details {
    font-size: 1.25rem;
  }

  .present-hero__details span {
    font-size: 1rem;
  }

  .present-hero__invitation {
    font-size: 1.125rem;
  }

}

@media (forced-colors: active) {
  .present-application__fields select,
  .present-application__fields select::picker(select) {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .presentation-page *,
  .presentation-page *::before,
  .presentation-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
