/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f6f7f9;
  min-height: 100dvh;
  padding: 20px;
  color: #1b1f24;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Основной контейнер приложения как карточка */
.container {
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(32px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
}

@media (max-width: 600px) {
  body {
    padding: 0;
    padding-left: var(--safe-left, env(safe-area-inset-left, 0px));
    padding-right: var(--safe-right, env(safe-area-inset-right, 0px));
    align-items: stretch;
  }

  .container {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    padding: 16px 12px;
    padding-top: calc(48px + var(--safe-top, env(safe-area-inset-top, 0px)));
    padding-bottom: calc(28px + var(--mobile-bottom-ui, calc(env(safe-area-inset-bottom, 0px) + 12px)));
    gap: 16px;
  }

  .recording-controls {
    margin-bottom: var(--safe-bottom, env(safe-area-inset-bottom, 0px));
  }
}

/* === ЗАГОЛОВКИ === */
h1 {
  color: #0000ff;
  font-size: 26px;
  margin-bottom: 8px;
  text-align: center;
}

h2 {
  color: #0000ff;
  font-size: 22px;
  margin-bottom: 16px;
  text-align: left;
}

h3 {
  color: #0000ff;
  font-size: 16px;
  margin: 0;
}