/* Витрина d-fest.ru в стиле «Воздуха»: Montserrat, синий #3188c7, бумажный фон,
   скруглённые карточки. Людям должно казаться, что это сайт форума. */
:root {
  --df-blue: #3188c7;
  --df-blue-dark: #1f6fb2;
  --df-blue-light: #b8dff8;
  --df-paper: #eff4fa;
  --df-ink: #111;
  --df-muted: #5b6b7d;
  --df-line: rgba(17, 17, 17, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.df {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--df-ink);
  background: var(--df-paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--df-blue-dark); }
img { max-width: 100%; display: block; }

/* Шапка */
.df-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--df-line);
}
.df-brand { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.04em; text-decoration: none; color: var(--df-ink); white-space: nowrap; }
.df-brand__dot { color: var(--df-blue); }
.df-brand__year { color: var(--df-blue); }
.df-nav { display: flex; gap: 18px; align-items: center; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.df-nav a { text-decoration: none; color: var(--df-ink); }
.df-nav__cta { padding: 10px 18px; border-radius: 999px; background: var(--df-blue); color: #fff !important; }
.df-nav__tg { color: #2aabee !important; display: inline-flex; align-items: center; gap: 6px; }
.df-nav__tg svg { flex: 0 0 auto; }

.df-main { max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; }
.df-foot { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; color: var(--df-muted); font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.df-foot__links { display: flex; gap: 16px; flex-wrap: wrap; }
.df-foot a { color: var(--df-muted); }

/* Типографика */
.df-h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; }
.df-h2 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.df-h3 { margin: 0 0 6px; font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.df-eyebrow { margin: 0 0 8px; color: var(--df-blue-dark); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.df-muted { color: var(--df-muted); font-size: 0.92rem; margin: 0 0 16px; }
.df-soft { color: var(--df-muted); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
.df-req { color: #e57373; }
.df-accent { color: var(--df-blue); }

/* Карточки */
.df-card { background: #fff; border-radius: 22px; padding: 28px; box-shadow: 0 8px 32px rgba(26, 74, 138, 0.08), 0 2px 8px rgba(15, 35, 60, 0.05); margin-bottom: 24px; }
.df-card--frame { border: 3px solid var(--df-blue); box-shadow: 0 0 0 6px rgba(49, 136, 199, 0.12), 0 8px 32px rgba(26, 74, 138, 0.1); }
.df-frame__head p { margin: 0 0 18px; color: var(--df-ink); font-size: 0.95rem; max-width: 720px; }
.df-narrow { max-width: 460px; margin: 24px auto; }
.df-center { text-align: center; }
.df-legal h2 { font-size: 1rem; margin: 22px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.df-legal p, .df-legal li { font-size: 0.95rem; }

/* Первый экран регистрации: синяя плашка + белая форма */
.df-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.df-hero__text { background: var(--df-blue); color: #fff; border-radius: 28px; padding: 40px 36px; position: sticky; top: 24px; }
.df-hero__text .df-eyebrow { color: var(--df-blue-light); }
.df-hero__title { margin: 0 0 14px; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; }
.df-hero__title .df-accent { color: var(--df-blue-light); }
.df-hero__lead { margin: 0 0 22px; font-size: 1rem; opacity: 0.95; }
.df-hero__list { margin: 0 0 22px; padding: 0; list-style: none; }
.df-hero__list li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 0.92rem; }
.df-hero__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--df-blue-light); }
.df-hero__note { margin: 0; font-size: 0.88rem; opacity: 0.9; }
.df-hero__note a { color: #fff; }

/* Формы */
.df-form { display: block; }
.df-label { display: block; margin: 14px 0 6px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.df-field { width: 100%; padding: 12px 14px; border: 1px solid var(--df-line); border-radius: 10px; background: #fff; color: var(--df-ink); font: 500 0.95rem/1.3 "Montserrat", system-ui, sans-serif; }
.df-field:focus { outline: 2px solid var(--df-blue); outline-offset: 1px; }
.df-field--file { padding: 9px 12px; }
textarea.df-field { resize: vertical; }
.df-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.df-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.df-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 0.86rem; cursor: pointer; }
.df-check input { margin: 2px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--df-blue); }
.df-check--big { font-weight: 700; font-size: 0.95rem; }
.df-speaker { border: 1px solid var(--df-line); border-radius: 14px; padding: 6px 16px 14px; margin: 18px 0 0; background: var(--df-paper); }
.df-fmt { padding-left: 28px; }
.df-fmt .df-check { margin-top: 8px; }
.df-consents { margin-top: 18px; }
.df-error { background: #fde8e8; color: #9b1c1c; border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; font-weight: 600; margin: 0 0 8px; }
.df-toast { background: #e3f3e6; color: #1e6b32; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 0.9rem; margin: 0 0 16px; }
.df-or { text-align: center; color: var(--df-muted); font-size: 0.85rem; margin: 18px 0 4px; }

/* Кнопки */
.df-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border: 2px solid var(--df-blue); border-radius: 999px; background: transparent; color: var(--df-blue); font: 800 0.85rem/1.1 "Montserrat", system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.df-btn:hover { background: var(--df-blue); color: #fff; }
.df-btn--primary { background: var(--df-blue); color: #fff; }
.df-btn--primary:hover { background: var(--df-blue-dark); border-color: var(--df-blue-dark); }
.df-btn--ghost { background: transparent; }
.df-btn--muted { border-color: var(--df-line); color: var(--df-muted); }
.df-btn--muted:hover, .df-btn--muted.is-active { background: #e6ebf2; color: var(--df-ink); border-color: #e6ebf2; }
.df-btn--wide { width: 100%; margin-top: 20px; }
.df-btn--tg { background: #2aabee; border-color: #2aabee; color: #fff; width: 100%; }
.df-btn--tg:hover { background: #1e97d6; border-color: #1e97d6; }
.df-link-btn { background: none; border: 0; padding: 0; color: var(--df-muted); font: 600 0.8rem "Montserrat", system-ui, sans-serif; cursor: pointer; text-decoration: underline; }

/* Кабинет */
.df-welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.df-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center top; background: #fff; border: 3px solid #fff; box-shadow: 0 4px 16px rgba(26, 74, 138, 0.15); }
.df-avatar--empty { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2rem; color: var(--df-blue); }
.df-profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
.df-profile__photo img, .df-photo-empty { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: 16px; background: var(--df-paper); }
.df-photo-empty { display: flex; align-items: center; justify-content: center; color: var(--df-muted); font-weight: 700; }
.df-file { display: block; margin-top: 12px; }
.df-file input { position: absolute; left: -9999px; }
.df-file span { display: inline-flex; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--df-blue); color: var(--df-blue); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; cursor: pointer; }
.df-file:hover span { background: var(--df-blue); color: #fff; }
.df-profile__fields .df-btn { margin-top: 20px; }

.df-counter { text-align: right; margin: -12px 0 2px; }
.df-gallery { border-top: 1px solid var(--df-line); margin-top: 24px; padding-top: 20px; }
.df-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 14px 0; }
.df-gallery__item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--df-paper); }
.df-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.df-gallery__item form { margin: 0; }
.df-gallery__del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(17,17,17,0.65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.df-gallery__del:hover { background: #e57373; }
/* Приветствие при первом входе */
.df-welcome-modal { position: fixed; inset: 0; z-index: 100; background: rgba(15, 35, 60, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.df-welcome-modal__box { position: relative; background: #fff; border-radius: 22px; padding: 32px 28px;
  max-width: 460px; width: 100%; text-align: center; max-height: 90vh; overflow: auto;
  box-shadow: 0 20px 60px rgba(15, 35, 60, .3); }
.df-welcome-modal__close { position: absolute; top: 12px; right: 14px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: var(--df-muted); cursor: pointer; }
.df-welcome-modal__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  object-position: center top; margin: 0 auto 14px; border: 3px solid var(--df-paper); }
.df-welcome-modal__talks { background: var(--df-paper); border-radius: 14px; padding: 14px 16px;
  margin: 16px 0; text-align: left; font-size: 0.9rem; }
.df-welcome-modal__talks p { margin: 0 0 8px; }
.df-welcome-modal__talks p:last-child { margin-bottom: 0; }

/* Выступления по программе */
.df-talk { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--df-line); }
.df-talk:last-of-type { border-bottom: 0; }
.df-talk__when { flex: 0 0 auto; display: flex; flex-direction: column; min-width: 110px; }
.df-talk__time { font-weight: 800; font-size: 1.05rem; color: var(--df-blue-dark); }
.df-talk__hall { color: var(--df-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.df-talk__body h3 { margin: 2px 0 4px; font-size: 1rem; font-weight: 800; line-height: 1.25; }
.df-talk__body p { margin: 0; }
@media (max-width: 560px) { .df-talk { flex-direction: column; gap: 4px; } }

/* Презентации: список файлов с плашкой формата слева */
.df-decks { list-style: none; margin: 0 0 18px; padding: 0; }
.df-deck { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--df-line); }
.df-deck:last-child { border-bottom: 0; }
.df-deck form { margin: 0 0 0 auto; }
.df-deck__ext { flex: 0 0 auto; width: 46px; padding: 6px 0; border-radius: 8px; text-align: center; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: var(--df-muted); }
.df-deck__ext--pdf { background: #d8453e; }
.df-deck__ext--ppt, .df-deck__ext--pptx { background: #d24726; }
.df-deck__body { display: flex; flex-direction: column; min-width: 0; }
.df-deck__name { font-weight: 700; font-size: 0.92rem; color: var(--df-ink); word-break: break-word; }
.df-deck__meta { color: var(--df-muted); font-size: 0.78rem; }
.df-deck__del { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #eef2f7; color: var(--df-muted); font-size: 17px; line-height: 1; cursor: pointer; }
.df-deck__del:hover { background: #e57373; color: #fff; }
.df-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }
.df-case { border: 1px solid var(--df-line); border-radius: 16px; overflow: hidden; background: #fff; }
.df-case img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.df-case__body { padding: 14px 16px; }
.df-case__body h3 { margin: 0 0 6px; font-size: 0.95rem; }
.df-case__body p { margin: 0 0 10px; font-size: 0.86rem; color: var(--df-muted); }
.df-case-add { border-top: 1px solid var(--df-line); padding-top: 6px; }
.df-case-add .df-btn { margin-top: 16px; }

.df-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.df-offer { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 8px 32px rgba(26, 74, 138, 0.08); border: 3px solid transparent; }
.df-offer.is-going { border-color: var(--df-blue); }
.df-offer.is-declined { opacity: 0.7; }
.df-offer__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.df-offer__body { padding: 20px 22px 24px; }
.df-offer__body h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.df-offer__body p { margin: 0 0 14px; font-size: 0.88rem; color: var(--df-muted); }
.df-offer__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.df-offer__actions form { margin: 0; }

.df-tg { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.df-tg .df-btn--tg { width: auto; }

@media (max-width: 860px) {
  .df-hero { grid-template-columns: 1fr; }
  .df-hero__text { position: static; padding: 28px 24px; }
  .df-profile { grid-template-columns: 1fr; }
  .df-profile__photo { max-width: 220px; }
  .df-offers { grid-template-columns: 1fr; }
  .df-tg { flex-direction: column; align-items: flex-start; }
  .df-tg .df-btn--tg { width: 100%; }
}
@media (max-width: 560px) {
  .df-top { padding: 14px 16px; }
  .df-nav { gap: 12px; font-size: 0.75rem; }
  .df-nav a:first-child, .df-nav__cta { display: none; } /* на телефоне кнопка не влезает, регистрация и так на экране */
  /* «Войти через Telegram» / «Привязать Telegram» на узком экране не
     помещается текстом и переносится в 2-3 строки — оставляем только
     иконку (баг 19.09, вскрыт проверкой мобильной вёрстки) */
  .df-nav__tg-text { display: none; }
  .df-brand { font-size: 1rem; }
  .df-main { padding: 20px 16px 48px; }
  .df-card { padding: 20px 18px; border-radius: 18px; }
  .df-grid2 { grid-template-columns: 1fr; }
  .df-welcome { flex-direction: row-reverse; justify-content: flex-end; }
  .df-avatar { width: 64px; height: 64px; }
}

/* Ключевые тезисы выступления — как на сайте «Воздуха»: подпись и список */
.df-talk__lead { margin: 8px 0 2px !important; color: var(--df-muted); font-size: 0.85rem; }
.df-talk__pts { margin: 0; padding-left: 18px; font-size: 0.92rem; line-height: 1.45; }
.df-talk__pts li { margin: 2px 0; }

/* Выбор презентации к конкретному выступлению */
.df-talk__deck { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--df-line, #d8dde5); }
.df-talk__deck-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.df-talk__deck-row .df-field { flex: 1 1 240px; min-width: 0; }
.df-talk__file { display: inline-block; margin-top: 8px; }
