@font-face {
  font-family: "BSC Noto Sans Display";
  src: url("../fonts/NotoSansDisplay-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "BSC Noto Sans Display";
  src: url("../fonts/NotoSansDisplay-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "BSC Noto Sans Display";
  src: url("../fonts/NotoSansDisplay-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: block;
}

:root {
  --brand-yellow: #ffc400;
  --brand-black: #111111;
  --page-bg: #edf0f2;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --border: #dddddd;
  --muted: #5e646b;
  --success: #19733a;
  --danger: #a21c1c;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-card: 0 7px 24px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  background: var(--page-bg);
  color: var(--brand-black);
  font-family: "BSC Noto Sans Display", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.15);
}

.button--primary:disabled:hover {
  filter: grayscale(0.15);
}

.app-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #101010 0%, #171717 62%, #232323 100%);
  border-bottom: 4px solid var(--brand-yellow);
  color: #ffffff;
}

.app-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 118px;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.app-header__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-header__logo-frame {
  width: 112px;
  height: 62px;
  flex: 0 0 auto;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.20);
}

.app-header__logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.app-header__title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 33px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.3px;
}

.app-header__subtitle {
  margin: 7px 0 0;
  color: #d7d7d7;
  font-size: 14px;
  line-height: 1.35;
}

.app-header__badge {
  padding: 8px 12px;
  border: 1px solid #505050;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--brand-yellow);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.app-main {
  max-width: 1180px;
  margin: 24px auto;
  padding: 0 18px 34px;
}

.conference-generator {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.card {
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card__header {
  padding: 15px 18px;
  border-bottom: 1px solid #e6e6e6;
  background: var(--surface-soft);
}

.card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.conference-form {
  padding: 18px;
}

.conference-form__field {
  margin-bottom: 16px;
}

.conference-form__label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 800;
}

.conference-form__control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #c9c9c9;
  border-radius: 9px;
  background: #ffffff;
  color: var(--brand-black);
  font-size: 16px;
  outline: none;
}

.conference-form__control:focus {
  border-color: #9b7900;
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.22);
}

.conference-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.conference-form__summary {
  margin: 2px 0 17px;
  padding: 11px 12px;
  border: 1px solid #f0cf40;
  border-radius: var(--radius-md);
  background: #fff8d6;
  font-size: 13px;
  line-height: 1.45;
}

.conference-form__actions {
  display: grid;
  gap: 10px;
}

.button {
  min-height: 46px;
  padding: 0 16px;
  appearance: none;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.button--primary {
  background: var(--brand-yellow);
  color: var(--brand-black);
}

.button--primary:hover {
  filter: brightness(0.96);
}

.button--secondary {
  border: 1px solid #cfcfcf;
  background: #ffffff;
  color: var(--brand-black);
}

.conference-form__status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}

.conference-form__status--ok {
  color: var(--success);
}

.conference-form__status--err {
  color: var(--danger);
}

.conference-preview__body {
  padding: 18px;
}

.conference-preview__toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.conference-preview__info {
  color: #555555;
  font-size: 13px;
}

.conference-preview__stage {
  min-height: 300px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  border-radius: 14px;
  background: #e5e8ea;
}

.conference-preview__canvas {
  max-width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.app-footer {
  margin: 12px 0 0;
  border-top: 1px solid #2a2a2a;
  background: #070707;
  color: #d9dde1;
}

.app-footer__inner {
  width: min(1110px, calc(100% - 40px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 13px;
  line-height: 1.4;
}

.app-footer__copyright,
.app-footer__credit {
  white-space: nowrap;
}

.app-footer__link {
  color: #e51b7b;
  font-weight: 800;
  text-decoration: none;
}

.app-footer__link:hover,
.app-footer__link:focus-visible {
  color: #ff3b94;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .app-main {
    margin-top: 16px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .conference-generator {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .app-header__inner {
    width: calc(100% - 28px);
    gap: 18px;
  }

  .app-header__logo-frame {
    width: 110px;
    height: 58px;
  }

  .app-header__title {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .app-header__inner,
  .app-header__brand,
  .app-header__copy,
  .app-main,
  .conference-generator,
  .card,
  .conference-form,
  .conference-preview__body,
  .app-footer__inner {
    min-width: 0;
    max-width: 100%;
  }

  .app-header__inner {
    width: calc(100% - 20px);
    min-height: auto;
    padding: 11px 0;
    align-items: center;
    gap: 0;
  }

  .app-header__brand {
    width: 100%;
    gap: 9px;
  }

  .app-header__copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .app-header__badge {
    display: none;
  }

  .app-header__logo-frame {
    width: 76px;
    height: 44px;
    padding: 5px 8px;
    border-radius: 8px;
  }

  .app-header__title {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(11px, 3.45vw, 14px);
    line-height: 1.1;
    letter-spacing: -0.2px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .app-header__subtitle {
    max-width: 100%;
    margin-top: 4px;
    overflow: hidden;
    font-size: clamp(9px, 2.75vw, 11px);
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .conference-form {
    padding: 14px;
  }

  .conference-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .conference-form__control {
    height: 48px;
    font-size: 16px;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .conference-preview__body {
    padding: 10px;
  }

  .conference-preview__toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .conference-preview__stage {
    min-height: 0;
    padding: 10px;
  }

  .app-footer__inner {
    width: calc(100% - 24px);
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 12px;
  }

  .app-footer__credit {
    white-space: normal;
  }
}
